-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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
check if existing network is VDS and has port attribute #31322
Merged
Merged
Conversation
This file contains 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
ansibot
added
affects_2.5
This issue/PR affects Ansible v2.5
bugfix_pull_request
cloud
community_review
In order to be merged, this PR must follow the community review workflow.
module
This issue/PR relates to a module.
needs_ci
This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI.
needs_triage
Needs a first human triage before being processed.
support:community
This issue/PR relates to code supported by the Ansible community.
vmware
VMware community
labels
Oct 4, 2017
jborean93
removed
the
needs_triage
Needs a first human triage before being processed.
label
Oct 4, 2017
@strattner Could you please add integration test for this change ? |
Closing and re-opening to trigger CI. |
ansibot
removed
the
needs_ci
This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI.
label
Oct 5, 2017
ansibot
added
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
new_contributor
This PR is the first contribution by a new community member.
labels
Oct 14, 2017
ansibot
removed
the
new_contributor
This PR is the first contribution by a new community member.
label
Nov 3, 2017
@strattner Are you still working on this ? |
@Akasurde I am not sure what else needs to be done. I submitted this change, is there something specific I should do? |
Closing and re-opening for CI. |
ansibot
removed
the
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
label
Nov 17, 2017
This solved my problem (#32975), so please: shipit ! |
ansibot
added
bug
This issue/PR relates to a bug.
and removed
bugfix_pull_request
labels
Mar 6, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.5
This issue/PR affects Ansible v2.5
bug
This issue/PR relates to a bug.
cloud
community_review
In order to be merged, this PR must follow the community review workflow.
module
This issue/PR relates to a module.
support:community
This issue/PR relates to code supported by the Ansible community.
vmware
VMware community
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.
SUMMARY
When checking to see if the guest network has changed, attributes of the existing and new network are compared. However, the current check assumes that if the new network is associated with a VDS, the existing network must be as well - the end result that it tries to compare a "port" attribute, which fails when the existing network is not associated with a VDS.
For example, when a VM has existing network 'VM Network' (the default), and an attempt is made to change it to a portgroup that is associated to a VDS, the following error is generated:
The change that was made was to check whether the existing network was a VDS first, before attempting to compare VDS-related attributes.
Fixes #30524 that I had opened, and fix was based on recommended change by @nrwahl2
ISSUE TYPE
COMPONENT NAME
cloud/vmware/vmware_guest.py
ANSIBLE VERSION
ADDITIONAL INFORMATION