commit 296d92bd44d1b8eb161f94f70cba5db4d17f8f65
Author: Fei Long Wang <email address hidden>
Date: Sat Oct 25 10:05:57 2014 +1300
Fix nova-compute start issue after evacuate
After evacuated successfully, and restarting the failed
host to get it back, Nova will call init_host() and then
call method _destroy_evacuated_instances(). In method
_destroy_evacuated_instances(), nova will check again if
the storage is shared or not to decide if the storage
should be destroyed. Now nova is using temp file to check
if it's shared file system, but it's wrong for RBD case.
So Nova will attempt to delete the shared block storage,
which will fail since it's used by the new instance. This
patch fixes this issue and adds test cases for that.
Reviewed: https:/ /review. openstack. org/130905 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=296d92bd44d 1b8eb161f94f70c ba5db4d17f8f65
Committed: https:/
Submitter: Jenkins
Branch: master
commit 296d92bd44d1b8e b161f94f70cba5d b4d17f8f65
Author: Fei Long Wang <email address hidden>
Date: Sat Oct 25 10:05:57 2014 +1300
Fix nova-compute start issue after evacuate
After evacuated successfully, and restarting the failed evacuated_ instances( ). In method evacuated_ instances( ), nova will check again if
host to get it back, Nova will call init_host() and then
call method _destroy_
_destroy_
the storage is shared or not to decide if the storage
should be destroyed. Now nova is using temp file to check
if it's shared file system, but it's wrong for RBD case.
So Nova will attempt to delete the shared block storage,
which will fail since it's used by the new instance. This
patch fixes this issue and adds test cases for that.
Closes-Bug: 1385484
Change-Id: I71bb818f3c2930 b3a2ddf1817dfd4 bb61fae7e98