Upload validations to swift on undercloud install

Change-Id: Iefabf5b96847333a27c307f380fd7c52bec710e6
Implements: blueprint store-validations-in-swift
Depends-On: Ia08d5eea17450db94279c95078453831c0017a67
This commit is contained in:
Ana Krivokapic 2018-04-25 16:13:26 +02:00
parent 38befed4f8
commit 9f5e1456f7
1 changed files with 6 additions and 0 deletions

View File

@ -1919,6 +1919,11 @@ def _create_default_plan(mistral, plans, timeout=360):
fail_on_error=True)
def _upload_validations_to_swift(mistral):
LOG.info('Uploading default validations to Swift')
mistral.action_executions.create('tripleo.validations.upload')
def _prepare_ssh_environment(mistral):
mistral.executions.create('tripleo.validations.v1.copy_ssh_key')
@ -1966,6 +1971,7 @@ def _post_config_mistral(instack_env, mistral, swift):
if CONF.enable_validations:
_prepare_ssh_environment(mistral)
_upload_validations_to_swift(mistral)
def _migrate_to_convergence(heat):