heat/heat/common
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
..
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 20:29:31 +08:00
auth_password.py Pass all options when doing keystone discovery 2016-02-19 13:53:47 +01:00
auth_url.py Make auth_url lookup dynamic 2016-03-04 17:35:52 +01:00
cache.py Use caching for resource name/id finders 2016-02-18 17:52:03 +05:30
config.py Fix prepare_for_replace/restore_prev_rsrc handing for server 2016-03-11 14:52:51 +08:00
context.py Use correct user_domain_id when create trust auth plugin 2016-01-18 11:42:03 +08:00
crypt.py Fix [H405] pep rule in heat/common 2015-10-08 15:13:52 +03:00
custom_backend_auth.py Fix some inconsistency in docstrings 2015-12-29 01:40:42 +08:00
endpoint_utils.py Pass all options when doing keystone discovery 2016-02-19 13:53:47 +01:00
environment_format.py Event transport 2016-01-05 10:22:57 +01:00
exception.py Fix prepare_for_replace/restore_prev_rsrc handing for server 2016-03-11 14:52:51 +08:00
grouputils.py InstanceGroup to keep FAILED resources in template 2016-01-21 22:22:31 -05:00
heat_keystoneclient.py Pass all options when doing keystone discovery 2016-02-19 13:53:47 +01:00
i18n.py Fix problems in unicode template support 2016-03-04 01:59:40 +00:00
identifier.py Fix [H405] pep rule in heat/common 2015-10-08 15:13:52 +03:00
lifecycle_plugin_utils.py Fix [H405] pep rule in heat/common 2015-10-08 15:13:52 +03:00
messaging.py Fix some new PEP8 errors found at gate 2015-03-24 11:13:50 +08:00
netutils.py Add SubnetPool neutron Resource 2015-12-02 19:35:14 +05:30
param_utils.py Fix [H405] pep rule in heat/common 2015-10-08 15:13:52 +03:00
plugin_loader.py Update the rest of the code to satisfy flake8 in a py34 env 2015-04-24 11:53:43 +05:30
policy.py Check RBAC policy for nested stacks 2016-02-02 14:41:23 +00:00
profiler.py Use OSprofiler options consolidated in lib itself 2016-02-03 18:25:36 -08:00
serializers.py Fix [H405] pep rule in heat/common 2015-10-08 15:13:52 +03:00
service_utils.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
short_id.py Some lambda were replaced on def 2015-09-23 11:35:29 +01:00
template_format.py JSON size violation gives a bad error with nested templates 2016-01-19 11:30:28 +08:00
timeutils.py Fix [H405] pep rule in heat/common 2015-10-08 15:13:52 +03:00
urlfetch.py py34: Fix integration tests 2015-09-26 20:27:54 +05:30
wsgi.py Remove usage of WritableLogger from oslo_log 2016-02-22 18:11:08 +08:00