Document for available HOT custom constraints
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Mark Vanderwiel |
Bug Description
The HOT custom constraints on parameters are very useful for verifying user inputs while creating a stack. For instance, the following parameter definition will only allow valid value of instance flavor known to Nova:
flavor:
type: string
label: Instance Flavor
default: m1.medium
description: The flavor to use
constraints:
- custom_constraint: nova.flavor
However, it is lacking of document to describe the currently available custom constraints implemented in various Heat resource plugins. I checked Heat Engine source code and found the following custom constraints:
cinder.volume
cinder.vtype
cinder.snapshot
glance.image
keystone.domain
neutron.network
neutron.router
neutron.port
neutron.subnet
nova.flavor
nova.keypair
nova.server
sahara.image
trove.flavor
It would be good to have some document collecting information about all available custom constraints for HOT parameters.
description: | updated |
description: | updated |
Changed in heat: | |
assignee: | nobody → Mark Vanderwiel (vanderwl) |
Changed in heat: | |
milestone: | none → liberty-rc1 |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | liberty-rc1 → 5.0.0 |
Joanna, you do not have to check the source code of the engine. Since all custom constraints are implemented as stevedore plugins, this section of setup.cfg [1] gives you the full list of constraints available in the main code tree. Other resource / client plugins (like those in contrib) might add additional constraints.
[1] https:/ /github. com/openstack/ heat/blob/ master/ setup.cfg# L60-L74