再起動後にDell Networking SONiCアップデートの部分的な設定が失われた

Summary: この記事では、アップグレード プロセス中のDell SONiC構成の喪失と回避策について説明します。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

 

 startup-configに保存する保留中の設定変更がある場合は、構成を保存するときに注意する必要があります。これら2つのわずかに似たアクションには異なる結果があるためです。

この順序は、再起動後のすべての変更を正しく反映します。

     Sonic# copy running-configuration startup-configuration
Sonic# image install http://SONiC_EntStd_4.1.1.bin
Sonic# reboot
 

この順序では、再起動後に startup-configuration に保存されていない設定の変更が失われます。

     Sonic#イメージのインストール http://SONiC_EntStd_4.1.1.bin
Sonic# copy running-configuration startup-configuration
Sonic# reboot

この問題が発生する理由については、次のセクションで説明します。

Cause

イメージのインストール http://< DELL-SONIC-INSTALL-FILE.bin> を発行すると、次のプロセスが実行されます。

- startup_config /etc/sonic/config_db.json が /host/old_config/config_db.json に移行され、新しいバージョンの構成で必要なスキーマ変更が適用されます。
- スイッチの実行中に、/host/old_config/config_db.jsonに保存されているこの設定を再起動すると、新しいバージョンに関連する変更が適用された後、/etc/sonic/config_db.jsonに転送されます。
 

したがって、イメージのインストール http://< DELL-SONIC-INSTALL-FILE.bin> を実行した後に保存された保留中の変更は、/host/old_config/config_db.jsonには反映されません。その結果、この構成の変更は再起動中に失われます。 


 

 

Resolution

この状況に入ると、いくつかの回避策が考えられます。最も簡単な方法は次の2つです。
 

オプション1

 スイッチを古いSONiCバージョンで起動し、新しいバージョンを削除して、新しいバージョンを再インストールします。

Sonic# show image list
Sonic# image set-default <Old-SONIC version>
Sonic# reboot

スイッチが古いバージョンに戻ったら、次の手順を実行します。

Sonic# show image list
Sonic# image remove <new-SONiC-version>
Sonic# image install <http://new-SONIC version>
Sonic# reboot


メモ: この構成は、image installコマンドの後、正常に実行され、再起動前に保存されたと見なされます。

サンプル出力

admin@sonic:~$ sonic-cli
sonic# show image list
Current: SONiC-OS-4.0.6-Enterprise_Standard
Next: SONiC-OS-4.0.6-Enterprise_Standard
Available: 
SONiC-OS-4.0.3-Enterprise_Base
SONiC-OS-4.0.6-Enterprise_Standard
sonic# image set-default SONiC-OS-4.0.3-Enterprise_Base
sonic# reboot

reboot in process .....
Waiting for the reboot operation to complete
11, 32, 15, 00068001, 19, 00068000, 

スイッチが復帰したら、次の手順を実行します。

sonic login: admin
Password: 
Last login: Wed Oct  4 10:10:30 UTC 2023 on ttyS0
Linux sonic 4.19.0-9-2-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64
You are on
  ____   ___  _   _ _  ____
 / ___| / _ \| \ | (_)/ ___|
 \___ \| | | |  \| | | |
  ___) | |_| | |\  | | |___
 |____/ \___/|_| \_|_|\____|

-- Software for Open Networking in the Cloud --

Unauthorized access and/or use are prohibited.
All access and/or use are subject to monitoring.

Help:    http://azure.github.io/SONiC/

admin@sonic:~$ sonic-cli
sonic# show image list
Current: SONiC-OS-4.0.3-Enterprise_Base
Next: SONiC-OS-4.0.3-Enterprise_Base
Available: 
SONiC-OS-4.0.3-Enterprise_Base
SONiC-OS-4.0.6-Enterprise_Standard
sonic# image remove SONiC-OS-4.0.6-Enterprise_Standard
Remove image SONiC-OS-4.0.6-Enterprise_Standard? [y/N]:y
sonic# show image list
Current: SONiC-OS-4.0.3-Enterprise_Base
Next: SONiC-OS-4.0.3-Enterprise_Base
Available: 
SONiC-OS-4.0.3-Enterprise_Base
sonic# image install http://10.24.30.105/software/Dell%20EMC/Networ
king/SONiC_EntStd_4.0.6.bin
%Info: Check 'show image status' for image install progress.
sonic# show image status
-----------------------------------------------------------
Global operation status  : GLOBAL_STATE_SUCCESS
-----------------------------------------------------------
File operation status    : TRANSFER_STATE_SUCCESS
File size(bytes)         : 1055807512
File transfer bytes      : 1055807512
File progress            : 100%
Transfer start time      : 2023-10-04 10:17:40+0000
Transfer end time        : 2023-10-04 10:17:49+0000
-----------------------------------------------------------
Install operation status : INSTALL_STATE_SUCCESS
Install start time       : 2023-10-04 10:17:49+0000
Install end time         : 2023-10-04 10:18:26+0000
sonic# show image list
Current: SONiC-OS-4.0.3-Enterprise_Base
Next: SONiC-OS-4.0.6-Enterprise_Standard
Available: 
SONiC-OS-4.0.3-Enterprise_Base
SONiC-OS-4.0.6-Enterprise_Standard
sonic# reboot

 

オプション2

不足している設定を新しいSONiC OSに適用します。

メモ: 古いパーティションから新しいパーティションにconfig_db.jsonをコピーしようとすると、configファイルのスキーマがバージョン間で変更された可能性があるため、他の問題が発生する可能性があります。

Additional Information

この動作は、ブランチでの4.0.xアップグレードと同じブランチでの4.1.xアップグレードの両方で検証されていました。すべてのアップグレードに対して残ることが期待されます。

Affected Products

Enterprise SONiC Distribution, PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON , PowerSwitch Z9432F-ON ...
Article Properties
Article Number: 000218166
Article Type: Solution
Last Modified: 11 Oct 2023
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.