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

Fix nova driver bug parsing ip address #32138

Merged
merged 3 commits into from
Mar 28, 2016
Merged

Fix nova driver bug parsing ip address #32138

merged 3 commits into from
Mar 28, 2016

Conversation

tegbert
Copy link
Contributor

@tegbert tegbert commented Mar 24, 2016

What does this PR do?

Fixes a bug in the nova.py driver that prevents it from properly parsing out IP addresses from the data structure returned from OpenStack (Kilo version, but may work on others).

What issues does this PR fix or reference?

I could find no issues directly on point, but it may be related to issue 29666 "Nova driver broken for 2015.8.[1-3]".

Previous Behavior

Nova driver would hang (and ultimately time out) when used with OpenStack because it could not parse IP addresses for instances.

New Behavior

The nova driver can now parse an IP address for instances when used with OpenStack.

Tests written?

No, although it works well with the Kilo version of OpenStack.

To test, you need to create cloud provider and profile files, then use salt-cloud to create one or more instances on OpenStack. See https://docs.saltstack.com/en/latest/topics/cloud/openstack.html

Justin Anderson and others added 3 commits March 24, 2016 10:30
Added code after the main ip address parsing that, if no ip addresses
are found, will attempt to parse the data structure as provided by
OpenStack (Kilo). The existing parsing, which works for Rackspace
is not affected.
@gtmanfred
Copy link
Contributor

@tegbert can you resubmit this to the 2016.3 branch so that it can be merged forward to develop?

Thanks!

@cachedout
Copy link
Contributor

@gtmanfred Let's just backport it.

@cachedout cachedout merged commit 6ac3f4d into saltstack:develop Mar 28, 2016
@cachedout cachedout added the bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch label Mar 28, 2016
@gtmanfred
Copy link
Contributor

sounds good 👍

@rallytime rallytime added ZZZ[Done]-back-ported-bf RETIRED The pull request has been back-ported to an older branch. and removed bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch labels Mar 28, 2016
rallytime pushed a commit that referenced this pull request Mar 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ZZZ[Done]-back-ported-bf RETIRED The pull request has been back-ported to an older branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants