12.4. Create the Telemetry Identity Records
In this section, you will:
- Create the
ceilometeruser, who has theResellerAdminrole in theservicestenant. - Create the
ceilometerservice entry and assign it an endpoint.
In order to proceed, you need to have already completed the following steps:
- Created an Administrator role named
admin(refer to Section 3.8, “Create an Administrator Account” for instructions) - Created the
servicestenant (refer to Section 3.10, “Create the Services Tenant” for instructions)
Note
The Deploying OpenStack: Learning Environments guide uses one tenant for all service users. For more information, refer to Section 3.10, “Create the Services Tenant”.
You can perform this procedure from your Identity service host or on any machine where you've copied the
keystonerc_admin file (which contains administrator credentials) and the keystone command-line utility is installed. For more information about the keystonerc_admin file, refer to Section 3.8, “Create an Administrator Account”.
Procedure 12.1. Creating Identity records for the Telemetry service
- Set up the shell to access Keystone as the admin user:
#source ~/keystonerc_admin - Create a
ceilometeruser using the following command:#keystone user-create --name=ceilometer \--pass=SERVICE_PASSWORD \--email=CEILOMETER_EMAILWhere:- SERVICE_PASSWORD is the password the Telemetry service should use when authenticating with the Identity service.
- CEILOMETER_EMAIL is the email address used by the Telemetry service.
- Create a
ResellerAdminrole:#keystone role-create --name=ResellerAdmin - Establish the relationship between the Telemetry service, the
servicestenant, andResellerAdminrole:#keystone user-role-add --user ceilometer--role ResellerAdmin--tenant services - Establish the relationship between the Telemetry service, the
servicestenant, andadminrole:#keystone user-role-add --user ceilometer--role admin--tenant services - Create the
ceilometerservice entry:#keystone service-create --name=ceilometer \--type=metering \--description="OpenStack Telemetry Service"+-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | OpenStack Telemetry Service | | id | a511aea8bc1264641f4dff1db38751br | | name | ceilometer | | type | metering | +-------------+----------------------------------+ - Create the
ceilometerendpoint entry:#keystone endpoint-create \--service ceilometer \--publicurl "IP:8777"--adminurl "IP:8777"--internalurl "IP:8777"Replace IP with the IP address or host name of the system hosting the Telemetry service.Note
By default, the endpoint is created in the default region,regionOne. If you need to specify a different region when creating an endpoint use the--regionargument to provide it. See Section 3.7.1, “Service Regions” for more information.