permissions issue with console.log in libvirt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Soren Hansen |
Bug Description
unable to get console output of an instance due to permission issues:
steps to reproduce:
1) install nova from ubuntu packages with KVM on lucid
2) run an instance
2.5) wait for launch
3) get console output
expected: console log
actual: exception is thrown
------
console.log is being created with -rw------- permissions, and upon instance kvm launch, the console.log becomes owned by the libvirt-qemu user.
os.
It appears that 0660 was trying to be set - but the third parameter to os.open is buffer size, not permissions
I've worked around this by changing this to:
AND adding the nova user to the kvm group, since after instance launch the console.log becomes:
owner: libvirt-qemu
group: kvm
Thoughts on how we want to actually do this?
Related branches
- Devin Carlen (community): Approve
- Eric Day (community): Approve
-
Diff: 23 lines (+4/-5)1 file modifiednova/virt/libvirt_conn.py (+4/-5)
Changed in nova: | |
status: | Confirmed → Fix Released |
the file is nova/virt/ libvirt_ conn.py