[Pkg-libvirt-maintainers] Bug#553680: libvirt-bin: ignores storage options when vol-create-as is called
rman
rman at zmail.ru
Sun Nov 1 21:16:57 UTC 2009
Package: libvirt-bin
Version: 0.6.5-3~bpo50+1
Severity: minor
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.
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libvirt-bin depends on:
ii adduser 3.110 add and
remove users and groups
ii libavahi-clien 0.6.23-3lenny1 Avahi client
library
ii libavahi-commo 0.6.23-3lenny1 Avahi common
library
ii libc6 2.7-18 GNU C
Library: Shared libraries
ii libdbus-1-3 1.2.1-5+lenny1 simple
interprocess messaging syst
ii libdevmapper1. 2:1.02.27-4 The Linux
Kernel Device Mapper use
ii libgcrypt11 1.4.1-1 LGPL Crypto
library - runtime libr
ii libgnutls26 2.4.2-6+lenny1 the GNU TLS
library - runtime libr
ii libgpg-error0 1.4-2 library for
common error values an
ii libhal1 0.5.11-8 Hardware
Abstraction Layer - share
ii libparted1.8-1 1.8.8.git.2008.03.24-11.1 The GNU
Parted disk partitioning s
ii libpolkit-dbus 0.9-2 library for
accessing PolicyKit vi
ii libpolkit2 0.9-2 library for
accessing PolicyKit
ii libreadline5 5.2-3.1 GNU readline
and history libraries
ii libsasl2-2 2.1.22.dfsg1-23+lenny1 Cyrus SASL -
authentication abstra
ii libselinux1 2.0.65-5 SELinux
shared libraries
ii libtasn1-3 1.4-1 Manage ASN.1
structures (runtime)
ii libuuid1 1.41.3-1 universally
unique id library
ii libvirt0 0.6.5-3~bpo50+1 library for
interfacing with diffe
ii libxenstore3.0 3.2.1-2 Xenstore
communications library fo
ii libxml2 2.6.32.dfsg-5+lenny1 GNOME XML
library
ii logrotate 3.7.1-5 Log rotation
utility
ii zlib1g 1:1.2.3.3.dfsg-12 compression
library - runtime
Versions of packages libvirt-bin recommends:
ii bridge-utils 1.4-5 Utilities for
configuring the Linu
ii dnsmasq-base 2.45-1+lenny1 A small
caching DNS proxy and DHCP
ii iptables 1.4.2-6
administration tools for packet fi
pn netcat-openbsd <none> (no
description available)
pn qemu <none> (no
description available)
Versions of packages libvirt-bin suggests:
pn policykit <none> (no
description available)
-- debconf-show failed
---
Professional hosting for everyone - http://www.host.ru
More information about the Pkg-libvirt-maintainers
mailing list