[test_upgrade_path] Support test_upgrade_path on KVM switch on VS testbed#2661
[test_upgrade_path] Support test_upgrade_path on KVM switch on VS testbed#2661vaibhavhd merged 6 commits intosonic-net:masterfrom
Conversation
|
Are there any other steps required to download images from public Jenkins? I tried to pull the code and run the test using the command provided but got the following failure. Seems that the mgmt gw route is not added properly. Not sure if there is anything I missed. |
Thanks for trying this, Shi. Based on an offline discussion - there is a prerequisite before the test that allows KVM to download the images from Internet: This step should ideally be part of testbed setup, as it is needed only for VS setup, and not necessarily for physical devices. For now, I am considering of adding it to this test itself, protected within a KVM check. |
| new_route_added = False | ||
| break | ||
| else: | ||
| # Temprarily change the default route to mgmt-gateway address. This is done so that |
There was a problem hiding this comment.
Typo 'Temprarily' -> 'Temporarily'
There was a problem hiding this comment.
Fixed now, thanks!
|
@shi-su I have added a verification step for checking service health status and reboot cause after warm-upgrade. This is to handle/catch any false-positives when syncd crashed or reboot-cause is COLD. As far as connectivity to internet is concerned, this should be included in a testbed setup if we agree that it is generally safe. This can be dealt with in different PR. With the present set of changes, test upgrade will work for KVM for locally (in container) stored images. If the network is configured manually to enable internet for the KVM switch, this test can also download remote images. |
wangxin
left a comment
There was a problem hiding this comment.
I agree that configuration for internet access should be responsibility of testbed setup, not test script.
|
retest vsimage please |
|
retest vsimage please |
Description of PR Summary: Fix bug introduced by #2661 where if new_image_url is not provided, the installation logic still proceeds. This leads to error in the Ansible module in upgrade_sonic.yml step for removing old sonic images. Approach What is the motivation for this PR? How did you do it? Added the check for no image URL. And do not execute installation logic if URL is None. How did you verify/test it? Tested on a physical lab device, and the Ansible execution of upgrade_sonic.yml passed.
…aemons] advance submodule head (sonic-net#13755) linkmgrd: * e191338 2023-02-10 | Fix the warning of unused variables (sonic-net#167) (HEAD -> 202205) [Longxiang Lyu] utilities: * 2c933b0a 2023-02-07 | [sai_failure_dump]Invoking dump during SAI failure (sonic-net#2633) (HEAD -> 202205) [Sudharsan Dhamal Gopalarathnam] * e949f318 2023-02-07 | [show] add support for gRPC show commands for `active-active` (sonic-net#2629) [vdahiya12] * 77723927 2023-01-30 | Fixed admin state config CLI for Backport interfaces (sonic-net#2557) [anamehra] * 32b1d4d6 2023-02-01 | [masic support] 'show run bgp' support for multi-asic (sonic-net#2427) [wenyiz2021] * a2252d8a 2022-10-11 | Filter port invalid MTU configuration (sonic-net#2378) [pettershao-ragilenetworks] * 0ffb4b6a 2023-02-09 | Add Transceiver PM basic CLI support to show output from TRANSCEIVER_PM table for ZR (sonic-net#2655) (github/202205) [longhuan-cisco] * 496a0774 2023-02-09 | Add asic id for linecards so "show fabric counters queue/port" can work for single chip systems (sonic-net#2656) [jfeng-arista] * 2591e8b5 2023-02-03 | multi asic support for show queue counter (sonic-net#2647) [zhixzhu] swss: * e0373a4 2023-02-07 | [autoneg]Fixing adv interface types to be set when AN is disabled (sonic-net#2638) (HEAD -> 202205, github/202205) [Sudharsan Dhamal Gopalarathnam] * 62a09a0 2023-02-09 | [sai_failure_dump]Invoking dump during SAI failure (sonic-net#2644) (sonic-net#2661) [Sudharsan Dhamal Gopalarathnam] * 076f63e 2023-02-08 | [202205] Revert "Revert "[voq][chassis]Add show fabric counters port/queue commands (sonic-net#2522)" (sonic-net#2612)" (sonic-net#2655) [kenneth-arista] * a35e074 2023-02-06 | [202205][voq][chassis] Remove created ports from the default vlan. (sonic-net#2651) [arista-nwolfe] swss-common: * b9d4284 2023-02-08 | [202205] Fix epoll and socket resource leak issue. (sonic-net#651) (sonic-net#741) (github/202205) [Kevin Petremann] sairedis: * 9d8e731 2023-02-08 | [Mellanox] Enable DSCP remapping by using SAI attribute (sonic-net#1188) (HEAD -> 202205, github/202205) [Stephen Sun] * 272a8bd 2023-02-10 | Fixing race condition for rif counters sonic-net#1136 (sonic-net#1202) [Suman Kumar] * 211365a 2023-02-08 | [202205][submodule][SAI]Advance SAI header (sonic-net#1207) [Richard.Yu] * 939c14b 2023-02-08 | [Submodule][upgrade]Upgrade SAI submodule (sonic-net#1203) [Richard.Yu] platform-daemons: * e5ccd40 2022-10-03 | [ycabled] fix naming error for error condition for CLI handling (sonic-net#302) (HEAD -> 202205, github/202205) [vdahiya12] * cdd354d 2022-09-29 | [ycabled] add some exception catching logic to some vendor specific API's (sonic-net#301) [vdahiya12] * cf58c08 2023-02-01 | Chassisd do an explicit stop of the config_manager (sonic-net#328) (sonic-net#336) [judyjoseph] Signed-off-by: Ying Xie <ying.xie@microsoft.com>
Description of PR
Summary: Make test_upgrade_path testcase KVM ready.
Fixes # (issue)
Type of change
Approach
What is the motivation for this PR?
test_upgrade_pathpresently is not supported and enabled on KVM switch. Make changes to:How did you do it?
test_upgrade_path.How did you verify/test it?
Executed
test_upgrade_pathusing both remote public URLs and local file path:Upgrade KVM switch using URL of public Jenkins images:
Upgrade KVM switch from a file path within sonic-mgmt container:
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation