migration error

Asked by Oliver Mueller

Hi,

i become a error by migrating a VM from Computenode2 to Computenode, the other way comes the some error.

in the Computelog from Computenode1 comes>
2013-05-24 08:22:15.193 1441 TRACE nova.openstack.common.rpc.amqp IOError: [Errno 13] Permission denied: u'/var/lib/nova/instances/4bb13eb9-1d76-47ae-9742-3794fd11f3a8/libvirt.xml'

Both of the Computenodes have exactly the same usernames and passwords.

My Hypervisor is Qemu

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Lawrnecy Meng (longeek) said :
#1

pls, check the owner of dir '/var/lib/nova/', this dir should be owned by nova.

Revision history for this message
Oliver Mueller (ollimaller) said :
#2

hi,

thanks for reply, the owner ist nova with the rights drwx r-x r-x

Revision history for this message
ChangBo Guo(gcb) (glongwave) said :
#3

It seems libvirt have no acess to the file . need make some configurations for libvirt to work with openstack
Hope the following steps for Redhat 6.3/6.4 can help you :

  1.# chown root:root /var/run/libvirt/qemu /var/lib/libvirt/qemu /var/cache/libvirt/qemu

  2.Edit /etc/libvirt/qemu.conf
    # The user ID for QEMU processes run by the system instance.
    user = "root"
    # The group ID for QEMU processes run by the system instance.
    group = "root"

  3.Restart libvirt service
    #service libvirtd restart

Can you help with this problem?

Provide an answer of your own, or ask Oliver Mueller for more information if necessary.

To post a message you must log in.