heat/heat
huangtianhua 163d46bdc8 Fix prepare_for_replace/restore_prev_rsrc handing for server
Now, we set 'fixed_ips' to [] for server ports when prepare
for server replacement, but the ports are still in-use if only
set 'fixed_ips' to []. So this patch will to detach the ports from
nova server to make sure same ports can be attached to new one in
prepare_for_replace(). Also, when restoring server, we need to detach
ports from existing server, and then to attach them to previous
server.

We check the interface attach/detach complete by list the
server.interfaces, this change will use 'retry' wrapper to re-poll
the server interfaces for several times (by new config option
'max_interface_check_attempts', default is 10), then will raise
exception if the attach/detach still not complete.

Closes-Bug: #1533076
Change-Id: I7b322f9cf16c100dcd0365bc3091c289f00f0548
2016-03-11 14:52:51 +08:00
..
api Merge "Fix for resource search with invalid filter keys" 2016-03-09 12:46:11 +00:00
cloudinit Optimize "open" method with context manager 2015-11-27 07:48:55 -05:00
cmd Make minimum default num_engine_workers>=4 2016-01-11 13:32:51 +13:00
common Fix prepare_for_replace/restore_prev_rsrc handing for server 2016-03-11 14:52:51 +08:00
db Merge "Use transactions instead of session.flush" 2016-03-09 10:21:48 +00:00
engine Fix prepare_for_replace/restore_prev_rsrc handing for server 2016-03-11 14:52:51 +08:00
httpd Use pbr for installing wsgi scripts 2015-11-03 09:53:19 +00:00
locale Imported Translations from Zanata 2016-03-10 06:26:30 +00:00
objects Merge "Optimize nested stack status check" 2016-03-06 05:01:38 +00:00
openstack replace git protocol by https 2015-10-22 10:06:05 +08:00
rpc Merge "Use oslo.utils.reflection to extract class name" 2016-03-06 05:01:48 +00:00
scaling Fix [H405] pep rule in heat/scaling 2015-09-21 14:51:45 +03:00
tests Fix prepare_for_replace/restore_prev_rsrc handing for server 2016-03-11 14:52:51 +08:00
__init__.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
version.py