diff options
author | huangtianhua <huangtianhua@huawei.com> | 2016-01-13 14:17:57 +0800 |
---|---|---|
committer | Steve Baker <sbaker@redhat.com> | 2016-09-21 03:51:40 +0000 |
commit | d83ab28e32da1c17ffc05fe3d10369c91a5e5cdb (patch) | |
tree | 6537eac849b2a5502616cb7b085122631cb053a9 /config-generator.conf | |
parent | f32dbe7838c9cf9b935247a145bd55e806ea44b2 (diff) | |
download | heat-d83ab28e32da1c17ffc05fe3d10369c91a5e5cdb.tar.gz |
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 ten times, then will raise
exception if the attach/detach still not complete.
Closes-Bug: #1533076
(cherry picked from commit 163d46bdc8bbfa2e7da2989f5a5d608826de2dcc)
Change-Id: I7b322f9cf16c100dcd0365bc3091c289f00f0548
Diffstat (limited to 'config-generator.conf')
0 files changed, 0 insertions, 0 deletions