Hi everybody, I solved this issue myself but I would be sure this is a
supported solution.

When kvm compute nodes start a a vm , they change the img file ownership.
This behaviour can be modified modifying /etc/libvirt/qemu.conf file and
setting:
user = "root"

# The group for QEMU processes run by the system instance. It can be
# specified in a similar way to user.
group = "root"

# Whether libvirt should dynamically change file ownership
# to match the configured user/group above. Defaults to 1.
# Set to 0 to disable file ownership changes.
dynamic_ownership = 0


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).
I disabled dynamic_ownership because I do not want the owner of the image
become root when the instance is shut-off.
Regards
Ignazio

2015-10-05 10:49 GMT+02:00 Ignazio Cassano <ignaziocass...@gmail.com>:

> Hi everybody, I have an issue with cinder nfs driver.
>
> I launch a vm with a volume (volumeA).
> I stop the vm.
> I create a new volume (volumeB) and attach it to my vm.
> I start again the vm.
> I stop the vm.
> Both volumeA and volumeB change their ownership from cinder to root.
> This causes errors if I try to resize the volume (for example volumeB).
>
> Regards
> Ignazio
>
_______________________________________________
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

Reply via email to