Don't replace OS::Neutron::Port on update

Due to an ununsual interface to OS::Neutron::Port resources,
it's necessary to specify replacement_policy: AUTO, or the
resource is unconditionally replaced on every stack update.

I've started discussion re possibly changing the default in
Heat, but right now, we need this or we have the bad outcome
of replacing all (!) compute and controller nodes on every
stack-update, even if the templates are unmodified.

Passing the AUTO value should be safe regardless of any
potential change of default value in Heat.

Change-Id: I6dd02ae17407f8f4c81ae418e5027f4f38ae4e9b
Closes-Bug: #1383709
This commit is contained in:
Steve Hardy 2014-10-28 19:22:18 +00:00 committed by Steven Hardy
parent 04dd8be010
commit 9cf073075c
3 changed files with 5 additions and 0 deletions

View File

@ -351,6 +351,7 @@ resources:
network_id: {get_param: NeutronControlPlaneID}
fixed_ips:
get_param: ControlFixedIPs
replacement_policy: AUTO
MysqlClusterUniquePart:
type: OS::Heat::RandomString
properties:
@ -366,6 +367,7 @@ resources:
network: {get_param: PublicVirtualNetwork}
fixed_ips:
get_param: PublicVirtualFixedIPs
replacement_policy: AUTO
RabbitCookie:
type: OS::Heat::RandomString
properties:

View File

@ -36,3 +36,4 @@ resources:
properties:
name: controller0_vlan
network: public
replacement_policy: AUTO

View File

@ -569,6 +569,7 @@ resources:
name: control_virtual_ip
network_id: {get_param: NeutronControlPlaneID}
fixed_ips: {get_param: ControlFixedIPs}
replacement_policy: AUTO
PublicVirtualIP:
type: OS::Neutron::Port
@ -576,6 +577,7 @@ resources:
name: public_virtual_ip
network: {get_param: PublicVirtualNetwork}
fixed_ips: {get_param: PublicVirtualFixedIPs}
replacement_policy: AUTO
ControllerBootstrapNodeConfig:
type: OS::Heat::StructuredConfig