forked from SUSE-Cloud/openstack-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeystone_data.sh
More file actions
executable file
·498 lines (412 loc) · 19.1 KB
/
keystone_data.sh
File metadata and controls
executable file
·498 lines (412 loc) · 19.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
#!/bin/bash
. /etc/openstackquickstartrc
. /usr/lib/openstack-quickstart/functions.sh
#################################################
# functions from devstack lib/keystone
#################################################
# create_service_user <name> [role]
#
# The role defaults to the service role. It is allowed to be provided as optional as historically
# a lot of projects have configured themselves with the admin or other role here if they are
# using this user for other purposes beyond simply auth_token middleware.
function create_service_user {
local role=${2:-service}
local user
user=$(get_or_create_user "$1" "$SERVICE_PASSWORD" default)
get_or_add_user_project_role "$role" "$user" "$SERVICE_PROJECT_NAME"
}
#################################################
# functions from devstack lib/tempest
#################################################
# create_keystone_accounts() - Sets up common required keystone accounts
# Tenant User Roles
# ------------------------------------------------------------------
# admin admin admin
# service -- --
# -- -- service
# -- -- ResellerAdmin
# -- -- Member
# demo admin admin
# demo demo Member, anotherrole
# alt_demo admin admin
# alt_demo alt_demo Member, anotherrole
# invisible_to_admin demo Member
# Group Users Roles Tenant
# ------------------------------------------------------------------
# admins admin admin admin
# nonadmins demo, alt_demo Member, anotherrole demo, alt_demo
# Migrated from keystone_data.sh
function create_keystone_accounts {
# The keystone bootstrapping process (performed via keystone-manage bootstrap)
# creates an admin user, admin role and admin project. As a sanity check
# we exercise the CLI to retrieve the IDs for these values.
local admin_tenant
admin_tenant=$(openstack project show "admin" -f value -c id)
local admin_user
admin_user=$(openstack user show "admin" -f value -c id)
local admin_role
admin_role=$(openstack role show "admin" -f value -c id)
get_or_add_user_domain_role $admin_role $admin_user default
# Create service project/role
get_or_create_project "$SERVICE_PROJECT_NAME" default
# Service role, so service users do not have to be admins
get_or_create_role service
# The ResellerAdmin role is used by Nova and Ceilometer so we need to keep it.
# The admin role in swift allows a user to act as an admin for their tenant,
# but ResellerAdmin is needed for a user to act as any tenant. The name of this
# role is also configurable in swift-proxy.conf
get_or_create_role ResellerAdmin
# The Member role is used by Horizon and Swift so we need to keep it:
local member_role
member_role=$(get_or_create_role "Member")
# another_role demonstrates that an arbitrary role may be created and used
# TODO(sleepsonthefloor): show how this can be used for rbac in the future!
local another_role
another_role=$(get_or_create_role "anotherrole")
# invisible tenant - admin can't see this one
local invis_tenant
invis_tenant=$(get_or_create_project "invisible_to_admin" default)
# demo
local demo_tenant
demo_tenant=$(get_or_create_project "demo" default)
local demo_user
demo_user=$(get_or_create_user "demo" \
"$ADMIN_PASSWORD" "default" "demo@example.com")
get_or_add_user_project_role $member_role $demo_user $demo_tenant
get_or_add_user_project_role $admin_role $admin_user $demo_tenant
get_or_add_user_project_role $another_role $demo_user $demo_tenant
get_or_add_user_project_role $member_role $demo_user $invis_tenant
# alt_demo
local alt_demo_tenant
alt_demo_tenant=$(get_or_create_project "alt_demo" default)
local alt_demo_user
alt_demo_user=$(get_or_create_user "alt_demo" \
"$ADMIN_PASSWORD" "default" "alt_demo@example.com")
get_or_add_user_project_role $member_role $alt_demo_user $alt_demo_tenant
get_or_add_user_project_role $admin_role $admin_user $alt_demo_tenant
get_or_add_user_project_role $another_role $alt_demo_user $alt_demo_tenant
# groups
local admin_group
admin_group=$(get_or_create_group "admins" \
"default" "openstack admin group")
local non_admin_group
non_admin_group=$(get_or_create_group "nonadmins" \
"default" "non-admin group")
get_or_add_group_project_role $member_role $non_admin_group $demo_tenant
get_or_add_group_project_role $another_role $non_admin_group $demo_tenant
get_or_add_group_project_role $member_role $non_admin_group $alt_demo_tenant
get_or_add_group_project_role $another_role $non_admin_group $alt_demo_tenant
get_or_add_group_project_role $admin_role $admin_group $admin_tenant
}
#################################################
# script starts here
#################################################
set -e
ADMIN_PASSWORD=${ADMIN_PASSWORD:-secrete}
SERVICE_PASSWORD=${SERVICE_PASSWORD:-$ADMIN_PASSWORD}
SERVICE_ENDPOINT=$SERVICE_ENDPOINT
SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME:-service}
SERVICE_PROJECT_NAME=${SERVICE_TENANT_NAME:-service}
# setup fernet tokens
keystone-manage fernet_setup \
--keystone-user keystone \
--keystone-group keystone
# bootstrap keystone (also creates endpoint and service in catalog)
keystone-manage bootstrap \
--bootstrap-username admin \
--bootstrap-password "$ADMIN_PASSWORD" \
--bootstrap-project-name admin \
--bootstrap-role-name admin \
--bootstrap-service-name keystone \
--bootstrap-region-id "RegionOne" \
--bootstrap-admin-url "http://$SERVICE_HOST:\$(admin_port)s/v3" \
--bootstrap-public-url "http://$SERVICE_HOST:\$(public_port)s/v3" \
--bootstrap-internal-url "http://$SERVICE_HOST:\$(public_port)s/v3"
# Set up password auth credentials now that Keystone is bootstrapped
export OS_IDENTITY_API_VERSION=3
export OS_AUTH_URL=$SERVICE_ENDPOINT
export OS_USERNAME=admin
export OS_USER_DOMAIN_ID=default
export OS_PASSWORD=$ADMIN_PASSWORD
export OS_PROJECT_NAME=admin
export OS_PROJECT_DOMAIN_ID=default
export OS_REGION_NAME=RegionOne
create_keystone_accounts
# Nova
if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
create_service_user "nova" "admin"
get_or_create_service "nova_legacy" "compute_legacy" "Nova Compute Service (Legacy 2.0)"
get_or_create_endpoint \
"compute_legacy" \
"RegionOne" \
"http://$SERVICE_HOST:8774/v2/\$(project_id)s" \
"http://$SERVICE_HOST:8774/v2/\$(project_id)s" \
"http://$SERVICE_HOST:8774/v2/\$(project_id)s"
get_or_create_service "nova" "compute" "Nova Compute Service"
get_or_create_endpoint \
"compute" \
"RegionOne" \
"http://$SERVICE_HOST:8774/v2.1/\$(project_id)s" \
"http://$SERVICE_HOST:8774/v2.1/\$(project_id)s" \
"http://$SERVICE_HOST:8774/v2.1/\$(project_id)s"
# Nova needs ResellerAdmin role to download images when accessing
# swift through the s3 api.
get_or_add_user_project_role ResellerAdmin nova $SERVICE_PROJECT_NAME
# Nova placement
create_service_user "placement" "admin"
get_or_create_service "placement" "placement" "Placement Service"
get_or_create_endpoint \
"placement" \
"RegionOne" \
"http://$SERVICE_HOST:8780/" \
"http://$SERVICE_HOST:8780/" \
"http://$SERVICE_HOST:8780/"
fi
# Heat
if [[ "$ENABLED_SERVICES" =~ "heat" ]]; then
HEAT_API_CFN_PORT=${HEAT_API_CFN_PORT:-8000}
HEAT_API_PORT=${HEAT_API_PORT:-8004}
create_service_user "heat" "admin"
# heat_stack_user role is for users created by Heat
get_or_create_role "heat_stack_user"
get_or_create_service "heat" "orchestration" "Heat Orchestration Service"
get_or_create_endpoint \
"orchestration" \
"RegionOne" \
"http://$SERVICE_HOST:$HEAT_API_PORT/v1/\$(project_id)s" \
"http://$SERVICE_HOST:$HEAT_API_PORT/v1/\$(project_id)s" \
"http://$SERVICE_HOST:$HEAT_API_PORT/v1/\$(project_id)s"
get_or_create_service "heat-cfn" "cloudformation" "Heat CloudFormation Service"
get_or_create_endpoint \
"cloudformation" \
"RegionOne" \
"http://$SERVICE_HOST:$HEAT_API_CFN_PORT/v1" \
"http://$SERVICE_HOST:$HEAT_API_CFN_PORT/v1" \
"http://$SERVICE_HOST:$HEAT_API_CFN_PORT/v1"
fi
# Glance
if [[ "$ENABLED_SERVICES" =~ "g-api" ]]; then
create_service_user "glance"
# required for swift access
glance_swift_user=$(get_or_create_user "glance-swift" \
"$SERVICE_PASSWORD" "default" "glance-swift@example.com")
get_or_add_user_project_role "ResellerAdmin" $glance_swift_user $SERVICE_PROJECT_NAME
get_or_create_service "glance" "image" "Glance Image Service"
get_or_create_endpoint \
"image" \
"RegionOne" \
"http://$SERVICE_HOST:9292" \
"http://$SERVICE_HOST:9292" \
"http://$SERVICE_HOST:9292"
if [[ "$ENABLED_SERVICES" =~ "g-glare" ]]; then
create_service_user "glare"
get_or_create_service "glare" "artifact" "Glance Artifact Service"
get_or_create_endpoint \
"artifact" \
"RegionOne" \
"http://$SERVICE_HOST:9494" \
"http://$SERVICE_HOST:9494" \
"http://$SERVICE_HOST:9494"
fi
fi
# Swift
if [[ "$ENABLED_SERVICES" =~ "swift" ]]; then
# NOTE(jroll): Swift doesn't need the admin role here, however Ironic uses
# temp urls, which break when uploaded by a non-admin role
create_service_user "swift" "admin"
get_or_create_service "swift" "object-store" "Swift Service"
get_or_create_endpoint \
"object-store" \
"RegionOne" \
"http://$SERVICE_HOST:8080/v1/AUTH_\$(project_id)s" \
"http://$SERVICE_HOST:8080/v1/AUTH_\$(project_id)s" \
"http://$SERVICE_HOST:8080/v1/AUTH_\$(project_id)s"
fi
if [[ "$ENABLED_SERVICES" =~ "q-svc" ]]; then
create_service_user "neutron" "admin"
get_or_create_service "neutron" "network" "Neutron Service"
get_or_create_endpoint \
"network" \
"RegionOne" \
"http://$SERVICE_HOST:9696/" \
"http://$SERVICE_HOST:9696/" \
"http://$SERVICE_HOST:9696/"
fi
# EC2
if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then
create_service_user "ec2api" "admin"
get_or_create_service "ec2" "ec2" "EC2 Compatibility Layer"
get_or_create_endpoint \
"ec2" \
"RegionOne" \
"http://$SERVICE_HOST:8773/" \
"http://$SERVICE_HOST:8773/" \
"http://$SERVICE_HOST:8773/"
fi
# S3
if [[ "$ENABLED_SERVICES" =~ "n-obj" || "$ENABLED_SERVICES" =~ "swift" ]]; then
get_or_create_service "s3" "s3" "S3"
get_or_create_endpoint \
"s3" \
"RegionOne" \
"http://$SERVICE_HOST:3334/" \
"http://$SERVICE_HOST:3334/" \
"http://$SERVICE_HOST:3334/"
fi
if [[ "$ENABLED_SERVICES" =~ "c-api" ]]; then
create_service_user "cinder"
get_or_create_service "cinder" "volume" "Cinder Volume Service"
get_or_create_endpoint \
"volume" \
"RegionOne" \
"http://$SERVICE_HOST:8776/v1/\$(project_id)s" \
"http://$SERVICE_HOST:8776/v1/\$(project_id)s" \
"http://$SERVICE_HOST:8776/v1/\$(project_id)s"
get_or_create_service "cinderv2" "volumev2" "Cinder Volume Service V2"
get_or_create_endpoint \
"volumev2" \
"RegionOne" \
"http://$SERVICE_HOST:8776/v2/\$(project_id)s" \
"http://$SERVICE_HOST:8776/v2/\$(project_id)s" \
"http://$SERVICE_HOST:8776/v2/\$(project_id)s"
get_or_create_service "cinderv3" "volumev3" "Cinder Volume Service V3"
get_or_create_endpoint \
"volumev3" \
"RegionOne" \
"http://$SERVICE_HOST:8776/v3/\$(project_id)s" \
"http://$SERVICE_HOST:8776/v3/\$(project_id)s" \
"http://$SERVICE_HOST:8776/v3/\$(project_id)s"
fi
# Ceilometer
if [[ "$ENABLED_SERVICES" =~ "ceilometer-api" ]]; then
CEILOMETER_SERVICE_PROTOCOL=http
CEILOMETER_SERVICE_HOST=$SERVICE_HOST
CEILOMETER_SERVICE_PORT=${CEILOMETER_SERVICE_PORT:-8777}
create_service_user "ceilometer" "admin"
get_or_create_service "ceilometer" "metering" "OpenStack Telemetry Service"
get_or_create_endpoint \
"metering" \
"RegionOne" \
"$CEILOMETER_SERVICE_PROTOCOL://$CEILOMETER_SERVICE_HOST:$CEILOMETER_SERVICE_PORT/" \
"$CEILOMETER_SERVICE_PROTOCOL://$CEILOMETER_SERVICE_HOST:$CEILOMETER_SERVICE_PORT/" \
"$CEILOMETER_SERVICE_PROTOCOL://$CEILOMETER_SERVICE_HOST:$CEILOMETER_SERVICE_PORT/"
fi
# Manila
if [[ "$ENABLED_SERVICES" =~ "m-api" ]]; then
MANILA_SERVICE_PROTOCOL=http
MANILA_SERVICE_HOST=$SERVICE_HOST
MANILA_SERVICE_PORT=${MANILA_SERVICE_PORT:-8786}
create_service_user "manila"
get_or_create_service "manila" "share" "Manila Shared Filesystem Service"
get_or_create_endpoint \
"share" \
"RegionOne" \
"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT/v1/\$(project_id)s" \
"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT/v1/\$(project_id)s" \
"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT/v1/\$(project_id)s"
get_or_create_service "manilav2" "sharev2" "Manila Shared Filesystem Service V2"
get_or_create_endpoint \
"sharev2" \
"RegionOne" \
"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT/v2/\$(project_id)s" \
"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT/v2/\$(project_id)s" \
"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT/v2/\$(project_id)s"
fi
# Magnum
if [[ "$ENABLED_SERVICES" =~ "magnum-api" ]]; then
MAGNUM_SERVICE_PROTOCOL=http
MAGNUM_SERVICE_HOST=$SERVICE_HOST
MAGNUM_SERVICE_PORT=${MAGNUM_SERVICE_PORT:-9511}
create_service_user "magnum" "admin"
get_or_create_service "magnum" "container" "Magnum Container Service"
get_or_create_endpoint \
"container" \
"RegionOne" \
"$MAGNUM_SERVICE_PROTOCOL://$MAGNUM_SERVICE_HOST:$MAGNUM_SERVICE_PORT/v1" \
"$MAGNUM_SERVICE_PROTOCOL://$MAGNUM_SERVICE_HOST:$MAGNUM_SERVICE_PORT/v1" \
"$MAGNUM_SERVICE_PROTOCOL://$MAGNUM_SERVICE_HOST:$MAGNUM_SERVICE_PORT/v1"
fi
# Barbican
if [[ "$ENABLED_SERVICES" =~ "barbican-api" ]]; then
BARBICAN_SERVICE_PROTOCOL=http
BARBICAN_SERVICE_HOST=$SERVICE_HOST
BARBICAN_SERVICE_PORT=${BARBICAN_SERVICE_PORT:-9311}
create_service_user "barbican" "admin"
get_or_create_service "barbican" "key-manager" "Barbican Key Manager Service"
get_or_create_endpoint \
"key-manager" \
"RegionOne" \
"$BARBICAN_SERVICE_PROTOCOL://$BARBICAN_SERVICE_HOST:$BARBICAN_SERVICE_PORT" \
"$BARBICAN_SERVICE_PROTOCOL://$BARBICAN_SERVICE_HOST:$BARBICAN_SERVICE_PORT" \
"$BARBICAN_SERVICE_PROTOCOL://$BARBICAN_SERVICE_HOST:$BARBICAN_SERVICE_PORT"
fi
# Sahara
if [[ "$ENABLED_SERVICES" =~ "sahara-api" ]]; then
SAHARA_SERVICE_PROTOCOL=http
SAHARA_SERVICE_HOST=$SERVICE_HOST
SAHARA_SERVICE_PORT=8386
create_service_user "sahara" "admin"
get_or_create_service "sahara" "data-processing" "Sahara Data Processing"
get_or_create_endpoint "data-processing" \
"RegionOne" \
"$SAHARA_SERVICE_PROTOCOL://$SAHARA_SERVICE_HOST:$SAHARA_SERVICE_PORT/v1.1/\$(project_id)s" \
"$SAHARA_SERVICE_PROTOCOL://$SAHARA_SERVICE_HOST:$SAHARA_SERVICE_PORT/v1.1/\$(project_id)s" \
"$SAHARA_SERVICE_PROTOCOL://$SAHARA_SERVICE_HOST:$SAHARA_SERVICE_PORT/v1.1/\$(project_id)s"
fi
# designate
if [[ "$ENABLED_SERVICES" =~ "designate-api" ]]; then
DESIGNATE_SERVICE_PROTOCOL=http
DESIGNATE_SERVICE_HOST=$SERVICE_HOST
DESIGNATE_SERVICE_PORT=9001
create_service_user "designate" "admin"
get_or_create_service "designate" "dns" "Designate DNS Service"
get_or_create_endpoint "dns" \
"RegionOne" \
"$DESIGNATE_SERVICE_PROTOCOL://$DESIGNATE_SERVICE_HOST:$DESIGNATE_SERVICE_PORT/" \
"$DESIGNATE_SERVICE_PROTOCOL://$DESIGNATE_SERVICE_HOST:$DESIGNATE_SERVICE_PORT/" \
"$DESIGNATE_SERVICE_PROTOCOL://$DESIGNATE_SERVICE_HOST:$DESIGNATE_SERVICE_PORT/"
fi
# gnocchi
if [[ "$ENABLED_SERVICES" =~ "gnocchi-api" ]]; then
GNOCCHI_SERVICE_PROTOCOL=http
GNOCCHI_SERVICE_PORT=8041
GNOCCHI_SERVICE_HOST=$SERVICE_HOST
create_service_user "gnocchi" "admin"
get_or_create_service "gnocchi" "metric" "OpenStack Metric Service"
get_or_create_endpoint "metric" \
"RegionOne" \
"$GNOCCHI_SERVICE_PROTOCOL://$GNOCCHI_SERVICE_HOST:$GNOCCHI_SERVICE_PORT" \
"$GNOCCHI_SERVICE_PROTOCOL://$GNOCCHI_SERVICE_HOST:$GNOCCHI_SERVICE_PORT" \
"$GNOCCHI_SERVICE_PROTOCOL://$GNOCCHI_SERVICE_HOST:$GNOCCHI_SERVICE_PORT"
fi
# monasca
if [[ "$ENABLED_SERVICES" =~ "monasca-api" ]]; then
MONASCA_API_SERVICE_PROTOCOL=http
MONASCA_API_SERVICE_PORT=8070
MONASCA_API_SERVICE_HOST=$SERVICE_HOST
MONASCA_LOG_API_SERVICE_PROTOCOL=http
MONASCA_LOG_API_SERVICE_PORT=5607
MONASCA_LOG_API_SERVICE_HOST=$SERVICE_HOST
MONASCA_KIBANA_SERVICE_PROTOCOL=http
MONASCA_KIBANA_SERVICE_PORT=5601
MONASCA_KIBANA_SERVICE_HOST=$SERVICE_HOST
create_service_user "monasca" "admin"
get_or_create_service "monasca" "monitoring" "OpenStack Monasca monitoring service"
get_or_create_endpoint "monitoring" \
"RegionOne" \
"$MONASCA_API_SERVICE_PROTOCOL://$MONASCA_API_SERVICE_HOST:${MONASCA_API_SERVICE_PORT}/v2.0" \
"$MONASCA_API_SERVICE_PROTOCOL://$MONASCA_API_SERVICE_HOST:${MONASCA_API_SERVICE_PORT}/v2.0" \
"$MONASCA_API_SERVICE_PROTOCOL://$MONASCA_API_SERVICE_HOST:${MONASCA_API_SERVICE_PORT}/v2.0"
get_or_create_service "monasca-logs" "logs" "OpenStack Monasca logging service"
get_or_create_endpoint "logs" \
"RegionOne" \
"$MONASCA_LOG_API_SERVICE_PROTOCOL://$MONASCA_LOG_API_SERVICE_HOST:$MONASCA_LOG_API_SERVICE_PORT" \
"$MONASCA_LOG_API_SERVICE_PROTOCOL://$MONASCA_LOG_API_SERVICE_HOST:$MONASCA_LOG_API_SERVICE_PORT" \
"$MONASCA_LOG_API_SERVICE_PROTOCOL://$MONASCA_LOG_API_SERVICE_HOST:$MONASCA_LOG_API_SERVICE_PORT"
get_or_create_service "monasca-logs-search" "logs-search" "OpenStack Monasca log searching service"
get_or_create_endpoint "logs" \
"RegionOne" \
"$MONASCA_KIBANA_SERVICE_PROTOCOL://$MONASCA_KIBANA_SERVICE_HOST:$MONASCA_KIBANA_SERVICE_PORT" \
"$MONASCA_KIBANA_SERVICE_PROTOCOL://$MONASCA_KIBANA_SERVICE_HOST:$MONASCA_KIBANA_SERVICE_PORT" \
"$MONASCA_KIBANA_SERVICE_PROTOCOL://$MONASCA_KIBANA_SERVICE_HOST:$MONASCA_KIBANA_SERVICE_PORT"
fi