Skip to content

Enhance deployment robustness with safe ovs-vsctl operations#19646

Merged
wangxin merged 1 commit intosonic-net:masterfrom
yutongzhang-microsoft:yutongzhang/add_parameter
Jul 16, 2025
Merged

Enhance deployment robustness with safe ovs-vsctl operations#19646
wangxin merged 1 commit intosonic-net:masterfrom
yutongzhang-microsoft:yutongzhang/add_parameter

Conversation

@yutongzhang-microsoft
Copy link
Copy Markdown
Contributor

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-exist and --if-exists options to ovs-vsctl commands. This improves the robustness of our code by preventing conflicts during concurrent port operations.

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

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-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.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@wangxin wangxin merged commit 299187c into sonic-net:master Jul 16, 2025
20 checks passed
@yutongzhang-microsoft yutongzhang-microsoft deleted the yutongzhang/add_parameter branch July 16, 2025 05:59
@r12f
Copy link
Copy Markdown
Collaborator

r12f commented Jul 16, 2025

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.
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202505: #19679

@yutongzhang-microsoft
Copy link
Copy Markdown
Contributor Author

hi @yutongzhang-microsoft , do you mind to help create manual cherry pick to 202412?

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.
@yutongzhang-microsoft
Copy link
Copy Markdown
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants