XCP

nova can not boot instance from image

Bug #1029345 reported by Bilenkis Yuri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned
XCP
New
Undecided
Unassigned

Bug Description

I am using Debian Wheezy with xcp. I am upload image.raw into glance:
#glance add name=xen.raw disk_format=raw container_format=ovf < xen.raw
Then try to boot:
# nova boot --flavor 1 --image e132ec71-f42a-4854-a3f4-16ae3a8b1ce9 --key_name mykey --security_group default xen.raw
Last trace from nova-compute.log:
2012-07-26 13:15:04 ERROR nova.rpc.amqp [req-b2e99aed-626c-4b7f-9358-4f96ffb9d767 02b1f6a1d6264561a390a7835452524e ae4175d1bc32499f9a2437a5a0816521] Exception during message handling
2012-07-26 13:15:04 TRACE nova.rpc.amqp Traceback (most recent call last):
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _process_data
2012-07-26 13:15:04 TRACE nova.rpc.amqp rval = node_func(context=ctxt, **node_args)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped
2012-07-26 13:15:04 TRACE nova.rpc.amqp return f(*args, **kw)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 183, in decorated_function
2012-07-26 13:15:04 TRACE nova.rpc.amqp sys.exc_info())
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-07-26 13:15:04 TRACE nova.rpc.amqp self.gen.next()
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177,
 in decorated_function
2012-07-26 13:15:04 TRACE nova.rpc.amqp return function(self, context, instance_uuid, *args, **kwargs)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 663,
 in run_instance
2012-07-26 13:15:04 TRACE nova.rpc.amqp do_run_instance()
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 945, in inner
2012-07-26 13:15:04 TRACE nova.rpc.amqp retval = f(*args, **kwargs)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 662,
 in do_run_instance
2012-07-26 13:15:04 TRACE nova.rpc.amqp self._run_instance(context, instance_uuid, **kwargs)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 463,
 in _run_instance [109/1028]
2012-07-26 13:15:04 TRACE nova.rpc.amqp self._set_instance_error_state(context, instance_uuid)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-07-26 13:15:04 TRACE nova.rpc.amqp self.gen.next()
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 444,
 in _run_instance
2012-07-26 13:15:04 TRACE nova.rpc.amqp self._deallocate_network(context, instance)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-07-26 13:15:04 TRACE nova.rpc.amqp self.gen.next()
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 441,
 in _run_instance
2012-07-26 13:15:04 TRACE nova.rpc.amqp injected_files, admin_password)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 604,
 in _spawn
2012-07-26 13:15:04 TRACE nova.rpc.amqp self._legacy_nw_info(network_info), block_device_info)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi_conn.py", line 184, in spawn
2012-07-26 13:15:04 TRACE nova.rpc.amqp self._vmops.spawn(context, instance, image_meta, network_info)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 359, in spawn
2012-07-26 13:15:04 TRACE nova.rpc.amqp undo_mgr.rollback_and_reraise(msg=msg)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 1714, in rollback_and_reraise
2012-07-26 13:15:04 TRACE nova.rpc.amqp self._rollback()
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-07-26 13:15:04 TRACE nova.rpc.amqp self.gen.next()
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 352, in spawn
2012-07-26 13:15:04 TRACE nova.rpc.amqp boot_instance_step(undo_mgr, vm_ref)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 138, in inner
2012-07-26 13:15:04 TRACE nova.rpc.amqp rv = f(*args, **kwargs)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 336, in boot_instance_step
2012-07-26 13:15:04 TRACE nova.rpc.amqp self._spawn(instance, vm_ref)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 548, in _spawn
2012-07-26 13:15:04 TRACE nova.rpc.amqp self._start(instance, vm_ref)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 235, in _start
2012-07-26 13:15:04 TRACE nova.rpc.amqp False, False)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi_conn.py", line 576, in call_xenapi
2012-07-26 13:15:04 TRACE nova.rpc.amqp return tpool.execute(f, *args)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 76, in tworker
2012-07-26 13:15:04 TRACE nova.rpc.amqp rv = meth(*args,**kwargs)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/XenAPI.py", line 235, in __call__
2012-07-26 13:15:04 TRACE nova.rpc.amqp return self.__send(self.__name, args)
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/XenAPI.py", line 139, in xenapi_request
2012-07-26 13:15:04 TRACE nova.rpc.amqp result = _parse_result(getattr(self, methodname)(*full_params))
2012-07-26 13:15:04 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/XenAPI.py", line 209, in _parse_result
2012-07-26 13:15:04 TRACE nova.rpc.amqp raise Failure(result['ErrorDescription'])
2012-07-26 13:15:04 TRACE nova.rpc.amqp Failure: ['INTERNAL_ERROR', 'device model failed to initialise: qemu-dm exit
ted unexpectedly']
2012-07-26 13:15:04 TRACE nova.rpc.amqp

Tags: qemu-dm
Revision history for this message
John Garbutt (johngarbutt) wrote :

Can you launch a VM without using nova?
This looks like the xcp-xapi package is not working on your system.

Changed in nova:
status: New → Incomplete
Revision history for this message
Bilenkis Yuri (bilenkis-yuri) wrote :

Thank you for help. I have updates about this bug.
The reason of "nova.rpc.amqp Failure: ['INTERNAL_ERROR', 'device model failed to initialise: qemu-dm exit" is qemu could not work properly with bridge mode of xcp.
You must write "openvswitch" in /etc/xcp/network.conf and then configure xcp for working with this mode (from manual "/usr/share/doc/xcp-xapi/README.Debian.gz").
Then you virtual machine run almost properly. But I have new problem.
#nova boot --flavor 1 --image e132ec71-f42a-4854-a3f4-16ae3a8b1ce9 --key_name mykey --security_group default xen.raw
Wait for a wile and watch console of VM:
#xtightvncviewer 127.0.0.1:5901
My VM is freeze and nothing helps (reboot too).
I can not understand, why VM running under qemu? This is pvm machine... May be I send wrong parameters from nova to xcp?

Revision history for this message
Thierry Carrez (ttx) wrote :

Closing this bug, maybe file a new one about the new issue you encounter. Looks like you have usage issues rather than a bug to report, though, in which case I'd recommend posting a message on the users general mailing-list instead.

Changed in nova:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.