-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[warm-reboot] Remove warmboot file path that overrides the default pa…
…th (#6198) - Why I did it The sai.profile file in kvm images overrides the warmboot file with path /var/cache/sai_warmboot.bin. Since the directory /var/cache is not mounted in syncd, it will be cleared in an image upgrade, the warm-reboot image upgrade will fail if the file is put in the directory. Fix #6183 - How I did it Remove the path that overrides the default path. The warmboot file path will then be the default value /var/warmboot/sai-warmboot.bin. Since /var/warmboot/ is mounted by /host/warmboot/ in the host, it could survive an image upgrade. - How to verify it Tested warm reboot upgrading kvm image locally.
- Loading branch information
Showing
9 changed files
with
0 additions
and
18 deletions.
There are no files selected for viewing
2 changes: 0 additions & 2 deletions
2
device/virtual/x86_64-kvm_x86_64-r0/brcm_gearbox_vs/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
SAI_WARM_BOOT_READ_FILE=/var/cache/sai_warmboot.bin | ||
SAI_WARM_BOOT_WRITE_FILE=/var/cache/sai_warmboot.bin | ||
SAI_VS_SWITCH_TYPE=SAI_VS_SWITCH_TYPE_BCM56850 | ||
SAI_VS_HOSTIF_USE_TAP_DEVICE=true | ||
SAI_VS_INTERFACE_LANE_MAP_FILE=/usr/share/sonic/hwsku/lanemap.ini |
2 changes: 0 additions & 2 deletions
2
device/virtual/x86_64-kvm_x86_64-r0/msft_multi_asic_vs/0/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
SAI_WARM_BOOT_READ_FILE=/var/cache/sai_warmboot.bin | ||
SAI_WARM_BOOT_WRITE_FILE=/var/cache/sai_warmboot.bin | ||
SAI_VS_SWITCH_TYPE=SAI_VS_SWITCH_TYPE_BCM56850 | ||
SAI_VS_HOSTIF_USE_TAP_DEVICE=true | ||
SAI_VS_INTERFACE_LANE_MAP_FILE=/usr/share/sonic/hwsku/lanemap.ini |
2 changes: 0 additions & 2 deletions
2
device/virtual/x86_64-kvm_x86_64-r0/msft_multi_asic_vs/1/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
SAI_WARM_BOOT_READ_FILE=/var/cache/sai_warmboot.bin | ||
SAI_WARM_BOOT_WRITE_FILE=/var/cache/sai_warmboot.bin | ||
SAI_VS_SWITCH_TYPE=SAI_VS_SWITCH_TYPE_BCM56850 | ||
SAI_VS_HOSTIF_USE_TAP_DEVICE=true | ||
SAI_VS_INTERFACE_LANE_MAP_FILE=/usr/share/sonic/hwsku/lanemap.ini |
2 changes: 0 additions & 2 deletions
2
device/virtual/x86_64-kvm_x86_64-r0/msft_multi_asic_vs/2/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
SAI_WARM_BOOT_READ_FILE=/var/cache/sai_warmboot.bin | ||
SAI_WARM_BOOT_WRITE_FILE=/var/cache/sai_warmboot.bin | ||
SAI_VS_SWITCH_TYPE=SAI_VS_SWITCH_TYPE_BCM56850 | ||
SAI_VS_HOSTIF_USE_TAP_DEVICE=true | ||
SAI_VS_INTERFACE_LANE_MAP_FILE=/usr/share/sonic/hwsku/lanemap.ini |
2 changes: 0 additions & 2 deletions
2
device/virtual/x86_64-kvm_x86_64-r0/msft_multi_asic_vs/3/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
SAI_WARM_BOOT_READ_FILE=/var/cache/sai_warmboot.bin | ||
SAI_WARM_BOOT_WRITE_FILE=/var/cache/sai_warmboot.bin | ||
SAI_VS_SWITCH_TYPE=SAI_VS_SWITCH_TYPE_BCM56850 | ||
SAI_VS_HOSTIF_USE_TAP_DEVICE=true | ||
SAI_VS_INTERFACE_LANE_MAP_FILE=/usr/share/sonic/hwsku/lanemap.ini |
2 changes: 0 additions & 2 deletions
2
device/virtual/x86_64-kvm_x86_64-r0/msft_multi_asic_vs/4/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
SAI_WARM_BOOT_READ_FILE=/var/cache/sai_warmboot.bin | ||
SAI_WARM_BOOT_WRITE_FILE=/var/cache/sai_warmboot.bin | ||
SAI_VS_SWITCH_TYPE=SAI_VS_SWITCH_TYPE_BCM56850 | ||
SAI_VS_HOSTIF_USE_TAP_DEVICE=true | ||
SAI_VS_INTERFACE_LANE_MAP_FILE=/usr/share/sonic/hwsku/lanemap.ini |
2 changes: 0 additions & 2 deletions
2
device/virtual/x86_64-kvm_x86_64-r0/msft_multi_asic_vs/5/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
SAI_WARM_BOOT_READ_FILE=/var/cache/sai_warmboot.bin | ||
SAI_WARM_BOOT_WRITE_FILE=/var/cache/sai_warmboot.bin | ||
SAI_VS_SWITCH_TYPE=SAI_VS_SWITCH_TYPE_BCM56850 | ||
SAI_VS_HOSTIF_USE_TAP_DEVICE=true | ||
SAI_VS_INTERFACE_LANE_MAP_FILE=/usr/share/sonic/hwsku/lanemap.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters