← Back to team overview

openstack team mailing list archive

Re: Instance fails to spawn when instance_path is nfs mounted

 

Ø  Check if not only root can write on the nfs share (specially libvirt user).

It doesn’t look like permissions issue to me. Just to be doubly sure, I “touched” a file, in that folder, edited and deleted the file. All operations worked w/o error.
As I have listed below, several files got created with correct user/group settings.  In fact, “instance-00000005” folder itself was created with correct permissions.
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 also moved the mount point from “/” to my home folder – still didn’t help
-Mandar
On Tue, Apr 3, 2012 at 6:43 PM, Mandar Vaze / मंदार वझे <mandarvaze@xxxxxxxxx<mailto:mandarvaze@xxxxxxxxx>> wrote:
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


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


______________________________________________________________________
Disclaimer:This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data.  If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding

Follow ups

References