Skip to content
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

[action] [PR:12932] Fix add-topo failure when deploying topology with empty VM list. #14166

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

mssonicbld
Copy link
Collaborator

Description of PR

Summary:
When deploying any topology without the VM list as below, we will running into a few errors. And this PR is to fix these issues:

image

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205
  • 202305
  • 202311

Approach

What is the motivation for this PR?

There are 2 issues are hitting, when deploying any topology without the VM list:

  • Ansible Bind topology to VMs task task will fail, because the vm list is empty, but it is checking the VM base in the VM list.
  • The generated minigraph will fail to load, because minigraph.py is not expecting any ACL interface with empty attached to list.

How did you do it?

This change fixes both issue with adding the empty list checks in these 2 places.

How did you verify/test it?

Run the add-topo and deploy-mg locally, both works.

Any platform specific information?

No.

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

N/A

Documentation

N/A

…ic-net#12932)

What is the motivation for this PR?
There are 2 issues are hitting, when deploying any topology without the VM list:

Ansible Bind topology to VMs task task will fail, because the vm list is empty, but it is checking the VM base in the VM list.
The generated minigraph will fail to load, because minigraph.py is not expecting any ACL interface with empty attached to list.
How did you do it?
This change fixes both issue with adding the empty list checks in these 2 places.

How did you verify/test it?
Run the add-topo and deploy-mg locally, both works.

Any platform specific information?
No.
@mssonicbld
Copy link
Collaborator Author

Original PR: #12932

@mssonicbld mssonicbld merged commit 5fa5792 into sonic-net:202311 Aug 19, 2024
12 checks passed
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.

2 participants