common.get_networks_for_instance causes 'NoneType' object is unsubscriptable when using ipv6
Bug #884749 reported by
Dan Prince
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Chris Behrens |
Bug Description
Seeing the following TypeErrors from nova-api.log when trying to create servers:
(nova.api.
(nova.api.
(nova.api.
---
This causes HTTP 404 errors to be returned to the client when the request should have actually succeeded.
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
milestone: | none → essex-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
assignee: | nobody → Chris Behrens (cbehrens) |
Changed in nova: | |
milestone: | essex-1 → 2012.1 |
To post a comment you must log in.
This looks like it was probably already fixed in [Change-Id: I37d21105d6306f 0a812c5eb0f0717 a5094cd17b9] because from that we have in common.py:
306 network = fixed_ip['network'] get('virtual_ interface' ) _("Instance %(name)s has stale IP "
307 vif = fixed_ip.
308 if not network or not vif:
309 name = instance['name']
310 ip = fixed_ip['address']
311 LOG.warn(
312 "address: %(ip)s (no network or vif)") % locals())
313 continue
Perhaps there is still an underlying problem (why is vif == None?) but I expect this would prevent it from showing up as a 404 or 500 error.