Skip to content

Commit 0ea8b72

Browse files
committed
Make EC2 compatible with current AWS CLI.
Nova listens for EC2 calls now at the URL without path - http://some.server.com:8773/ I was made in review - https://review.openstack.org/#/c/152496/ So I suggest to change EC2 urls in keystone catalog. Change-Id: Ia2975ce0f6a30eed6016733e12c98b5f97648307 Closes-Bug: 1417555
1 parent e79678a commit 0ea8b72

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

files/default_catalog.templates

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ catalog.RegionOne.volumev2.internalURL = http://%SERVICE_HOST%:8776/v2/$(tenant_
3030
catalog.RegionOne.volumev2.name = Volume Service V2
3131

3232

33-
catalog.RegionOne.ec2.publicURL = http://%SERVICE_HOST%:8773/services/Cloud
34-
catalog.RegionOne.ec2.adminURL = http://%SERVICE_HOST%:8773/services/Admin
35-
catalog.RegionOne.ec2.internalURL = http://%SERVICE_HOST%:8773/services/Cloud
33+
catalog.RegionOne.ec2.publicURL = http://%SERVICE_HOST%:8773/
34+
catalog.RegionOne.ec2.adminURL = http://%SERVICE_HOST%:8773/
35+
catalog.RegionOne.ec2.internalURL = http://%SERVICE_HOST%:8773/
3636
catalog.RegionOne.ec2.name = EC2 Service
3737

3838

lib/nova

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,9 @@ function create_nova_accounts {
397397
"ec2" "EC2 Compatibility Layer")
398398
get_or_create_endpoint $ec2_service \
399399
"$REGION_NAME" \
400-
"$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/services/Cloud" \
401-
"$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/services/Admin" \
402-
"$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/services/Cloud"
400+
"$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/" \
401+
"$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/" \
402+
"$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/"
403403
fi
404404
fi
405405

lib/tempest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ function configure_tempest {
359359
iniset $TEMPEST_CONFIG network-feature-enabled api_extensions $network_api_extensions
360360

361361
# boto
362-
iniset $TEMPEST_CONFIG boto ec2_url "$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/services/Cloud"
362+
iniset $TEMPEST_CONFIG boto ec2_url "$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/"
363363
iniset $TEMPEST_CONFIG boto s3_url "http://$SERVICE_HOST:${S3_SERVICE_PORT:-3333}"
364364
iniset $TEMPEST_CONFIG boto s3_materials_path "$BOTO_MATERIALS_PATH"
365365
iniset $TEMPEST_CONFIG boto ari_manifest cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-initrd.manifest.xml

tools/create_userrc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export -n SERVICE_TOKEN SERVICE_ENDPOINT OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT
131131

132132
EC2_URL=$(openstack endpoint show -f value -c publicurl ec2 || true)
133133
if [[ -z $EC2_URL ]]; then
134-
EC2_URL=http://localhost:8773/services/Cloud
134+
EC2_URL=http://localhost:8773/
135135
fi
136136

137137
S3_URL=$(openstack endpoint show -f value -c publicurl s3 || true)

0 commit comments

Comments
 (0)