Enhance deployment robustness with safe ovs-vsctl operations#19646
Merged
wangxin merged 1 commit intosonic-net:masterfrom Jul 16, 2025
Merged
Conversation
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Pterosaur
approved these changes
Jul 16, 2025
Janetxxx
approved these changes
Jul 16, 2025
wangxin
approved these changes
Jul 16, 2025
Collaborator
|
hi @yutongzhang-microsoft , do you mind to help create manual cherry pick to 202412? |
mssonicbld
pushed a commit
to mssonicbld/sonic-mgmt
that referenced
this pull request
Jul 16, 2025
…et#19646) What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself.
Collaborator
|
Cherry-pick PR to 202505: #19679 |
11 tasks
Contributor
Author
I will. |
mssonicbld
pushed a commit
that referenced
this pull request
Jul 17, 2025
What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself.
Contributor
Author
|
Hi, @r12f , cherry pick PR Azure/sonic-mgmt.msft#556 created, can you help me sign off? |
Pterosaur
added a commit
to Azure/sonic-mgmt.msft
that referenced
this pull request
Jul 17, 2025
… operations (#556) Cherry pick [#19646](sonic-net/sonic-mgmt#19646) What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself.
nissampa
pushed a commit
to nissampa/sonic-mgmt_dpu_test
that referenced
this pull request
Aug 7, 2025
…et#19646) What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself.
ashutosh-agrawal
pushed a commit
to ashutosh-agrawal/sonic-mgmt
that referenced
this pull request
Aug 14, 2025
…et#19646) What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself.
vidyac86
pushed a commit
to vidyac86/sonic-mgmt
that referenced
this pull request
Oct 23, 2025
…et#19646) What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself.
opcoder0
pushed a commit
to opcoder0/sonic-mgmt
that referenced
this pull request
Dec 8, 2025
…et#19646) What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself. Signed-off-by: opcoder0 <[email protected]>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 16, 2025
…et#19646) What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself. Signed-off-by: Guy Shemesh <[email protected]>
AharonMalkin
pushed a commit
to AharonMalkin/sonic-mgmt
that referenced
this pull request
Dec 16, 2025
…et#19646) What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself. Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 21, 2025
…et#19646) What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself. Signed-off-by: Guy Shemesh <[email protected]>
venu-nexthop
pushed a commit
to venu-nexthop/sonic-mgmt
that referenced
this pull request
Jan 13, 2026
…et#19646) What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself.
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Jan 26, 2026
…et#19646) What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself. Signed-off-by: Guy Shemesh <[email protected]>
ytzur1
pushed a commit
to ytzur1/sonic-mgmt
that referenced
this pull request
Feb 2, 2026
…et#19646) What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself. Signed-off-by: Yael Tzur <[email protected]>
venu-nexthop
pushed a commit
to venu-nexthop/sonic-mgmt
that referenced
this pull request
Mar 27, 2026
…et#19646) What is the motivation for this PR? To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the --may-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations. How did you do it? Add the --may-exist and --if-exists options to ovs-vsctl commands How did you verify/test it? Test by pipeline itself.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the
--may-existand--if-existsoptions toovs-vsctlcommands. This improves the robustness of our code by preventing conflicts during concurrent port operations.Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
To accelerate deployment, we parallelized certain Ansible tasks. Since multiple Ansible threads might operate on the same port simultaneously, we added the
--may-existand--if-existsoptions toovs-vsctlcommands. This improves the robustness of our code by preventing conflicts during concurrent port operations.How did you do it?
Add the
--may-existand--if-existsoptions toovs-vsctlcommandsHow did you verify/test it?
Test by pipeline itself.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation