clean source instance directory failed in _cleanup_resize when images_type is rbd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Description
===========
When images_type is rbd, and boot an instance from image, perform resize and resize-confirm of this instance, it will not clean up source instance directory and result in live-migration this instance failed. The following is the error log.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:40.657 20779 ERROR oslo_messaging.
2018-03-22 10:05:42.665 20779 INFO nova.virt.
when images_type is rbd, it will considered is shared storage(in _is_storage_
In this environment, instance directory is not shared storage actually.
Environment
===========
nova: origin/stable/pike
libvirt+kvm
Changed in nova: | |
assignee: | nobody → guolidong (guolidong) |
Changed in nova: | |
assignee: | guolidong (guolidong) → nobody |
Looks like this is the problem: https:/ /review. openstack. org/#/c/ 327419/
That's been around since Newton. I also assume that if people are using ceph/rbd then their computes are on shared storage.
Why would the two computes here not be on the same shared storage pool? If they aren't, but other computes are on shared storage, then you should probably use host aggregates to define the groups of hosts which are in the same shared storage pools so that the scheduler won't pick a destination host for the resize which the source compute can't reach.