← Back to team overview

openstack team mailing list archive

Instance fails to spawn when instance_path is nfs mounted

 

I saw an old question posted here :
https://answers.launchpad.net/nova/+question/164689

But I am not trying live migration.

I have nfs mounted instances_path - so when I try to spawn an instance I
run into the above errors. Especially following :

File "/usr/lib/python2.7/dist-packages/libvirt.py", line 372, in
createWithFlags
40842 2012-04-03 05:42:27 TRACE nova.rpc.amqp     if ret == -1: raise
libvirtError ('virDomainCreateWithFlags() failed', dom=self)
40843 2012-04-03 05:42:27 TRACE nova.rpc.amqp libvirtError: internal error
Process exited while reading console log output: chardev: opening
backend "file" failed

But as you can see below, several files are created in this folder, so I
am not sure if mine if permissions issue (Else none of the files would
get created) The problem is reported when libvirt tries to write to
console.log (File itself is created with correct permissions - just that
this is zero byte file)

mandar@ubuntu-dev-mandar:/nfs_shared_instances_path/instance-00000005$ ll
total 10944
drwxrwxr-x 2 mandar libvirtd    4096 2012-04-03 05:42 ./
drwxrwxrwx 4 root   root        4096 2012-04-03 05:42 ../
-rw-rw---- 1 mandar libvirtd       0 2012-04-03 05:42 console.log
-rw-r--r-- 1 mandar libvirtd 6291968 2012-04-03 05:42 disk
-rw-rw-r-- 1 mandar libvirtd 4731440 2012-04-03 05:42 kernel
-rw-rw-r-- 1 mandar libvirtd    1067 2012-04-03 05:42 libvirt.xml
-rw-rw-r-- 1 mandar libvirtd 2254249 2012-04-03 05:42 ramdisk

I'm suspecting :
https://bugs.launchpad.net/ubuntu/maverick/+source/libvirt/+bug/632696
But I the above doesn't show itself in non-NFS setup

Please suggest !!!

-Mandar

Follow ups