Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Bring in the latest from v31 #600

Merged
merged 3 commits into from
Apr 3, 2018
Merged

Bring in the latest from v31 #600

merged 3 commits into from
Apr 3, 2018

Conversation

cdosborn
Copy link
Contributor

@cdosborn cdosborn commented Apr 3, 2018

Description

This pr #599 was brought into v31, and thus v31 needs to now be brought into master

Checklist before merging Pull Requests

  • Add an entry in the changelog

I changed the name of add_fixed_ip, because we are taking a quite different
approach here. We delete all an instance's ports, and then instruct nova to
attach the instance to a subnet. Nova takes care of creating a port.

This fixes an outstanding issue in nova[0]. Our original approach is to keep
ports around and then just update the fixed ips. However, when an instance and
its port are created, they each have an availability zone, when we unshelve an
instance its AZ may change. If it does change, openstack fails to update the
device owner AZ of the port and attaching a fixed ip fails because no ports
exist in the AZ.

We also used to exit from add_fixed_ip if the instance already had a fixed ip.
However, we can no longer do this. Instances affected by this shelving bug,
will never have their fixed ips removed, so if we exited early. Instances that
need a new port (on the new AZ) would not receive a new port.

https://bugs.launchpad.net/nova/+bug/1759924[0]
…shelve

Fix unshelved instance failing to get fixed ip
@cdosborn cdosborn self-assigned this Apr 3, 2018
@cdosborn
Copy link
Contributor Author

cdosborn commented Apr 3, 2018

I'm going to make sure this builds, then ill push it to master, so an unnecessary merge isn't made.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 37.272% when pulling 804c395 on cdosborn:master into b4f15b6 on cyverse:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 37.272% when pulling 804c395 on cdosborn:master into b4f15b6 on cyverse:master.

@cdosborn cdosborn merged commit 804c395 into cyverse:master Apr 3, 2018
@julianpistorius julianpistorius added this to the v32 milestone Apr 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants