Questo contenuto non è disponibile nella lingua selezionata.
Chapter 5. Configuring Red Hat OpenStack Platform director Operator for Service Telemetry Framework
To collect metrics, events, or both, and to send them to the Service Telemetry Framework (STF) storage domain, you must configure the Red Hat OpenStack Platform (RHOSP) overcloud to enable data collection and transport.
STF can support both single and multiple clouds. The default configuration in RHOSP and STF set up for a single cloud installation.
- For a single RHOSP overcloud deployment using director Operator with default configuration, see Section 5.1, “Deploying Red Hat OpenStack Platform overcloud for Service Telemetry Framework using director Operator”.
5.1. Deploying Red Hat OpenStack Platform overcloud for Service Telemetry Framework using director Operator Copia collegamentoCollegamento copiato negli appunti!
When you deploy the Red Hat OpenStack Platform (RHOSP) overcloud deployment using director Operator, you must configure the data collectors and the data transport for Service Telemetry Framework (STF).
Prerequisites
- You are familiar with deploying and managing RHOSP with the RHOSP director Operator.
Procedure
- Section 4.1.1, “Getting CA certificate from Service Telemetry Framework for overcloud configuration”
- Retrieving the AMQ Interconnect route address
- Creating the base configuration for director Operator for STF
- Configuring the STF connection for the overcloud
- Deploying the overcloud for director operator
Additional resources
- For more information about deploying an OpenStack cloud using director Operator, see https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/17.1/html/deploying_an_overcloud_in_a_red_hat_openshift_container_platform_cluster_with_director_operator/index
- To collect data through AMQ Interconnect, see the amqp1 plug-in.
5.1.1. Getting CA certificate from Service Telemetry Framework for overcloud configuration Copia collegamentoCollegamento copiato negli appunti!
To connect your Red Hat OpenStack Platform (RHOSP) overcloud to Service Telemetry Framework (STF), retrieve the CA certificate of AMQ Interconnect that runs within STF and use the certificate in RHOSP configuration.
Procedure
View a list of available certificates in STF:
oc get secrets
$ oc get secretsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Retrieve and note the content of the
default-interconnect-selfsignedSecret:oc get secret/default-interconnect-selfsigned -o jsonpath='{.data.ca\.crt}' | base64 -d$ oc get secret/default-interconnect-selfsigned -o jsonpath='{.data.ca\.crt}' | base64 -dCopy to Clipboard Copied! Toggle word wrap Toggle overflow
5.1.2. Retrieving the AMQ Interconnect route address Copia collegamentoCollegamento copiato negli appunti!
When you configure the Red Hat OpenStack Platform (RHOSP) overcloud for Service Telemetry Framework (STF), you must provide the AMQ Interconnect route address in the STF connection file.
Procedure
- Log in to your Red Hat OpenShift Container Platform environment where STF is hosted.
Change to the
service-telemetryproject:oc project service-telemetry
$ oc project service-telemetryCopy to Clipboard Copied! Toggle word wrap Toggle overflow Retrieve the AMQ Interconnect route address:
oc get routes -ogo-template='{{ range .items }}{{printf "%s\n" .spec.host }}{{ end }}' | grep "\-5671"$ oc get routes -ogo-template='{{ range .items }}{{printf "%s\n" .spec.host }}{{ end }}' | grep "\-5671" default-interconnect-5671-service-telemetry.apps.infra.watchCopy to Clipboard Copied! Toggle word wrap Toggle overflow
5.1.3. Creating the base configuration for director Operator for STF Copia collegamentoCollegamento copiato negli appunti!
Edit the heat-env-config-deploy ConfigMap to add the base Service Telemetry Framework (STF) configuration to the overcloud nodes.
Procedure
Log in to the Red Hat OpenShift Container Platform environment where RHOSP director Operator is deployed and change to the project that hosts your RHOSP deployment:
oc project openstack
$ oc project openstackCopy to Clipboard Copied! Toggle word wrap Toggle overflow Open the
heat-env-config-deployConfigMapCR for editing:oc edit heat-env-config-deploy
$ oc edit heat-env-config-deployCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the
enable-stf.yamlconfiguration to theheat-env-config-deployConfigMap, save your edits and close the file:enable-stf.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
5.1.4. Configuring the STF connection for director Operator for the overcloud Copia collegamentoCollegamento copiato negli appunti!
Edit the heat-env-config-deploy ConfigMap to create a connection from Red Hat OpenStack Platform (RHOSP) to Service Telemetry Framework.
Procedure
Log in to the Red Hat OpenShift Container Platform environment where RHOSP director Operator is deployed and change to the project that hosts your RHOSP deployment:
oc project openstack
$ oc project openstackCopy to Clipboard Copied! Toggle word wrap Toggle overflow Open the
heat-env-config-deployConfigMap for editing:oc edit configmap heat-env-config-deploy
$ oc edit configmap heat-env-config-deployCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add your
stf-connectors.yamlconfiguration to theheat-env-config-deployConfigMap, appropriate to your environment, save your edits and close the file:stf-connectors.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
The
resource_registryconfiguration directly loads the collectd service because you do not include thecollectd-write-qdr.yamlenvironment file for multiple cloud deployments. -
Replace the
hostsub-parameter ofMetricsQdrConnectorswith the value that you retrieved in Section 4.1.3, “Retrieving the AMQ Interconnect route address”. -
Replace the
<password_from_stf>portion of thesaslPasswordsub-parameter ofMetricsQdrConnectorswith the value you retrieved in Section 4.1.2, “Retrieving the AMQ Interconnect password”. -
Replace the
caCertFileContentparameter with the contents retrieved in Section 4.1.1, “Getting CA certificate from Service Telemetry Framework for overcloud configuration”. -
Set
topicvalue ofCeilometerQdrMetricsConfig.topicto define the topic for Ceilometer metrics. The value is a unique topic identifier for the cloud such ascloud1-metering. -
Set
CollectdAmqpInstancessub-parameter to define the topic for collectd metrics. The section name is a unique topic identifier for the cloud such ascloud1-telemetry. -
Set
CollectdSensubilityResultsChannelto define the topic for collectd-sensubility events. The value is a unique topic identifier for the cloud such assensubility/cloud1-telemetry.
-
The
5.1.5. Deploying the overcloud for director Operator Copia collegamentoCollegamento copiato negli appunti!
Deploy or update the overcloud with the required environment files so that data is collected and transmitted to Service Telemetry Framework (STF).
Procedure
Log in to the Red Hat OpenShift Container Platform environment where RHOSP director Operator is deployed and change to the project that hosts your RHOSP deployment:
oc project openstack
$ oc project openstackCopy to Clipboard Copied! Toggle word wrap Toggle overflow Open the
OpenStackConfigGeneratorcustom resource for editing:oc edit OpenStackConfigGenerator
$ oc edit OpenStackConfigGeneratorCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the
metrics/ceilometer-write-qdr.yamlandmetrics/qdr-edge-only.yamlenvironment files as values for theheatEnvsparameter. Save your edits, and close theOpenStackConfigGeneratorcustom resource:NoteIf you already deployed a Red Hat OpenStack Platform environment using director Operator, you must delete the existing
OpenStackConfigGeneratorand create a new object with the full configuration in order to re-generate theOpenStackConfigVersion.OpenStackConfigGenerator
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
If you already deployed a Red Hat OpenStack Platform environment using director Operator and generated a new
OpenStackConfigVersion, edit theOpenStackDeployobject of your deployment, and set the value ofspec.configVersionto the newOpenStackConfigVersionin order to update the overcloud deployment.