|
...
|
...
|
@@ -65,9 +65,25 @@ function create_sahara_accounts {
|
|
65
|
65
|
|
|
66
|
66
|
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
|
|
67
|
67
|
|
|
68
|
|
- local sahara_service=$(get_or_create_service "sahara" \
|
|
69
|
|
- "data_processing" "Sahara Data Processing")
|
|
70
|
|
- get_or_create_endpoint $sahara_service \
|
|
|
68
|
+ # TODO: remove "data_processing" service when #1356053 will be fixed
|
|
|
69
|
+ local sahara_service_old=$(openstack service create \
|
|
|
70
|
+ "sahara" \
|
|
|
71
|
+ --type "data_processing" \
|
|
|
72
|
+ --description "Sahara Data Processing (for Juno release)" \
|
|
|
73
|
+ -f value -c id
|
|
|
74
|
+ )
|
|
|
75
|
+ local sahara_service_new=$(openstack service create \
|
|
|
76
|
+ "sahara" \
|
|
|
77
|
+ --type "data-processing" \
|
|
|
78
|
+ --description "Sahara Data Processing (for Kilo and future releases)" \
|
|
|
79
|
+ -f value -c id
|
|
|
80
|
+ )
|
|
|
81
|
+ get_or_create_endpoint $sahara_service_old \
|
|
|
82
|
+ "$REGION_NAME" \
|
|
|
83
|
+ "$SAHARA_SERVICE_PROTOCOL://$SAHARA_SERVICE_HOST:$SAHARA_SERVICE_PORT/v1.1/\$(tenant_id)s" \
|
|
|
84
|
+ "$SAHARA_SERVICE_PROTOCOL://$SAHARA_SERVICE_HOST:$SAHARA_SERVICE_PORT/v1.1/\$(tenant_id)s" \
|
|
|
85
|
+ "$SAHARA_SERVICE_PROTOCOL://$SAHARA_SERVICE_HOST:$SAHARA_SERVICE_PORT/v1.1/\$(tenant_id)s"
|
|
|
86
|
+ get_or_create_endpoint $sahara_service_new \
|
|
71
|
87
|
"$REGION_NAME" \
|
|
72
|
88
|
"$SAHARA_SERVICE_PROTOCOL://$SAHARA_SERVICE_HOST:$SAHARA_SERVICE_PORT/v1.1/\$(tenant_id)s" \
|
|
73
|
89
|
"$SAHARA_SERVICE_PROTOCOL://$SAHARA_SERVICE_HOST:$SAHARA_SERVICE_PORT/v1.1/\$(tenant_id)s" \
|