KeyError: 'gateway6' - caused by unchecked hash key reference
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Adam Gandelman |
Bug Description
I followed the "scripted installation" and got debian nova packages installed with version 2011.3~
When euca-run-instances was fired to create a new instance, there was error in /var/log/
011-07-06 08:51:39,649 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img create -f qcow2 -o cluster_
2011-07-06 08:51:40,603 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: block_device_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: 'gateway6': mapping[
(nova.exception): TRACE: KeyError: 'gateway6'
(nova.exception): TRACE:
2011-07-06 08:51:40,605 ERROR nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
I digged in and found unchecked key reference in file: nova/virt/
'gateway6': mapping[
Attached is the patch file I submitted to fix this unchecked key reference.
Related branches
- Brian Waldon (community): Approve
- Trey Morris (community): Approve
- Brian Lamar (community): Needs Information
- Jason Kölker (community): Approve
- Alex Meade (community): Approve
-
Diff: 33 lines (+5/-1)2 files modifiedAuthors (+1/-0)
nova/virt/libvirt/connection.py (+4/-1)
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Adam Gandelman (gandelman-a) |
importance: | Undecided → Medium |
status: | Confirmed → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-3 |
Changed in nova: | |
milestone: | diablo-3 → 2011.3 |
status: | Fix Committed → Fix Released |
Thanks for finding this! I ran into the same bug.