Provide the necessary inputs to enable HEAT_SIGNAL
To allow signalling via a native heatclient call using stack domain credentials the following inputs are needed: - the user ID, required to successfully auth with stack domain users, since it avoids the need to have knowledge of the domain ID. - the V3 endpoint as the auth_url, since it is domain aware - a stack ID which consists of stack_name/stack_id, to avoid the need for an extra stack identifier lookup Closes-Bug: #1291097 Change-Id: I677d1afb9bc40f84d9a71f376869946022a6635f
This commit is contained in:
parent
acdc77e1c9
commit
1ca46049ff
@ -59,13 +59,13 @@ class SoftwareDeployment(signal_responder.SignalResponder):
|
||||
DEPLOY_SIGNAL_ID, DEPLOY_STACK_ID,
|
||||
DEPLOY_RESOURCE_NAME, DEPLOY_AUTH_URL,
|
||||
DEPLOY_USERNAME, DEPLOY_PASSWORD,
|
||||
DEPLOY_PROJECT_ID,
|
||||
DEPLOY_PROJECT_ID, DEPLOY_USER_ID
|
||||
) = (
|
||||
'deploy_server_id', 'deploy_action',
|
||||
'deploy_signal_id', 'deploy_stack_id',
|
||||
'deploy_resource_name', 'deploy_auth_url',
|
||||
'deploy_username', 'deploy_password',
|
||||
'deploy_project_id'
|
||||
'deploy_project_id', 'deploy_user_id'
|
||||
)
|
||||
|
||||
SIGNAL_TRANSPORTS = (
|
||||
@ -261,7 +261,7 @@ class SoftwareDeployment(signal_responder.SignalResponder):
|
||||
scl.NAME: self.DEPLOY_STACK_ID,
|
||||
scl.DESCRIPTION: _('ID of the stack this deployment belongs to'),
|
||||
scl.TYPE: 'String',
|
||||
'value': self.stack.identifier().stack_id
|
||||
'value': self.stack.identifier().stack_path()
|
||||
}, {
|
||||
scl.NAME: self.DEPLOY_RESOURCE_NAME,
|
||||
scl.DESCRIPTION: _('Name of this deployment resource in the '
|
||||
@ -282,12 +282,17 @@ class SoftwareDeployment(signal_responder.SignalResponder):
|
||||
scl.NAME: self.DEPLOY_AUTH_URL,
|
||||
scl.DESCRIPTION: _('URL for API authentication'),
|
||||
scl.TYPE: 'String',
|
||||
'value': self.context.auth_url
|
||||
'value': self.keystone().v3_endpoint
|
||||
}, {
|
||||
scl.NAME: self.DEPLOY_USERNAME,
|
||||
scl.DESCRIPTION: _('Username for API authentication'),
|
||||
scl.TYPE: 'String',
|
||||
'value': self.physical_resource_name(),
|
||||
}, {
|
||||
scl.NAME: self.DEPLOY_USER_ID,
|
||||
scl.DESCRIPTION: _('User ID for API authentication'),
|
||||
scl.TYPE: 'String',
|
||||
'value': self._get_user_id(),
|
||||
}, {
|
||||
scl.NAME: self.DEPLOY_PASSWORD,
|
||||
scl.DESCRIPTION: _('Password for API authentication'),
|
||||
|
@ -173,7 +173,8 @@ class SoftwareDeploymentTest(HeatTestCase):
|
||||
'description': 'ID of the stack this deployment belongs to',
|
||||
'name': 'deploy_stack_id',
|
||||
'type': 'String',
|
||||
'value': '42f6f66b-631a-44e7-8d01-e22fb54574a9'
|
||||
'value': ('software_deployment_test_stack'
|
||||
'/42f6f66b-631a-44e7-8d01-e22fb54574a9')
|
||||
}, {
|
||||
'description': 'Name of this deployment resource in the stack',
|
||||
'name': 'deploy_resource_name',
|
||||
|
Loading…
Reference in New Issue
Block a user