<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Are you sure your libvirtd will start /usr/bin/kvm with <span style="font-size: 10pt; font-family: "Courier New";">libvirtd group?<br><br>In default, the /usr/bin/kvm is running with libvirt-qemu like user (that depends on how it is built). <br></span></div><div><br>you can try to check it by running "ps -ef" to see the effective user and group id after starting a VM in your way.<br><div><br></div><font color="#990099">-----openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net wrote: -----<br><br></font><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: 2px solid #000000; margin-right: 0px;">To: Diego Parrilla Santamaría <a class="moz-txt-link-rfc2396E" href="mailto:diego.parrilla.santamaria@gmail.com"><diego.parrilla.santamaria@gmail.com></a><br>From: "Vaze, Mandar" <a class="moz-txt-link-rfc2396E" href="mailto:Mandar.Vaze@nttdata.com"><Mandar.Vaze@nttdata.com></a><br>Sent by: <a class="moz-txt-link-abbreviated" href="mailto:openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net">openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net</a><br>Date: 04/04/2012 06:43PM<br>Cc: <a class="moz-txt-link-rfc2396E" href="mailto:openstack@lists.launchpad.net">"openstack@lists.launchpad.net"</a> <a class="moz-txt-link-rfc2396E" href="mailto:openstack@lists.launchpad.net"><openstack@lists.launchpad.net></a><br>Subject: Re: [Openstack] Instance fails to spawn when instance_path is nfs mounted<br><br>
<!--Notes ACF <meta http-equiv="Content-Type" content="text/html; charset=utf-8">-->
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<div>
<p class="MsoListParagraph" style="text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Wingdings;"><font color="#1f497d"><span style="">Ø<span style="font: 7pt "Times New Roman";">
</span></span></font></span><!--[endif]-->Check if not only root can write on the nfs share (specially libvirt user).<font color="#1f497d"><o:p></o:p></font></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif";"><font color="#1f497d"><o:p> </o:p></font></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 11pt; font-family: "Calibri","sans-serif";"><font color="#1f497d">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.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 11pt; font-family: "Calibri","sans-serif";"><font color="#1f497d">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.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: "Courier New";">mandar@ubuntu-dev-mandar:/nfs_shared_instances_path/instance-00000005$ ll<br>
total 10944<br>
drwxrwxr-x 2 mandar libvirtd 4096 2012-04-03 05:42 ./<br>
drwxrwxrwx 4 root root 4096 2012-04-03 05:42 ../<br>
-rw-rw---- 1 mandar libvirtd 0 2012-04-03 05:42 console.log<br>
-rw-r--r-- 1 mandar libvirtd 6291968 2012-04-03 05:42 disk<br>
-rw-rw-r-- 1 mandar libvirtd 4731440 2012-04-03 05:42 kernel<br>
-rw-rw-r-- 1 mandar libvirtd 1067 2012-04-03 05:42 libvirt.xml<br>
-rw-rw-r-- 1 mandar libvirtd 2254249 2012-04-03 05:42 ramdisk<font color="#1f497d"><o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 11pt; font-family: "Calibri","sans-serif";"><font color="#1f497d">I also moved the mount point from “/” to my home folder – still didn’t help<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 11pt; font-family: "Calibri","sans-serif";"><font color="#1f497d">-Mandar<o:p></o:p></font></span></p>
<div>
<p class="MsoNormal">On Tue, Apr 3, 2012 at 6:43 PM, Mandar Vaze / <span style="font-family: "Mangal","serif";">
मंदार</span> <span style="font-family: "Mangal","serif";">वझे</span> <<a href="mailto:mandarvaze@gmail.com">mandarvaze@gmail.com</a>> wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal">I saw an old question posted here :<br>
<a href="https://answers.launchpad.net/nova/+question/164689" target="_blank">https://answers.launchpad.net/nova/+question/164689</a><br><br>
But I am not trying live migration.<br><br>
I have nfs mounted instances_path - so when I try to spawn an instance I<br>
run into the above errors. Especially following :<br><br>
File "/usr/lib/python2.7/dist-packages/libvirt.py", line 372, in createWithFlags<br>
40842 2012-04-03 05:42:27 TRACE nova.rpc.amqp if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)<br>
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<br><br>
But as you can see below, several files are created in this folder, so I<br>
am not sure if mine if permissions issue (Else none of the files would<br>
get created) The problem is reported when libvirt tries to write to<br>
console.log (File itself is created with correct permissions - just that<br>
this is zero byte file)<br><br>
mandar@ubuntu-dev-mandar:/nfs_shared_instances_path/instance-00000005$ ll<br>
total 10944<br>
drwxrwxr-x 2 mandar libvirtd 4096 2012-04-03 05:42 ./<br>
drwxrwxrwx 4 root root 4096 2012-04-03 05:42 ../<br>
-rw-rw---- 1 mandar libvirtd 0 2012-04-03 05:42 console.log<br>
-rw-r--r-- 1 mandar libvirtd 6291968 2012-04-03 05:42 disk<br>
-rw-rw-r-- 1 mandar libvirtd 4731440 2012-04-03 05:42 kernel<br>
-rw-rw-r-- 1 mandar libvirtd 1067 2012-04-03 05:42 libvirt.xml<br>
-rw-rw-r-- 1 mandar libvirtd 2254249 2012-04-03 05:42 ramdisk<br><br>
I'm suspecting : <a href="https://bugs.launchpad.net/ubuntu/maverick/+source/libvirt/+bug/632696" target="_blank">
https://bugs.launchpad.net/ubuntu/maverick/+source/libvirt/+bug/632696</a><br>
But I the above doesn't show itself in non-NFS setup<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Please suggest !!!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><font color="#888888"><o:p> </o:p></font></p>
</div>
<div>
<p class="MsoNormal"><font color="#888888">-Mandar<o:p></o:p></font></p>
</div>
<div>
<p class="MsoNormal"><font color="#888888"><o:p> </o:p></font></p>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<br clear="both">
______________________________________________________________________<br>
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<br>
<font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>Mailing list: <a href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>Post to : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>More help : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></font>
</blockquote><br></div></font>
<br/>