Failed to start VM (nova.utils bug)

Bug #916886 reported by Samuel Hassine
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

Hi,

I think I have found a bug in the nova-manager/nova-compute utils. I installed Nova in a Debian testing environment (kernel 3.1). My packages are :

ii nova-api 2012.1~e2-3 OpenStack Compute - API frontend
ii nova-common 2012.1~e2-3 OpenStack Compute - common files
ii nova-compute 2012.1~e2-3 OpenStack Compute - compute node
ii nova-compute-kvm 2012.1~e2-3 OpenStack Compute - compute node (KVM)
ii nova-doc 2012.1~e2-3 OpenStack Compute - documentation
ii nova-network 2012.1~e2-3 OpenStack Compute - Network manager
ii nova-objectstore 2012.1~e2-3 OpenStack Compute - object store
ii nova-scheduler 2012.1~e2-3 OpenStack Compute - virtual machine scheduler
ii nova-volume 2012.1~e2-3 OpenStack Compute - storage
ii python-nova 2012.1~e2-3 OpenStack Compute - libraries
ii python-novaclient 1:2012.1~e2-3 client library for OpenStack Compute API

And when I start an instance with this command:

euca-run-instances ami-00000005 -k admin -t m1.tiny

I have the following error:

2012-01-15 19:49:46,620 DEBUG nova.utils [604d0940-d752-4cea-9e1f-d879994e4efa None None] Result was 1 from (pid=1289) execute /usr/lib/python2.7/dist-packages/nova/utils.py:214
2012-01-15 19:49:46,621 ERROR nova.compute.disk [604d0940-d752-4cea-9e1f-d879994e4efa None None] Failed to mount filesystem: Unexpected error while running command.
Command: sudo qemu-nbd -c /dev/nbd14 /var/lib/nova/instances/instance-00000006/disk
Exit code: 1
Stdout: ''
Stderr: "qemu-nbd: Could not access '/dev/nbd14': No such file or directory\n"

Here is the complete trace log: http://pastebin.com/ht1BZUgG
My nova.conf: http://paste.debian.net/152338/

Hope we can find a solution.

Best regards.
Sam

Revision history for this message
Samuel Hassine (samuel-hassine-s) wrote :

After enabling nbd module in the kernel. I successfully deal with this error. But an other, this time it is a bug in arguments given by nova-compute:

Here the complete trace: http://pastebin.com/0XWz7r6R

The error:

2012-01-15 20:42:51,354 ERROR nova.compute.disk [f1640c18-0f1c-4671-8c47-7c72cca79281 None None] Failed to mount filesystem: Unexpected error while running command.
Command: sudo mount /dev/nbd14 /var/lib/nova/instances/instance-00000009//rootfs
Exit code: 32
Stdout: ''
Stderr: 'mount: wrong fs type, bad option, bad superblock on /dev/nbd14,\n missing codepage or helper program, or other error\n In some cases useful info is found in syslog - try\n dmesg | tail or so\n\n'

Best regards.
Sam

Revision history for this message
Samuel Hassine (samuel-hassine-s) wrote :

Hi,

I successfully resolved the errors I have encountered.

If there are some mistakes, it is just because some elements are not documented. I will try to help to complete it.

So you can close this bug.

Thanks.

Best regards.
Sam

Zhongyue Luo (zyluo)
Changed in nova:
status: New → Invalid
Revision history for this message
Nilanjan Roy (nilanjan-r) wrote :

Dear Samuel,

I am also facing the same issue. In the bug post you have mentioned that you have solved the problem. Could you please help me out regarding this?

Thanks & Regards
Nilanjan

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.