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 type: string
default: overcloud-cinder-volume default: overcloud-cinder-volume
OvercloudBlockStorageFlavor: OvercloudBlockStorageFlavor:
default: baremetal
description: Flavor for block storage nodes to request when deploying. description: Flavor for block storage nodes to request when deploying.
type: string type: string
constraints:
- custom_constraint: nova.flavor
resources: resources:
BlockStorageAccessPolicy: BlockStorageAccessPolicy:
type: OS::Heat::AccessPolicy type: OS::Heat::AccessPolicy

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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