The change modified instance filtering condition, which filters all
deleted instances on current host, which is not as expected by periodic
task.
The periodic task expects instances, whose instance uuid are associated
with migration record. And after filtering we only need to apply the
instance deletion logic on instance files where instance.host is not
set as current host (CONF.host).
This reverts commit 099cf53925c0a0275325339f21932273ee9ce2bc.
Change-Id: Ic71c939bef86f1e5cb485c6827c69c3d638f2e89
Closes-Bug: 1589821
(cherry picked from commit adcc0e418b7d880a0b0bd60ea9d0ef1e2ef4e67e)
Reviewed: https:/ /review. openstack. org/327398 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=f77af87cc34 b3a00eb650f6bd3 a68c7820647e17
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit f77af87cc34b3a0 0eb650f6bd3a68c 7820647e17
Author: Rajesh Tailor <email address hidden>
Date: Tue Jun 7 07:05:11 2016 +0000
Revert "Optimize _cleanup_ incomplete_ migrations periodic task"
The change modified instance filtering condition, which filters all
deleted instances on current host, which is not as expected by periodic
task.
The periodic task expects instances, whose instance uuid are associated
with migration record. And after filtering we only need to apply the
instance deletion logic on instance files where instance.host is not
set as current host (CONF.host).
This reverts commit 099cf53925c0a02 75325339f219322 73ee9ce2bc.
Change-Id: Ic71c939bef86f1 e5cb485c6827c69 c3d638f2e89 a0b0bd60ea9d0ef 1e2ef4e67e)
Closes-Bug: 1589821
(cherry picked from commit adcc0e418b7d880