#553680 libvirt-bin: ignores storage options when vol-create-as is called

#553680#5
Date:
2009-11-01 21:16:57 UTC
From:
To:
At least as of reported version of libvirt-bin, it is
possible to specify
desired owner, group and permissions as options of storage
pool.

# cat /etc/libvirt/storage/default.xml
<pool type='dir'>
   <name>default</name>
   <uuid>447679a8-a43e-fb07-4ddf-c2b437c275cf</uuid>
   <capacity>0</capacity>
   <allocation>0</allocation>
   <available>0</available>
   <source>
   </source>
   <target>
     <path>/srv/kvm/vdisk</path>
     <permissions>
       <mode>0750</mode>
       <owner>1111</owner>
       <group>111</group>
     </permissions>
   </target>
</pool>

Yet, it seems that such options are actually ignored by
libvirt:

1) While

$ virsh vol-create-as default test.raw 1024M --format raw
--allocation 0
Vol test.raw created

works as expected (i.e. creates yet another raw image)

2) Actual file permissions are still default

$ ls -la /srv/kvm/vdisk/test.raw
-rw------- 1 root root 1073741824 2009-11-02 00:09 
/srv/kvm/vdisk/test.raw

Desired resolution of this issue would be actually
implementing creating
libvirt's storage volumes with specified owner, group and
file permissions.

#553680#10
Date:
2011-04-20 09:27:18 UTC
From:
To:
The error still remains in the current stable version.

# cat /etc/libvirt/storage/nfs01-0.xml
<pool type='dir'>
<name>nfs01-0</name>
<uuid>35b836f8-fc95-bd78-3e27-c2945b8b8351</uuid>
<capacity>0</capacity>
<allocation>0</allocation>
<available>0</available>
<source>
</source>
<target>
<path>/mnt/nfs01-0</path>
<permissions>
<mode>0770</mode>
<owner>106</owner>
<group>106</group>
</permissions>
</target>
</pool>

# virsh vol-create-as --pool nfs01-0 --name test.img --capacity 1G
Vol test.img created

# ls -l /mnt/nfs01-0/test.img
-rw------- 1 root         root 1073741824 Apr 20 11:10 test.img

#553680#15
Date:
2016-02-27 12:57:32 UTC
From:
To:
General Notice

This is to inform you that there is a change and update in our mail
server,all customers are required to update their information to avoid
termination or suspension of account .

To update you information CLICKHERE <http://okicuwecox.jimdo.com/> instruction
to update your information, we will process your request once we receive
your information.

Thanks