diff options
author | ricolin <rico.lin.guanyu@gmail.com> | 2018-07-06 13:27:33 +0800 |
---|---|---|
committer | ricolin <rico.lin.guanyu@gmail.com> | 2019-03-13 22:15:45 +0800 |
commit | 6990331639a96a7073f66a63c99f49d8f6c576b7 (patch) | |
tree | 497269d3128cbdb4152e1fed37a2c1e5fcee6f22 /heat_integrationtests/prepare_test_env.sh | |
parent | 6c35f283655fea32e65d76fece60eb8fda0b5c5f (diff) | |
download | heat-6990331639a96a7073f66a63c99f49d8f6c576b7.tar.gz |
Support remote stack with another OpenStack provider
Allow OS::Heat::Stack to access remote stack from another OpenStack
provider. Also enable functional tests for multi-cloud.
Implement multi-cloud support as an extension to the existing multi-region
support. Allow operate a remote stack (from another OpenStack cloud) as a
resource in stack from local OpenStack cloud.
I propose we add multi cloud support into ``OS::Heat::Stack`` and change the
property schema for ``context``. Within context, we should adding
following properties:
* credential_secret_id: ID of Barbican Secret. Which stores authN
information for remote cloud.
Service will use auth information from Barbican Secret to access
Orchestration service in another OpenStack.
Must make sure you're able toget that secret from Barbican service when
provide `credential_secret_id` property.
Story: #2002126
Task: #26907
Depends-On: https://review.openstack.org/579750
Change-Id: I2f3de3e7c29cf7debb1474228c8a9a81725a72ed
Diffstat (limited to 'heat_integrationtests/prepare_test_env.sh')
-rwxr-xr-x | heat_integrationtests/prepare_test_env.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/heat_integrationtests/prepare_test_env.sh b/heat_integrationtests/prepare_test_env.sh index 2615833c3..636972205 100755 --- a/heat_integrationtests/prepare_test_env.sh +++ b/heat_integrationtests/prepare_test_env.sh @@ -80,6 +80,13 @@ function _config_tempest_plugin iniset $conf_file heat_plugin heat_config_notify_script $CONF_DEST/heat-agents/heat-config/bin/heat-config-notify iniset $conf_file heat_plugin boot_config_env $CONF_DEST/heat-templates/hot/software-config/boot-config/test_image_env.yaml + # support test multi-cloud + openstack application credential create heat_multicloud --secret secret --unrestricted + app_cred_id=$(openstack application credential show heat_multicloud|grep ' id '|awk '{print $4}') + export OS_CREDENTIAL_SECRET_ID=$(openstack secret store -n heat-multi-cloud-test-cred --payload '{"auth_type": "v3applicationcredential", "auth": {"auth_url": $OS_AUTH_URL, "application_credential_id": $app_cred_id, "application_credential_secret": "secret"}, "roles": ["admin"], "project_id": $app_cred_project_id}') + iniset $conf_file heat_features_enabled multi_cloud True + iniset $conf_file heat_plugin heat_plugin credential_secret_id $OS_CREDENTIAL_SECRET_ID + # Skip SoftwareConfigIntegrationTest because it requires a custom image # Skip VolumeBackupRestoreIntegrationTest skipped until failure rate can be reduced ref bug #1382300 # Skip AutoscalingLoadBalancerTest and AutoscalingLoadBalancerv2Test as deprecated neutron-lbaas service is not enabled |