summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKei Masumoto <masumotok@nttdata.co.jp>2011-04-05 20:20:32 +0900
committerKei Masumoto <masumotok@nttdata.co.jp>2011-04-05 20:20:32 +0900
commit4d1f60df049e11623df7d6174eda19e5e27d004e (patch)
treebb4dde92c1e9fd95f1cfd1162235297c42b655ab
parent08417c48c223ad1b698ab1d00686a967b6a2dc0a (diff)
downloadnova-4d1f60df049e11623df7d6174eda19e5e27d004e.tar.gz
nova-4d1f60df049e11623df7d6174eda19e5e27d004e.tar.xz
nova-4d1f60df049e11623df7d6174eda19e5e27d004e.zip
fix bug lp751231
-rw-r--r--nova/compute/manager.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 08b772517..37a904b1e 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -1090,6 +1090,15 @@ class ComputeManager(manager.SchedulerDependentManager):
vm_state = vm_instance.state
vms_not_found_in_db.remove(name)
+ if db_instance['state_description'] == 'migrating':
+ # A situation which db record exists, but no instance"
+ # sometimes occurs while live-migration at src compute,
+ # this case should be ignored.
+ LOG.info(_("the instance '%(name)s' is not found in hypervisor"
+ ", while db record is found. But not synchronize "
+ "since it is migrating." % locals()))
+ continue
+
if vm_state != db_state:
LOG.info(_("DB/VM state mismatch. Changing state from "
"'%(db_state)s' to '%(vm_state)s'") % locals())