Live migration failed because of file permission changed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Openstack : Havana
OS : CentOS 6.4
Shared storage with GlusterFS : /var/lib/
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.
Command: env LC_ALL=C LANG=C qemu-img info /var/lib/
Exit code: 1
Stdout: ''
Stderr: "qemu-img: Could not open '/var/lib/
2013-11-18 16:27:37.813 9837 TRACE nova.openstack.
2013-11-18 16:27:37.813 9837 TRACE nova.openstack.
2013-11-18 16:27:37.813 9837 TRACE nova.openstack.
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
tags: | added: compute live-migrate |
tags: | added: security |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Triaged |
tags: | added: libvirt |
Changed in nova: | |
assignee: | nobody → Facundo Maldonado (facundo-n-maldonado) |
Changed in nova: | |
status: | Triaged → Confirmed |
Changed in nova: | |
assignee: | Facundo Maldonado (facundo-n-maldonado) → nobody |
Changed in nova: | |
assignee: | nobody → Eli Qiao (taget-9) |
Cannot reproduce.
Openstack: fresh devstack installation, 1 controller / 3 compute nodes
Shared storage with GlusterFS: 2 nodes/ 2 bricks
OS: Ubuntu server 12.04
Instances were migrated between compute nodes without problem.
The files "console.log" and "disk" are owned by root after the first migration, but that do not
prevent to keep migrating.
Any other clue to try to reproduce this bug?