qemu-kvm fails with "Permission denied" when trying to open console.log
Bug #1337760 reported by
Jaroslav Henner
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
in the libvirt log:
qemu-kvm: -drive file=/var/
The file is created with this permissions:
-rw-rw----. 1 nova nova 0 4. čec 04.58 /var/lib/
# id qemu
uid=107(qemu) gid=107(qemu) groups=
openstack-
tags: | added: libvirt |
Changed in nova: | |
status: | New → Incomplete |
tags: | added: migration |
To post a comment you must log in.
There are lines like:
2014-07-04 04:41:03.685 5272 TRACE nova.compute. manager [instance: 1dbcc37a- 828f-4285- 843c-c3b3f51d65 54] qemu-kvm: -chardev file,id= charserial0, path=/var/ lib/nova/ instances/ 1dbcc37a- 828f-4285- 843c-c3b3f51d65 54/console. log: Could not open '/var/lib/ nova/instances/ 1dbcc37a- 828f-4285- 843c-c3b3f51d65 54/console. log': Permission denied
after I have manually added the permissions to the console.log `chmod a+rw ...`, there started to appear lines like:
2014-07-04 05:00:30.033 5272 TRACE nova.compute. manager [instance: a2f907b5- 6fe2-402a- 86fe-81c44058a9 29] qemu-kvm: -drive file=/var/ lib/nova/ instances/ a2f907b5- 6fe2-402a- 86fe-81c44058a9 29/disk, if=none, id=drive- virtio- disk0,format= qcow2,cache= none: could not open disk image /var/lib/ nova/instances/ a2f907b5- 6fe2-402a- 86fe-81c44058a9 29/disk: Could not open file: Permission denied