-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TH3] Skipp Control Plane Assist on WARM Reboot for TH3 HWSKUs #1861
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the neighbor_advertiser be skipped while invoking warmboot instead of modifying the script?
Reason I am doing it inside the script is because the setup for warmboot and finalizer are two seperate files and I think it is easier to have this inside the script which is called by both cases instead of spread out to multiple files. |
If you fix this in setup for warmboot, isn't finalizer a no-op? As in, even if it try to remove the entries in finalizer, it will not trigger anything since its non-existent, right? |
Interesting idea. Let me give it a try just on the setup for warmboot to see if that works. If so, I will create a new PULL request. |
This reverts commit 40cb537.
…ript to achieve skip CPA for TH3
@prsunny I have modified the code per your comment. Please help review the new changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestions. LGTM otherwise.
scripts/fast-reboot
Outdated
@@ -487,6 +495,8 @@ case "$REBOOT_TYPE" in | |||
;; | |||
esac | |||
|
|||
HWSKU=$(show platform summary --json | python -c 'import sys, json; print(json.load(sys.stdin)["hwsku"])') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be moved inside setup_reboot_variables
function.
https://github.com/Azure/sonic-utilities/blob/4af3e129c600fcc226a6a87d58a5ec8503a3c65e/scripts/fast-reboot#L308
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Changed just now.
Thanks!
scripts/fast-reboot
Outdated
debug "Setting up control plane assistant: ${ASSISTANT_IP_LIST} ..." | ||
${ASSISTANT_SCRIPT} -s ${ASSISTANT_IP_LIST} -m set | ||
# TH3 HW is not capable of VxLAN programming thus skipping TH3 platforms | ||
if [[ "$HWSKU" != "DellEMC-Z9332f-M-O16C64" && "$HWSKU" != "DellEMC-Z9332f-M-O16C64-lab" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$HWSKU
can be replaced by ${HWSKU}
for consistency and probably bash safety too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Changed just now.
Thanks!
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
The failures seem to be coming due to a sonic-swss dvs switch creation error. Buildimage update is in progress - sonic-net/sonic-buildimage#8915 I suggest to retry after buildimage PR is merged. |
Thanks! I was about to ask how to address the tests failure which are unrelated to my changes... |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
* [TH3] Skip Control Plane Assist on WARM Reboot for TH3 HWSKUs
8768089 (HEAD -> 202012, origin/202012) Remove exec from platform_reboot_plugin call to handle any hang issue. (sonic-net#1879) ae5d90c Validate input of ```config mirror_session add``` (sonic-net#1825) 44d3a3b [show][config] fix the muxcable commands for interface naming mode (sonic-net#1862) 0a4933e [TH3] Skipp Control Plane Assist on WARM Reboot for TH3 HWSKUs (sonic-net#1861) Signed-off-by: vaibhav-dahiya <[email protected]>
What I did
Added Code to Skip over Control Plane Assist (CPA) executed during Warm reboot operation for those HW that is not capable of handling CPA such as TH3 based HW SKUs.
How to verify it
Execute testcase "arp/test_wr_arp.py" to ensure the operation to program VxLAN Tunnel and Mirror ACLs are all skipped.
This is skipped during setup as well as finalizer time.
Syslog captured that shows the skipping is made when HW SKU of TH3 is detected:
Also added new test cases to specifically test out the new helper function I added.