aboutsummaryrefslogtreecommitdiffstats
path: root/overcloud-without-mergepy.yaml
diff options
context:
space:
mode:
authorSteven Hardy <shardy@redhat.com>2014-10-23 16:42:45 +0100
committerSteven Hardy <shardy@redhat.com>2014-10-23 18:42:50 +0100
commit928cd735f30752152e50a3b20145f899cb1b961c (patch)
treeeaae1f70613455a93ff931e587f02824e3e46044 /overcloud-without-mergepy.yaml
parentbcdcc28cb6905be257b50a962822bdbecaef0b0e (diff)
Use parameter constraints for image, key and flavor
If you don't have (or provide) the wrong image, KeyName, or flavor, we fail at some later point (not always early, depending on what's wrong). Since Icehouse, Heat has had a "custom constraints" method of dynamically validating parameter values, by comparing the value provided with a list from the underlying service. Despite the name, there's nothing "custom" about the constraints, these ones are included in Heat by default (though they are pluggable, which is where the name comes from..) See the docs for more info: http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#custom-constraint Note, I've not considered network validation here, this could possibly be added in a subsequent patch. These constraints are evaluated via any of the following: - heat template-validate -f <template> - heat stack-preview <arguments given to create> - heat stack-create <arguments, fails fast before creating anything> - heat stack-update <arguments, fails fast before updating anything> Change-Id: I3a6374ce5421575cdde893c62aa97c750a07acd8
Diffstat (limited to 'overcloud-without-mergepy.yaml')
-rw-r--r--overcloud-without-mergepy.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/overcloud-without-mergepy.yaml b/overcloud-without-mergepy.yaml
index cb4f25c3..bba63f5e 100644
--- a/overcloud-without-mergepy.yaml
+++ b/overcloud-without-mergepy.yaml
@@ -59,6 +59,8 @@ parameters:
default: default
description: Name of an existing EC2 KeyPair to enable SSH access to the instances
type: string
+ constraints:
+ - custom_constraint: nova.keypair
NeutronBridgeMappings:
description: >
The OVS logical->physical bridge mappings to use. See the Neutron
@@ -185,10 +187,14 @@ parameters:
controllerImage:
type: string
default: overcloud-control
+ constraints:
+ - custom_constraint: glance.image
OvercloudControlFlavor:
default: baremetal
description: Flavor for control nodes to request when deploying.
type: string
+ constraints:
+ - custom_constraint: nova.flavor
ControlVirtualInterface:
default: 'br-ex'
description: Interface where virtual ip will be assigned.
@@ -393,10 +399,14 @@ parameters:
NovaImage:
type: string
default: overcloud-compute
+ constraints:
+ - custom_constraint: glance.image
OvercloudComputeFlavor:
description: Use this flavor
type: string
default: baremetal
+ constraints:
+ - custom_constraint: nova.flavor
resources: