Instance Fails to Spawn

Asked by Graham Hemingway on 2011-04-29

Here is my setup:

I run euca-run-instances and the instance quickly goes to "failed to spawn". Here is the output from the machine with nova-compute on it:

2011-04-29 09:07:45,707 INFO nova.virt.libvirt_conn [-] Compute_service record updated for openstack03
2011-04-29 09:07:45,715 DEBUG nova.rpc [-] Initing the Adapter Consumer for compute from (pid=1838) __init__ /usr/lib/pymodules/python2.6/nova/rpc.py:157
2011-04-29 09:07:45,763 DEBUG nova.rpc [-] Initing the Adapter Consumer for compute.openstack03 from (pid=1838) __init__ /usr/lib/pymodules/python2.6/nova/rpc.py:157
2011-04-29 09:07:45,802 INFO nova.rpc [-] Created "compute_fanout" fanout exchange with "compute" routing key
2011-04-29 09:07:45,802 DEBUG nova.rpc [-] Initing the Adapter Consumer for compute from (pid=1838) __init__ /usr/lib/pymodules/python2.6/nova/rpc.py:157
2011-04-29 09:11:05,725 DEBUG nova.rpc [-] received {'_context_request_id': 'F33W3S2G9M04A0LXKL51', '_context_read_deleted': False, 'args': {'instance_id': 20, 'injected_files': None, 'availability_zone': None}, '_context_is_admin': True, '_context_timestamp': '2011-04-29T14:11:04Z', '_context_user': 'heminggs', 'method': 'run_instance', '_context_project': 'vhf-sandbox', '_context_remote_address': '192.168.50.1'} from (pid=1838) _receive /usr/lib/pymodules/python2.6/nova/rpc.py:177
2011-04-29 09:11:05,726 DEBUG nova.rpc [-] unpacked context: {'timestamp': '2011-04-29T14:11:04Z', 'remote_address': '192.168.50.1', 'project': 'vhf-sandbox', 'is_admin': True, 'user': 'heminggs', 'request_id': 'F33W3S2G9M04A0LXKL51', 'read_deleted': False} from (pid=1838) _unpack_context /usr/lib/pymodules/python2.6/nova/rpc.py:350
2011-04-29 09:11:05,802 AUDIT nova.compute.manager [F33W3S2G9M04A0LXKL51 heminggs vhf-sandbox] instance 20: starting...
2011-04-29 09:11:05,959 DEBUG nova.rpc [-] Making asynchronous call on network.openstack01 ... from (pid=1838) call /usr/lib/pymodules/python2.6/nova/rpc.py:370
2011-04-29 09:11:05,959 DEBUG nova.rpc [-] MSG_ID is 16232ebb2755481285c2d8cc8ef5ea3e from (pid=1838) call /usr/lib/pymodules/python2.6/nova/rpc.py:373
2011-04-29 09:11:06,448 DEBUG nova.utils [-] Attempting to grab semaphore "ensure_bridge" for method "ensure_bridge"... from (pid=1838) inner /usr/lib/pymodules/python2.6/nova/utils.py:591
2011-04-29 09:11:06,448 DEBUG nova.utils [-] Attempting to grab file lock "ensure_bridge" for method "ensure_bridge"... from (pid=1838) inner /usr/lib/pymodules/python2.6/nova/utils.py:596
2011-04-29 09:11:06,449 DEBUG nova.utils [-] Running cmd (subprocess): ip link show dev br100 from (pid=1838) execute /usr/lib/pymodules/python2.6/nova/utils.py:141
2011-04-29 09:11:06,454 DEBUG nova.utils [-] Running cmd (subprocess): sudo route -n from (pid=1838) execute /usr/lib/pymodules/python2.6/nova/utils.py:141
2011-04-29 09:11:06,462 DEBUG nova.utils [-] Running cmd (subprocess): sudo ip addr show dev eth2 scope global from (pid=1838) execute /usr/lib/pymodules/python2.6/nova/utils.py:141
2011-04-29 09:11:06,471 DEBUG nova.utils [-] Running cmd (subprocess): sudo brctl addif br100 eth2 from (pid=1838) execute /usr/lib/pymodules/python2.6/nova/utils.py:141
2011-04-29 09:11:06,478 DEBUG nova.utils [-] Result was 1 from (pid=1838) execute /usr/lib/pymodules/python2.6/nova/utils.py:157
2011-04-29 09:11:06,555 DEBUG nova.virt.libvirt_conn [-] instance instance-00000014: starting toXML method from (pid=1838) to_xml /usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py:1034
2011-04-29 09:11:06,710 DEBUG nova.virt.libvirt_conn [-] instance instance-00000014: finished toXML method from (pid=1838) to_xml /usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py:1037
2011-04-29 09:11:06,728 INFO nova [-] called setup_basic_filtering in nwfilter
2011-04-29 09:11:06,728 INFO nova [-] ensuring static filters
2011-04-29 09:11:06,799 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 115, in _wrap
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 623, in spawn
(nova.exception): TRACE: self.firewall_driver.prepare_instance_filter(instance, network_info)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 2001, in prepare_instance_filter
(nova.exception): TRACE: self.add_filters_for_instance(instance, network_info)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 2032, in add_filters_for_instance
(nova.exception): TRACE: network_info)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 2013, in _filters_for_instance
(nova.exception): TRACE: for ip in mapping['ip6s']]
(nova.exception): TRACE: KeyError: 'ip6s'
(nova.exception): TRACE:
2011-04-29 09:11:06,800 ERROR nova.compute.manager [F33W3S2G9M04A0LXKL51 heminggs vhf-sandbox] Instance '20' failed to spawn. Is virtualization enabled in the BIOS?
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 240, in run_instance
(nova.compute.manager): TRACE: self.driver.spawn(instance_ref)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 121, in _wrap
(nova.compute.manager): TRACE: raise Error(str(e))
(nova.compute.manager): TRACE: Error: 'ip6s'
(nova.compute.manager): TRACE:

I checked and BIO does have virt enabled. Any thoughts?
Thanks,
   Graham

Question information

Language:
English Edit question
Status:
Solved
For:
Glance Edit question
Assignee:
No assignee Edit question
Solved by:
Graham Hemingway
Solved:
2011-04-29
Last query:
2011-04-29
Last reply:

Wrong questions area. I am sorry. I will take this over to nova.