diff options
| author | Jason Koelker <jason@koelker.net> | 2011-09-16 13:43:31 -0500 |
|---|---|---|
| committer | Jason Koelker <jason@koelker.net> | 2011-09-16 13:43:31 -0500 |
| commit | d503671714645115eef0345e9ed1dbb6ff2fb883 (patch) | |
| tree | 1625dabdeb229c750796ced445aed2caa450f339 | |
| parent | fa359fa8024f247f119d97be46fb7886e999969b (diff) | |
| download | nova-d503671714645115eef0345e9ed1dbb6ff2fb883.tar.gz nova-d503671714645115eef0345e9ed1dbb6ff2fb883.tar.xz nova-d503671714645115eef0345e9ed1dbb6ff2fb883.zip | |
make sure to raise since the tests require it
| -rw-r--r-- | nova/compute/manager.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py index 138e6c58d..694792781 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -1403,6 +1403,11 @@ class ComputeManager(manager.SchedulerDependentManager): # Retry operation is necessary because continuously request comes, # concorrent request occurs to iptables, then it complains. network_info = self._get_instance_nw_info(context, instance_ref) + + fixed_ips = [nw_info[1]['ips'] for nw_info in network_info] + if not fixed_ips: + raise exception.FixedIpNotFoundForInstance(instance_id=instance_id) + max_retry = FLAGS.live_migration_retry_count for cnt in range(max_retry): try: |
