[Openstack-security] [Bug 1252519] Re: Live migration failed because of file permission changed
chrone
1252519 at bugs.launchpad.net
Fri Oct 31 04:12:08 UTC 2014
I still got this following error when trying to launch an instance under GlusterFS shared storage on latest updated Ubuntu 14.04.1 LTS by changing the user and group and dynamic_ownership as suggested from the above:
"libvirtError: internal error: process exited while connecting to
monitor: qemu-system-x86_64: -chardev
file,id=charserial0,path=/var/lib/nova/instances/3ce9acb6-fcfd-4042
-93ee-372fe2221f4d/console.log: Could not open
'/var/lib/nova/instances/3ce9acb6-fcfd-4042-93ee-
372fe2221f4d/console.log': Permission denied"
"libvirtError: internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
2014-10-31 04:03:36.246 5008 TRACE nova.compute.manager [instance: 76c0f9bf-d438-4f19-841a-0cc1a8cc3013] failed to initialize KVM: Permission denied"
--
You received this bug notification because you are a member of OpenStack
Security Group, which is subscribed to OpenStack.
https://bugs.launchpad.net/bugs/1252519
Title:
Live migration failed because of file permission changed
Status in OpenStack Compute (Nova):
Confirmed
Bug description:
Openstack : Havana
OS : CentOS 6.4
Shared storage with GlusterFS : /var/lib/nova/instances mounted on glusterfs shared
Instance start up fine on node01. When live migration happen, it moved to node02 but failed with the following error
2013-11-18 16:27:37.813 9837 ERROR nova.openstack.common.periodic_task [-] Error during ComputeManager.update_available_resource: Unexpected error while running command.
Command: env LC_ALL=C LANG=C qemu-img info /var/lib/nova/instances/aa1deb40-ae1d-45e4-a37e-7b0607df372f/disk
Exit code: 1
Stdout: ''
Stderr: "qemu-img: Could not open '/var/lib/nova/instances/aa1deb40-ae1d-45e4-a37e-7b0607df372f/disk'\n"
2013-11-18 16:27:37.813 9837 TRACE nova.openstack.common.periodic_task Traceback (most recent call last):
2013-11-18 16:27:37.813 9837 TRACE nova.openstack.common.periodic_task File "/usr/lib/python2.6/site-packages/nova/openstack/common/periodic_task.py", line 180, in run_periodic_tasks
2013-11-18 16:27:37.813 9837 TRACE nova.openstack.common.periodic_task task(self, context)
The problem is with the file ownership of "console.log" and "disk".
Those file should be owned by user "qemu" and group "qemu" but after
the migration, both files are owned by root
drwxr-xr-x 2 nova nova 53 Nov 18 13:40 .
drwxr-xr-x 6 nova nova 110 Nov 18 13:43 ..
-rw-rw---- 1 root root 1546 Nov 18 13:43 console.log
-rw-r--r-- 1 root root 12058624 Nov 18 13:42 disk
-rw-r--r-- 1 nova nova 1569 Nov 18 13:42 libvirt.xml
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1252519/+subscriptions
More information about the Openstack-security
mailing list