failed to allocate fixed ip because old deleted one exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
John Tran | ||
Essex |
Fix Released
|
Medium
|
Vish Ishaya | ||
nova (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
reproduce steps:
1. nova-manage network create private 4.4.4.0/24
2. nova-manage network delete --uuid='xxx'
3. nova-manage network create private 4.4.4.0/24
4. nova boot
the instance will have no fixed ip assigned right because of the deleted fixed address:
nova/db/api.py:
def fixed_ip_
session = get_session()
with session.begin():
def fixed_ip_
result = model_query(
if not result:
raise exception.
# NOTE(sirp): shouldn't we just use project_only here to restrict the
# results?
if is_user_
instance = instance_
return result
the deleted remarked ip will always be updated instead of the right twin.
Changed in nova: | |
assignee: | nobody → John Tran (jtran) |
Changed in nova: | |
milestone: | none → folsom-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-1 → 2012.2 |
Changed in nova (Ubuntu): | |
status: | New → Fix Released |
tags: |
added: verification-done removed: verification-needed |
hmm, looks like we need to change _fixed_ ip_get_ by_address to take read_deleted from context and pass it in when we need it.