Este conteúdo não está disponível no idioma selecionado.
12.6. Configure Telemetry Service Authentication
Configure the Telemetry API service (
openstack-ceilometer-api) to use the Identity service for authentication. All steps in this procedure must be performed on the server hosting the Telemetry API service, while logged in as the root user.
Procedure 12.4. Configuring the Telemetry Service to Authenticate Through the Identity Service
- Set the Identity service host that the Telemetry API service must use:
openstack-config --set /etc/ceilometer/ceilometer.conf \ keystone_authtoken auth_host IP
# openstack-config --set /etc/ceilometer/ceilometer.conf \ keystone_authtoken auth_host IPCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace IP with the IP address or host name of the server hosting the Identity service. - Set the authentication port that the Telemetry API service must use:
openstack-config --set /etc/ceilometer/ceilometer.conf \ keystone_authtoken auth_port PORT
# openstack-config --set /etc/ceilometer/ceilometer.conf \ keystone_authtoken auth_port PORTCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace PORT with the authentication port used by the Identity service, usually35357. - Set the Telemetry API service to use the
httpprotocol for authenticating:openstack-config --set /etc/ceilometer/ceilometer.conf \ keystone_authtoken auth_protocol http
# openstack-config --set /etc/ceilometer/ceilometer.conf \ keystone_authtoken auth_protocol httpCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Set the Telemetry API service to authenticate as the correct tenant:
openstack-config --set /etc/ceilometer/ceilometer.conf \ keystone_authtoken admin_tenant_name services
# openstack-config --set /etc/ceilometer/ceilometer.conf \ keystone_authtoken admin_tenant_name servicesCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace services with the name of the tenant created for the use of the Telemetry service. Examples in this guide useservices. - Set the Telemetry service to authenticate using the
ceilometeradministrative user account:openstack-config --set /etc/ceilometer/ceilometer.conf \ keystone_authtoken admin_user ceilometer
# openstack-config --set /etc/ceilometer/ceilometer.conf \ keystone_authtoken admin_user ceilometerCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Set the Telemetry service to use the correct
ceilometeradministrative user account password:openstack-config --set /etc/ceilometer/ceilometer.conf \ keystone_authtoken admin_password PASSWORD
# openstack-config --set /etc/ceilometer/ceilometer.conf \ keystone_authtoken admin_password PASSWORDCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace PASSWORD with the password set when theceilometeruser was created. - The Telemetry secret is a string used to help secure communication between all components of the Telemetry service across multiple hosts (for example, between the Collector agent and a Compute node agent). Set the Telemetry secret:
openstack-config --set /etc/ceilometer/ceilometer.conf \ publisher_rpc metering_secret SECRET
# openstack-config --set /etc/ceilometer/ceilometer.conf \ publisher_rpc metering_secret SECRETCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace SECRET with the string that all Telemetry service components should use to sign and verify messages that are sent or received over AMQP. - Configure the service endpoints to be used by the Central agent, Compute agents, and Evaluator on the host where each component is deployed:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace the following values:- Replace IP with the IP address or host name of the server hosting the Identity service.
- Replace PASSWORD with the password set when the
ceilometeruser was created.