Instance state getting failed to spawn

Asked by naangilsunder

Hi All,
I could install Nova Bexar,successfully and All Nova service are running.Issue is while i launch instance, I get status message as "failed to spawn" and the instance get terminated

(i also had installed Nova Bexar, 2 day back on my other PC and they seem to work fine)

The output of nova-compute.log

The output of nova-compute.log
------------------------------------------------
2011-03-28 14:41:44,359 DEBUG nova.rpc [-] received {u'_context_request_id': u'Z9774IODFEH0J-W4AWVO', u'_context_read_deleted': False, u'args': {u'instance_id': 28, u'injected_files': None, u'availability_zone': None}, u'_context_is_admin': True, u'_context_timestamp': u'2011-03-28T09:11:43Z', u'_context_user': u'admin', u'method': u'run_instance', u'_context_project': u'Cusdel', u'_context_remote_address': u'192.168.1.5'} from (pid=7741) _receive /usr/lib/pymodules/python2.6/nova/rpc.py:162
2011-03-28 14:41:44,360 DEBUG nova.rpc [-] unpacked context: {'timestamp': u'2011-03-28T09:11:43Z', 'remote_address': u'192.168.1.5', 'project': u'Cusdel', 'is_admin': True, 'user': u'admin', 'request_id': u'Z9774IODFEH0J-W4AWVO', 'read_deleted': False} from (pid=7741) _unpack_context /usr/lib/pymodules/python2.6/nova/rpc.py:326
2011-03-28 14:41:44,403 AUDIT nova.compute.manager [Z9774IODFEH0J-W4AWVO admin Cusdel] instance 28: starting...
2011-03-28 14:41:44,501 DEBUG nova.rpc [-] Making asynchronous call on network.cnnc ... from (pid=7741) call /usr/lib/pymodules/python2.6/nova/rpc.py:345
2011-03-28 14:41:44,501 DEBUG nova.rpc [-] MSG_ID is 445c1a94602b4a6e8819f39351c90c45 from (pid=7741) call /usr/lib/pymodules/python2.6/nova/rpc.py:348
2011-03-28 14:41:44,957 DEBUG nova.utils [-] Running cmd (subprocess): ip link show dev br100 from (pid=7741) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
2011-03-28 14:41:44,964 DEBUG nova.utils [-] Running cmd (subprocess): sudo route -n from (pid=7741) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
2011-03-28 14:41:44,979 DEBUG nova.utils [-] Running cmd (subprocess): sudo ip addr show dev eth1 scope global from (pid=7741) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
2011-03-28 14:41:44,994 DEBUG nova.utils [-] Running cmd (subprocess): sudo brctl addif br100 eth1 from (pid=7741) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
2011-03-28 14:41:45,006 DEBUG nova.utils [-] Result was 1 from (pid=7741) execute /usr/lib/pymodules/python2.6/nova/utils.py:166
2011-03-28 14:41:45,058 DEBUG nova.virt.libvirt_conn [-] instance instance-0000001c: starting toXML method from (pid=7741) to_xml /usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py:838
2011-03-28 14:41:45,095 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 120, in _wrap
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 496, in spawn
(nova.exception): TRACE: xml = self.to_xml(instance, network_info)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 878, in to_xml
(nova.exception): TRACE: xml = str(Template(self.libvirt_xml, searchList=[xml_info]))
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/Cheetah/Template.py", line 981, in __str__
(nova.exception): TRACE: def __str__(self): return getattr(self, mainMethName)()
(nova.exception): TRACE: File "DynamicallyCompiledCheetahTemplate.py", line 206, in respond
(nova.exception): TRACE: NotFound: cannot find 'bridge_name'
(nova.exception): TRACE:
2011-03-28 14:41:45,096 ERROR nova.compute.manager [Z9774IODFEH0J-W4AWVO admin Cusdel] Instance '28' 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 126, in _wrap
(nova.compute.manager): TRACE: raise Error(str(e))
(nova.compute.manager): TRACE: Error: cannot find 'bridge_name'
(nova.compute.manager): TRACE:

pls help

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Vish Ishaya
Solved:
Last query:
Last reply:
Revision history for this message
Best Vish Ishaya (vishvananda) said :
#1

Are you sure you haven't somehow mixed versions by installing from trunk. It looks like you may have a libvirt.xml.template from bexar and code from current trunk.

Vish

On Mar 28, 2011, at 2:28 AM, naangilsunder wrote:

> New question #150749 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/150749
>
>
> Hi All,
> I could install Nova Bexar,successfully and All Nova service are running.Issue is while i launch instance, I get status message as "failed to spawn" and the instance get terminated
>
> (i also had installed Nova Bexar, 2 day back on my other PC and they seem to work fine)
>
>
> The output of nova-compute.log
>
>
> The output of nova-compute.log
> ------------------------------------------------
> 2011-03-28 14:41:44,359 DEBUG nova.rpc [-] received {u'_context_request_id': u'Z9774IODFEH0J-W4AWVO', u'_context_read_deleted': False, u'args': {u'instance_id': 28, u'injected_files': None, u'availability_zone': None}, u'_context_is_admin': True, u'_context_timestamp': u'2011-03-28T09:11:43Z', u'_context_user': u'admin', u'method': u'run_instance', u'_context_project': u'Cusdel', u'_context_remote_address': u'192.168.1.5'} from (pid=7741) _receive /usr/lib/pymodules/python2.6/nova/rpc.py:162
> 2011-03-28 14:41:44,360 DEBUG nova.rpc [-] unpacked context: {'timestamp': u'2011-03-28T09:11:43Z', 'remote_address': u'192.168.1.5', 'project': u'Cusdel', 'is_admin': True, 'user': u'admin', 'request_id': u'Z9774IODFEH0J-W4AWVO', 'read_deleted': False} from (pid=7741) _unpack_context /usr/lib/pymodules/python2.6/nova/rpc.py:326
> 2011-03-28 14:41:44,403 AUDIT nova.compute.manager [Z9774IODFEH0J-W4AWVO admin Cusdel] instance 28: starting...
> 2011-03-28 14:41:44,501 DEBUG nova.rpc [-] Making asynchronous call on network.cnnc ... from (pid=7741) call /usr/lib/pymodules/python2.6/nova/rpc.py:345
> 2011-03-28 14:41:44,501 DEBUG nova.rpc [-] MSG_ID is 445c1a94602b4a6e8819f39351c90c45 from (pid=7741) call /usr/lib/pymodules/python2.6/nova/rpc.py:348
> 2011-03-28 14:41:44,957 DEBUG nova.utils [-] Running cmd (subprocess): ip link show dev br100 from (pid=7741) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
> 2011-03-28 14:41:44,964 DEBUG nova.utils [-] Running cmd (subprocess): sudo route -n from (pid=7741) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
> 2011-03-28 14:41:44,979 DEBUG nova.utils [-] Running cmd (subprocess): sudo ip addr show dev eth1 scope global from (pid=7741) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
> 2011-03-28 14:41:44,994 DEBUG nova.utils [-] Running cmd (subprocess): sudo brctl addif br100 eth1 from (pid=7741) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
> 2011-03-28 14:41:45,006 DEBUG nova.utils [-] Result was 1 from (pid=7741) execute /usr/lib/pymodules/python2.6/nova/utils.py:166
> 2011-03-28 14:41:45,058 DEBUG nova.virt.libvirt_conn [-] instance instance-0000001c: starting toXML method from (pid=7741) to_xml /usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py:838
> 2011-03-28 14:41:45,095 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 120, in _wrap
> (nova.exception): TRACE: return f(*args, **kw)
> (nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 496, in spawn
> (nova.exception): TRACE: xml = self.to_xml(instance, network_info)
> (nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 878, in to_xml
> (nova.exception): TRACE: xml = str(Template(self.libvirt_xml, searchList=[xml_info]))
> (nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/Cheetah/Template.py", line 981, in __str__
> (nova.exception): TRACE: def __str__(self): return getattr(self, mainMethName)()
> (nova.exception): TRACE: File "DynamicallyCompiledCheetahTemplate.py", line 206, in respond
> (nova.exception): TRACE: NotFound: cannot find 'bridge_name'
> (nova.exception): TRACE:
> 2011-03-28 14:41:45,096 ERROR nova.compute.manager [Z9774IODFEH0J-W4AWVO admin Cusdel] Instance '28' 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 126, in _wrap
> (nova.compute.manager): TRACE: raise Error(str(e))
> (nova.compute.manager): TRACE: Error: cannot find 'bridge_name'
> (nova.compute.manager): TRACE:
>
>
> pls help
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
naangilsunder (naangilsunder) said :
#2

Thanks Vish Ishaya, that solved my question.