Floating ips not available to instances after upgrade

Bug #934118 reported by Andrew Glen-Young
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned
nova (Ubuntu)
Expired
Medium
Unassigned

Bug Description

I have recently upgraded my Openstack installation from the version packaged in Oneiric to the one packaged in Precise.
After the installation, no floating ip addresses were available to instances.

When running "euca-allocate-address" returns a NoMoreFloatingIps exception.

Before the upgrade, I shutdown all running instances but I did not unallocate and unassign floating ip addresses. After the upgrade the floating_ips table in the Nova database had entries, but clearly these entries where seen as reserved by Nova. It seems as though the database migrations do not handle this case.

Workaround:

I needed to run the following SQL query to free up the floating ip addresses for allocation to instances:

sql> UPDATE floating_ips SET deleted_at = NULL, fixed_ip_id = NULL, project_id = NULL, host = NULL where floating_ips.deleted = 0 AND floating_ips.auto_assigned = 0 and host is NULL;

Tags: canonistack
Changed in nova (Ubuntu):
importance: Undecided → Medium
James Troup (elmo)
tags: added: canonistack
Revision history for this message
Mark McLoughlin (markmc) wrote :

> Before the upgrade, I shutdown all running instances but I did not unallocate and unassign floating ip addresses.

Hmm, why would you expect the upgrade to automatically unallocate floating IPs? i.e. when you shutdown an instance, the floating IP is unassigned but not unallocated

Marking as Invalid, but do re-open if I misunderstood

Changed in nova:
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nova (Ubuntu):
status: New → Confirmed
Revision history for this message
Dave Walker (davewalker) wrote :

@Andrew, can you expand on the expected behaviour and what you believe the issue might be?

Is it that the FloatingIp's became 'lost' and were not seemingly associated to users?

Thanks.

Changed in nova (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for nova (Ubuntu) because there has been no activity for 60 days.]

Changed in nova (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.