deleting vm is failed for lvm type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Boris Filippov |
Bug Description
I am using the lvm function of nova-compute , It is successful when creating the vm, but failed when deleting it
the following is failed information:
File "/usr/lib/
do_terminate_
File "/usr/lib/
retval = f(*args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
block_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
disks = self._lvm_
File "/usr/lib/
disk_names = filter(
Error: [Errno 13] Permission denied: '/dev/xenvg1'
this error show that nova-compute process whch runned in nova user has not Permission for vgs directory /dev/xenvg1
# ls -l /dev/
drwx------ 2 root root 80 Aug 28 17:13 xenvg1
Can I must use the chmod command to change the permission of vg directory ?
I think this problem may be one bug ,because creating vg ,the default permission is drwx------
my nova.conf about lvm :
libvirt_
libvirt_
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
milestone: | none → folsom-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
You're right. This is a bug, because lvm creation/deletion goes through rootwrap anyway, and compute user doesn't neccessary have permission to list /dev/vg directory.