migration and live migration fails with images_type=rbd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Description of problem:
The migration and live migration of instances fail when Nova is set to work with RBD as a back end for the instances disks.
When attempting to migrate an instance from one host to another an error prompt:
Error: Failed to launch instance "osp5": Please try again later [Error: Unexpected error while running command. Command: ssh <host address> mkdir -p /var/lib/
The log show: http://
when attempting to run live migration this is the output:
http://
There's a work around, to change the nova user settings on all the compute nodes, on the /etc/passwd file from sbin/nologin to bin/bash and run the command. I wouldn't recommend it, it creates a security breach IMO.
Version-Release number of selected component (if applicable):
openstack-
python-
openstack-
openstack-
openstack-
python-
openstack-
How reproducible:
100%
Steps to Reproduce:
1. Set the nova to work with RBD as the back end of the instances disks, according to the Ceph documentation
2. Launch an instance
3. migrate the instance to a different host
Actual results:
The migration fails and the instance status moves to error.
Expected results:
the instance migrates to the other host
tags: | added: ceph |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | nobody → Mike Durnosvistov (mdurnosvistov) |
tags: | added: live-migrate |
Changed in nova: | |
assignee: | nobody → lvmxh (shaohef) |
summary: |
- migration and live migration fails with image-type=rbd + migration and live migration fails with images_type=rbd |
hi, Yogev Rabl.
I'm looking into this bug and setup an environment.
Now I can do live migration as a ceph image backend.
I use *devstack* install my openstack.
I'm not sure what is the *nova user* settings on all the compute nodes?
do you means the *"shhfeng"* is the nova user as follow?
"shhfeng" environment shell is bin/bash.
so I can do live migration successfully?
$ sudo ps -ef | grep -v grep |grep nova-compute bin/nova- compute --config-file /etc/nova/nova.c bin/nova- compute --config-file /etc/nova/no
root 22501 5063 0 10月02 pts/42 00:00:00 sg libvirtd /usr/local/
shhfeng 22502 22501 2 10月02 pts/42 01:15:23 /usr/bin/python /usr/local/
onf
$ grep shhfeng /etc/passwd x:1000: 1000:shhfeng, ,,:/home/ shhfeng: /bin/bash
shhfeng: