Updates ControlPlaneSubnetCidr to be a string
authorRhys Oxenham <roxenham@redhat.com>
Wed, 30 Mar 2016 23:08:17 +0000 (00:08 +0100)
committerRhys Oxenham <roxenham@redhat.com>
Wed, 30 Mar 2016 23:08:17 +0000 (00:08 +0100)
Heat is unable to execute the following join when creating the
os-net-config definition (OsNetConfigImpl):

addresses:
-
ip_netmask:
list_join:
- '/'
- - {get_param: ControlPlaneIp}
          - {get_param: ControlPlaneSubnetCidr}

In the default network-environment.yaml environment file the
ControlPlaneSubnetCidr is defaulted as a non-string "24", e.g.

ControlPlaneSubnetCidr: 24

Resulting in the following error, upon deploymnet:

2016-03-30 22:44:17 [overcloud-Controller-wazxxjc6dq22-2-2ictqfdx2nuo]:
  CREATE_FAILED  Resource CREATE failed:
    resources.NetworkConfig:
      Property error:
        resources.OsNetConfigImpl.properties.config:
          Items to join must be strings not 24

This patch simply updates the default value to '24', to match other
templates. This allows a deployment to succeed as expected.

Change-Id: I5f75b02dba5c35a9856c6ceff9cf6c24a0cb56d8

environments/network-environment.yaml

index 005310c..9f2c667 100644 (file)
@@ -22,7 +22,7 @@ parameter_defaults:
   TenantNetCidr: 172.16.0.0/24
   ExternalNetCidr: 10.0.0.0/24
   # CIDR subnet mask length for provisioning network
-  ControlPlaneSubnetCidr: 24
+  ControlPlaneSubnetCidr: '24'
   # Customize the IP ranges on each network to use for static IPs and VIPs
   InternalApiAllocationPools: [{'start': '172.17.0.10', 'end': '172.17.0.200'}]
   StorageAllocationPools: [{'start': '172.18.0.10', 'end': '172.18.0.200'}]