Skip to content

Commit 75e0f99

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Use ec2 and s3 urls from keystone catalog"
2 parents 0f173a4 + 40e652a commit 75e0f99

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

lib/tempest

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,15 @@ function configure_tempest {
271271
fi
272272
fi
273273

274+
EC2_URL=$(openstack endpoint show -f value -c publicurl ec2 || true)
275+
if [[ -z $EC2_URL ]]; then
276+
EC2_URL="$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/"
277+
fi
278+
S3_URL=$(openstack endpoint show -f value -c publicurl s3 || true)
279+
if [[ -z $S3_URL ]]; then
280+
S3_URL="http://$SERVICE_HOST:${S3_SERVICE_PORT:-3333}"
281+
fi
282+
274283
iniset $TEMPEST_CONFIG DEFAULT use_syslog $SYSLOG
275284

276285
# Oslo
@@ -375,8 +384,8 @@ function configure_tempest {
375384
iniset $TEMPEST_CONFIG network-feature-enabled api_extensions $network_api_extensions
376385

377386
# boto
378-
iniset $TEMPEST_CONFIG boto ec2_url "$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/"
379-
iniset $TEMPEST_CONFIG boto s3_url "http://$SERVICE_HOST:${S3_SERVICE_PORT:-3333}"
387+
iniset $TEMPEST_CONFIG boto ec2_url "$EC2_URL"
388+
iniset $TEMPEST_CONFIG boto s3_url "$S3_URL"
380389
iniset $TEMPEST_CONFIG boto s3_materials_path "$BOTO_MATERIALS_PATH"
381390
iniset $TEMPEST_CONFIG boto ari_manifest cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-initrd.manifest.xml
382391
iniset $TEMPEST_CONFIG boto ami_manifest cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-blank.img.manifest.xml

0 commit comments

Comments
 (0)