diff --git a/lib/ceilometer b/lib/ceilometer index 9bb31218a0..c997de77e1 100644 --- a/lib/ceilometer +++ b/lib/ceilometer @@ -73,13 +73,12 @@ function is_ceilometer_enabled { } # create_ceilometer_accounts() - Set up common required ceilometer accounts - +# # Project User Roles # ------------------------------------------------------------------ # SERVICE_TENANT_NAME ceilometer admin # SERVICE_TENANT_NAME ceilometer ResellerAdmin (if Swift is enabled) - -create_ceilometer_accounts() { +function create_ceilometer_accounts { local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }") local admin_role=$(openstack role list | awk "/ admin / { print \$2 }") diff --git a/lib/nova b/lib/nova index 122f17e547..f47dc9798c 100644 --- a/lib/nova +++ b/lib/nova @@ -330,14 +330,12 @@ function configure_nova { } # create_nova_accounts() - Set up common required nova accounts - +# # Project User Roles # ------------------------------------------------------------------ # SERVICE_TENANT_NAME nova admin # SERVICE_TENANT_NAME nova ResellerAdmin (if Swift is enabled) - -# Migrated from keystone_data.sh -create_nova_accounts() { +function create_nova_accounts { local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }") local admin_role=$(openstack role list | awk "/ admin / { print \$2 }")