From 0ea8b72a20be9026f025eaa6d9b4277b058aa735 Mon Sep 17 00:00:00 2001 From: Andrey Pavlov Date: Fri, 6 Feb 2015 22:37:53 +0300 Subject: [PATCH] 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 --- files/default_catalog.templates | 6 +++--- lib/nova | 6 +++--- lib/tempest | 2 +- tools/create_userrc.sh | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/files/default_catalog.templates b/files/default_catalog.templates index a18d38f606..4aab4160c1 100644 --- a/files/default_catalog.templates +++ b/files/default_catalog.templates @@ -30,9 +30,9 @@ catalog.RegionOne.volumev2.internalURL = http://%SERVICE_HOST%:8776/v2/$(tenant_ catalog.RegionOne.volumev2.name = Volume Service V2 -catalog.RegionOne.ec2.publicURL = http://%SERVICE_HOST%:8773/services/Cloud -catalog.RegionOne.ec2.adminURL = http://%SERVICE_HOST%:8773/services/Admin -catalog.RegionOne.ec2.internalURL = http://%SERVICE_HOST%:8773/services/Cloud +catalog.RegionOne.ec2.publicURL = http://%SERVICE_HOST%:8773/ +catalog.RegionOne.ec2.adminURL = http://%SERVICE_HOST%:8773/ +catalog.RegionOne.ec2.internalURL = http://%SERVICE_HOST%:8773/ catalog.RegionOne.ec2.name = EC2 Service diff --git a/lib/nova b/lib/nova index 0f4729fb63..f1cf74ff72 100644 --- a/lib/nova +++ b/lib/nova @@ -397,9 +397,9 @@ function create_nova_accounts { "ec2" "EC2 Compatibility Layer") get_or_create_endpoint $ec2_service \ "$REGION_NAME" \ - "$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/services/Cloud" \ - "$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/services/Admin" \ - "$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/services/Cloud" + "$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/" \ + "$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/" \ + "$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/" fi fi diff --git a/lib/tempest b/lib/tempest index 86f30b4a40..9058fa624e 100644 --- a/lib/tempest +++ b/lib/tempest @@ -359,7 +359,7 @@ function configure_tempest { iniset $TEMPEST_CONFIG network-feature-enabled api_extensions $network_api_extensions # boto - iniset $TEMPEST_CONFIG boto ec2_url "$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/services/Cloud" + iniset $TEMPEST_CONFIG boto ec2_url "$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/" iniset $TEMPEST_CONFIG boto s3_url "http://$SERVICE_HOST:${S3_SERVICE_PORT:-3333}" iniset $TEMPEST_CONFIG boto s3_materials_path "$BOTO_MATERIALS_PATH" iniset $TEMPEST_CONFIG boto ari_manifest cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-initrd.manifest.xml diff --git a/tools/create_userrc.sh b/tools/create_userrc.sh index b43fd883a3..f067ed1f4b 100755 --- a/tools/create_userrc.sh +++ b/tools/create_userrc.sh @@ -131,7 +131,7 @@ export -n SERVICE_TOKEN SERVICE_ENDPOINT OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT EC2_URL=$(openstack endpoint show -f value -c publicurl ec2 || true) if [[ -z $EC2_URL ]]; then - EC2_URL=http://localhost:8773/services/Cloud + EC2_URL=http://localhost:8773/ fi S3_URL=$(openstack endpoint show -f value -c publicurl s3 || true)