Fix external_validate for Heat resources

External validate use _show_resource to check if Stack resource
exists. Witout entity name and default client name, the validation
will just pass.

Add entity name to `OS::Heat::Stack`
Add entity and default client name to
`OS::Heat::SoftwareConfig` and `OS::Heat::SoftwareDeployment`
Story: #1764947
Task: #17359

Change-Id: Ia0864aacf2951c711e99ce2c687f47af421110be
This commit is contained in:
ricolin 2018-04-17 14:25:13 +08:00 committed by ricolin
parent c739be7645
commit 2731d3da4f
3 changed files with 10 additions and 0 deletions

View File

@ -73,6 +73,8 @@ class RemoteStack(resource.Resource):
"""
default_client_name = 'heat'
entity = 'stacks'
PROPERTIES = (
CONTEXT, TEMPLATE, TIMEOUT, PARAMETERS,
) = (

View File

@ -44,6 +44,10 @@ class SoftwareConfig(resource.Resource):
support_status = support.SupportStatus(version='2014.1')
default_client_name = 'heat'
entity = 'software_configs'
PROPERTIES = (
GROUP, CONFIG,
OPTIONS,

View File

@ -72,6 +72,10 @@ class SoftwareDeployment(signal_responder.SignalResponder):
support_status = support.SupportStatus(version='2014.1')
default_client_name = 'heat'
entity = 'software_deployments'
PROPERTIES = (
CONFIG, SERVER, INPUT_VALUES,
DEPLOY_ACTIONS, NAME, SIGNAL_TRANSPORT