← Back to team overview

registry team mailing list archive

[Bug 653852] [NEW] permissions issue with console.log in libvirt

 

Public bug reported:

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.close(os.open(basepath('console.log'), os.O_CREAT | os.O_WRONLY,
0660))

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:

        os.close(os.open(basepath('console.log'), os.O_CREAT))
        os.chmod(basepath('console.log'), 0660)

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?

** Affects: nova
     Importance: Medium
     Assignee: Soren Hansen (soren)
         Status: New

-- 
permissions issue with console.log in libvirt
https://bugs.launchpad.net/bugs/653852
You received this bug notification because you are a member of Registry
Administrators, which is subscribed to OpenStack.



Follow ups

References