heat/heat/engine
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
..
cfn Re-add str_replace parameter validation, and fix test 2016-02-29 18:06:15 +00:00
clients Fix prepare_for_replace/restore_prev_rsrc handing for server 2016-03-11 14:52:51 +08:00
constraint Add test for performance in constraint validation 2016-02-12 16:05:33 +00:00
hot Refactor validation of arguments to 'repeat' intrinsic function 2016-03-09 17:05:07 -05:00
notification Remove deprecated list_notifier_drivers option 2015-06-01 16:56:21 +03:00
resources Fix prepare_for_replace/restore_prev_rsrc handing for server 2016-03-11 14:52:51 +08:00
__init__.py Do not initialize anything during import phase 2013-04-24 10:03:06 -07:00
api.py Merge "RPC API: Define correct constants for resource data" 2016-01-27 18:48:53 +00:00
attributes.py Fix problems in unicode template support 2016-03-04 01:59:40 +00:00
constraints.py Merge "Use oslo.utils.reflection to extract class name" 2016-03-06 05:01:48 +00:00
dependencies.py Fix problems in unicode template support 2016-03-04 01:59:40 +00:00
environment.py Clean initial registered messages 2016-03-01 11:03:08 +01:00
event.py Do not try to save event resource if too big for db column 2016-03-02 18:05:45 -05:00
function.py Make Functions unhashable 2016-02-16 23:43:11 -05:00
lifecycle_plugin.py Fix garbled docstrings 2015-11-10 11:12:36 -05:00
parameter_groups.py Get rid of bogus debug logging in parameter groups 2015-12-04 19:56:56 -05:00
parameters.py Immutable parameters 2016-02-22 13:40:16 -06:00
plugin_manager.py Fix [H405] pep rule in heat/engine 2015-09-21 14:51:46 +03:00
properties.py Merge "Fix parameter constraint formatting" 2016-03-02 13:34:06 +00:00
resource.py Don't RESOLVE translate in resource init 2016-03-10 19:17:17 +05:30
rsrc_defn.py Merge "Make Functions unhashable" 2016-03-09 02:07:00 +00:00
scheduler.py Fix problems in unicode template support 2016-03-04 01:59:40 +00:00
service.py Modify the message of ERROR in stack_cancel_update() 2016-03-10 12:40:44 +08:00
service_software_config.py Filter out deployments with None config 2016-01-22 16:32:33 +05:30
service_stack_watch.py Using LOG.warning replace LOG.warn 2015-12-29 09:32:42 +00:00
stack.py Merge "Allow resource name as reference if using depends_on" 2016-03-11 04:49:19 +00:00
stack_lock.py Allow StackLock to be used as a context manager 2016-01-25 19:55:04 -05:00
support.py Validate support_status while searching resource registry 2015-08-31 10:01:04 +05:30
sync_point.py Wrong usage of "an" 2015-12-27 16:12:46 +08:00
template.py Remove unused LOG variable with logging import 2015-12-08 05:08:33 -05:00
timestamp.py Fix garbled docstrings 2015-11-10 11:12:36 -05:00
translation.py Don't RESOLVE translate in resource init 2016-03-10 19:17:17 +05:30
update.py Fix problems in unicode template support 2016-03-04 01:59:40 +00:00
watchrule.py Using LOG.warning replace LOG.warn 2015-12-29 09:32:42 +00:00
worker.py Add function tests for event sinks 2016-02-22 09:41:13 +00:00