<div dir="ltr"><div><div><div>Hi everybody, I solved this issue myself but I would be sure this is a supported solution.<br><br></div>When kvm compute nodes start a a vm , they change the img file ownership.<br></div>This behaviour can be modified modifying /etc/libvirt/qemu.conf file and setting:<br>user = "root"<br><br># The group for QEMU processes run by the system instance. It can be<br># specified in a similar way to user.<br>group = "root"<br><br># Whether libvirt should dynamically change file ownership<br># to match the configured user/group above. Defaults to 1.<br># Set to 0 to disable file ownership changes.<br>dynamic_ownership = 0<br><br><br></div><div>I start qemu with uid root because the original image ownership is "cinder" and compute node does not know this user (but since the nfs file system is exported with no_root_squash , root is able to modify the image).<br></div><div>I disabled dynamic_ownership because I do not want the owner of the image become root when the instance is shut-off.<br></div><div>Regards<br></div><div>Ignazio<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-05 10:49 GMT+02:00 Ignazio Cassano <span dir="ltr"><<a href="mailto:ignaziocassano@gmail.com" target="_blank">ignaziocassano@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi everybody, I have an issue with cinder nfs driver.<br><br></div>I launch a vm with a volume (volumeA).<br></div>I stop the vm.<br></div>I create a new volume (volumeB) and attach it to my vm.<br></div>I start again the vm.<br></div>I stop the vm.<br></div>Both volumeA and volumeB change their ownership from cinder to root.<br></div>This causes errors if I try to resize the volume (for example volumeB).<br><br></div>Regards<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Ignazio<br></font></span></div>
</blockquote></div><br></div>