Skip to content

Remove unused arguments when calling testbed_config_vchassis playbook.#17999

Merged
rlhui merged 2 commits intosonic-net:masterfrom
BYGX-wcr:fix_config_vs_chassis
Apr 18, 2025
Merged

Remove unused arguments when calling testbed_config_vchassis playbook.#17999
rlhui merged 2 commits intosonic-net:masterfrom
BYGX-wcr:fix_config_vs_chassis

Conversation

@BYGX-wcr
Copy link
Copy Markdown
Contributor

Description of PR

Summary: Previously, the testbed_config_vchassis.yml playbook was called with some unnecessary arguments which may cause failures for certain users depending on the user input. Now, we remove the unnecessary arguments to reduce the possibility caused by misinput.
Fixes #17922 (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

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

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

if [[ $topo == *"t2"* ]]; then
ansible-playbook -i ${inv_name} testbed_config_vchassis.yml --vault-password-file="$passfile" -l "$duts" -e testbed_name="$testbed_name" \
-e topo="$topo" -e testbed_file=$tbfile -e vm_file=$vmfile -e server="$server" $@
ansible-playbook -i ${inv_name} testbed_config_vchassis.yml --vault-password-file="$passfile" -l "$duts" -e topo="$topo"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the password file is saved in the variable ${passwd} in add_topo, not sure how important this is for this call.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just removed it.

@rlhui rlhui added the P0 label Apr 16, 2025
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@BYGX-wcr
Copy link
Copy Markdown
Contributor Author

@rlhui , @arlakshm, can you merge this PR?

@BYGX-wcr BYGX-wcr closed this Apr 17, 2025
@BYGX-wcr BYGX-wcr deleted the fix_config_vs_chassis branch April 17, 2025 00:01
@BYGX-wcr BYGX-wcr restored the fix_config_vs_chassis branch April 18, 2025 03:49
@BYGX-wcr BYGX-wcr reopened this Apr 18, 2025
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@rlhui rlhui merged commit bad4350 into sonic-net:master Apr 18, 2025
21 checks passed
@BYGX-wcr BYGX-wcr deleted the fix_config_vs_chassis branch April 21, 2025 21:55
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
sonic-net#17999)

* remove unused arguments when calling config_vchassis playbook.

* remove unused --vault-password-file

Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
sonic-net#17999)

* remove unused arguments when calling config_vchassis playbook.

* remove unused --vault-password-file

Signed-off-by: Aharon Malkin <amalkin@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
sonic-net#17999)

* remove unused arguments when calling config_vchassis playbook.

* remove unused --vault-password-file

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
sonic-net#17999)

* remove unused arguments when calling config_vchassis playbook.

* remove unused --vault-password-file

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Regression: add-topo fails testbed_config_vchassis.yml with ERROR! Specified hosts and/or --limit does not match any hosts

4 participants