From 37a06f017ba6ef38159ee65ac25bdd890ccbd102 Mon Sep 17 00:00:00 2001 From: Telles Nobrega Date: Tue, 18 Nov 2014 07:59:10 -0300 Subject: [PATCH] Add data-processing service for Sahara When registering endpoint with data_processing keystone transforms it into data-processing. This problem causes sahara to not find the endpoint afterwards We need to have two endpoints for correct working tempest and horizon with devstack. After resolving bug in tempest and horizon need to remove old data_processing endpoint Change-Id: I97827d23ffe8a1218abd61e76804b918b1b7cbe0 Partial-bug: #1356053 --- lib/sahara | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/lib/sahara b/lib/sahara index a84a06f1ce..9b2e9c406d 100644 --- a/lib/sahara +++ b/lib/sahara @@ -65,9 +65,25 @@ function create_sahara_accounts { if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then - local sahara_service=$(get_or_create_service "sahara" \ - "data_processing" "Sahara Data Processing") - get_or_create_endpoint $sahara_service \ + # TODO: remove "data_processing" service when #1356053 will be fixed + local sahara_service_old=$(openstack service create \ + "data_processing" \ + --name "sahara" \ + --description "Sahara Data Processing" \ + -f value -c id + ) + local sahara_service_new=$(openstack service create \ + "data-processing" \ + --name "sahara" \ + --description "Sahara Data Processing" \ + -f value -c id + ) + get_or_create_endpoint $sahara_service_old \ + "$REGION_NAME" \ + "$SAHARA_SERVICE_PROTOCOL://$SAHARA_SERVICE_HOST:$SAHARA_SERVICE_PORT/v1.1/\$(tenant_id)s" \ + "$SAHARA_SERVICE_PROTOCOL://$SAHARA_SERVICE_HOST:$SAHARA_SERVICE_PORT/v1.1/\$(tenant_id)s" \ + "$SAHARA_SERVICE_PROTOCOL://$SAHARA_SERVICE_HOST:$SAHARA_SERVICE_PORT/v1.1/\$(tenant_id)s" + get_or_create_endpoint $sahara_service_new \ "$REGION_NAME" \ "$SAHARA_SERVICE_PROTOCOL://$SAHARA_SERVICE_HOST:$SAHARA_SERVICE_PORT/v1.1/\$(tenant_id)s" \ "$SAHARA_SERVICE_PROTOCOL://$SAHARA_SERVICE_HOST:$SAHARA_SERVICE_PORT/v1.1/\$(tenant_id)s" \