Remove default flavor from every template

With the push to using the new setup-flavors provided by
os-cloud-config, the default flavor will no longer be called
'baremetal', and Heat will always validate the default even if it
is overridden. To that end, remove the default flavor from every
flavor definition. Just to be certain, also add a custom_constraint
to every flavor definition that was missing it.

Change-Id: I24251e73be4e86738857f73b89499f592c4908de
This commit is contained in:
Steve Kowalik 2014-11-27 13:01:54 +11:00
parent bacde7fdb6
commit 6f16c96383
11 changed files with 18 additions and 15 deletions

View File

@ -5,9 +5,10 @@ parameters:
type: string
default: overcloud-cinder-volume
OvercloudBlockStorageFlavor:
default: baremetal
description: Flavor for block storage nodes to request when deploying.
type: string
constraints:
- custom_constraint: nova.flavor
resources:
BlockStorageAccessPolicy:
type: OS::Heat::AccessPolicy

View File

@ -5,9 +5,10 @@ parameters:
type: string
default: overcloud-cinder-volume
OvercloudBlockStorageFlavor:
default: baremetal
description: Flavor for block storage nodes to request when deploying.
type: string
constraints:
- custom_constraint: nova.flavor
BlockStorageExtraConfig:
default: {}
description: |

View File

@ -62,9 +62,10 @@ parameters:
}
type: json
Flavor:
default: baremetal
description: Flavor for block storage nodes to request when deploying.
type: string
constraints:
- custom_constraint: nova.flavor
GlancePort:
default: "9292"
description: Glance port.

View File

@ -72,7 +72,6 @@ parameters:
Flavor:
description: Flavor for the nova compute node
type: string
default: baremetal
constraints:
- custom_constraint: nova.flavor
GlanceHost:

View File

@ -94,7 +94,6 @@ parameters:
}
type: json
Flavor:
default: baremetal
description: Flavor for control nodes to request when deploying.
type: string
constraints:

View File

@ -192,7 +192,8 @@ parameters:
OvercloudComputeFlavor:
description: Use this flavor
type: string
default: baremetal
constraints:
- custom_constraint: nova.flavor
RabbitHost:
type: string
RabbitUserName:

View File

@ -346,13 +346,11 @@ parameters:
type: string
default: ''
OvercloudComputeFlavor:
default: baremetal
description: Flavor for compute nodes to request when deploying.
type: string
constraints:
- custom_constraint: nova.flavor
OvercloudControlFlavor:
default: baremetal
description: Flavor for control nodes to request when deploying.
type: string
constraints:

View File

@ -190,7 +190,6 @@ parameters:
constraints:
- custom_constraint: glance.image
OvercloudControlFlavor:
default: baremetal
description: Flavor for control nodes to request when deploying.
type: string
constraints:
@ -404,7 +403,6 @@ parameters:
OvercloudComputeFlavor:
description: Use this flavor
type: string
default: baremetal
constraints:
- custom_constraint: nova.flavor
@ -416,18 +414,20 @@ parameters:
default: overcloud-cinder-volume
type: string
OvercloudBlockStorageFlavor:
default: baremetal
description: Flavor for block storage nodes to request when deploying.
type: string
constraints:
- custom_constraint: nova.flavor
# Object storage specific parameters
ObjectStorageCount:
type: number
default: 0
OvercloudSwiftStorageFlavor:
default: baremetal
description: Flavor for Swift storage nodes to request when deploying.
type: string
constraints:
- custom_constraint: nova.flavor
SwiftStorageImage:
default: overcloud-swift-storage
type: string

View File

@ -2,9 +2,10 @@ heat_template_version: 2013-05-23
description: 'Common Swift Storage Configuration'
parameters:
OvercloudSwiftStorageFlavor:
default: baremetal
description: Flavor for Swift storage nodes to request when deploying.
type: string
constraints:
- custom_constraint: nova.flavor
SwiftReplicas:
type: number
default: 1

View File

@ -43,9 +43,10 @@ parameters:
}
type: json
Flavor:
default: baremetal
description: Flavor for Swift storage nodes to request when deploying.
type: string
constraints:
- custom_constraint: nova.flavor
HashSuffix:
default: unset
description: A random string to be used as a salt when hashing to determine mappings

View File

@ -74,9 +74,10 @@ parameters:
}
type: json
Flavor:
default: baremetal
description: Flavor to request when deploying.
type: string
constraints:
- custom_constraint: nova.flavor
GlanceLogFile:
description: The filepath of the file to use for logging messages from Glance.
type: string