Cleanup create_accounts functions
lib/nova and lib/ceilometer had function calls not in the desired form. Change-Id: I6b848e51654a48fe2df6084efdb0f67fd5e180f0
This commit is contained in:
parent
f33e76bf9b
commit
67bc8e8ab9
@ -73,13 +73,12 @@ function is_ceilometer_enabled {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# create_ceilometer_accounts() - Set up common required ceilometer accounts
|
# create_ceilometer_accounts() - Set up common required ceilometer accounts
|
||||||
|
#
|
||||||
# Project User Roles
|
# Project User Roles
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
# SERVICE_TENANT_NAME ceilometer admin
|
# SERVICE_TENANT_NAME ceilometer admin
|
||||||
# SERVICE_TENANT_NAME ceilometer ResellerAdmin (if Swift is enabled)
|
# SERVICE_TENANT_NAME ceilometer ResellerAdmin (if Swift is enabled)
|
||||||
|
function create_ceilometer_accounts {
|
||||||
create_ceilometer_accounts() {
|
|
||||||
|
|
||||||
local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
|
local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
|
||||||
local admin_role=$(openstack role list | awk "/ admin / { print \$2 }")
|
local admin_role=$(openstack role list | awk "/ admin / { print \$2 }")
|
||||||
|
6
lib/nova
6
lib/nova
@ -330,14 +330,12 @@ function configure_nova {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# create_nova_accounts() - Set up common required nova accounts
|
# create_nova_accounts() - Set up common required nova accounts
|
||||||
|
#
|
||||||
# Project User Roles
|
# Project User Roles
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
# SERVICE_TENANT_NAME nova admin
|
# SERVICE_TENANT_NAME nova admin
|
||||||
# SERVICE_TENANT_NAME nova ResellerAdmin (if Swift is enabled)
|
# SERVICE_TENANT_NAME nova ResellerAdmin (if Swift is enabled)
|
||||||
|
function create_nova_accounts {
|
||||||
# Migrated from keystone_data.sh
|
|
||||||
create_nova_accounts() {
|
|
||||||
|
|
||||||
local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
|
local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
|
||||||
local admin_role=$(openstack role list | awk "/ admin / { print \$2 }")
|
local admin_role=$(openstack role list | awk "/ admin / { print \$2 }")
|
||||||
|
Loading…
Reference in New Issue
Block a user