Configuring OpenStack Observer jobs
Using the OpenStack Observer, you can configure jobs that dynamically load OpenStack data for analysis by Agile Service Manager.
Before you begin
Ensure you have the OpenStack service details to hand, such as the parameters for its APIs or RabbitMQ message bus. If you are configuring a query job, have OpenStack location and authorisation details to hand. If you are configuring a rabbitmq job, you must also identify and provide access to the RabbitMQ message bus.
- If you have already installed OpenStack using DevStack
- Add the following code to the end of the local.conf file, and then reinstall OpenStack.
- If you are planning to install OpenStack using DevStack
- Add the following code to the end of the local.conf file before installation.
[[post-config|$NOVA_CONF]]
[DEFAULT]
notification_topics = notifications,com.ibm.asm.obs.nova.notify
notification_driver=messagingv2
notify_on_state_change=vm_and_task_state
notify_on_any_change=True
- For standard (or any other) OpenStack installations
- Add the following code under the [DEFAULT] section of the nova.conf file, and then restart the Nova (compute) service.
notification_topics = notifications,com.ibm.asm.obs.nova.notify
notification_driver=messagingv2
notify_on_state_change=vm_and_task_state
notify_on_any_change=True
The OpenStack Observer is installed as part of the core installation procedure.
About this task
The OpenStack Observer jobs extract OpenStack resources via REST or RabbitMQ. The Observer loads and updates the resources and their relationships within the Netcool Agile Service Manager core topology service.
- Restapi Load job
- A transient (one-off) job that loads all requested topology data from the OpenStack instance by REST API.
- Rabbitmq Listen job
- A long-running job that reads messages on OpenStack's RabbitMQ message bus for activity from the Cinder (block storage), Heat (orchestration), Neutron (network) and Nova (compute) components continually, until it is explicitly stopped, or until the Observer is stopped.
| Parameter | Action | Details |
|---|---|---|
| Unique ID | Enter a unique name for the job | Required |
| OpenStack authentication type | Specify the OpenStack connection authentication technique to use. | Required. Choose either V2_Tenant, V3_Unscoped, V3_Project, V3_Domain, or V3_ProjectDomain. |
| OpenStack password | Specify the OpenStack password with which to authenticate. | Required. Must be encrypted. |
| OpenStack identity endpoint | Specify the authentication URL. | Required. Must include the port and version. |
| Data center name | Specify the name of the data center in which the OpenStack instance is running. | Required. If more than one OpenStack instance is run, and duplicate project or tenant names exist, you must disambiguate them here. |
| OpenStack username | Specify the OpenStack user name to connect as (or to). | Required |
| OpenStack project name | Specify the OpenStack project name. | Required |
| OpenStack domain name | Specify the OpenStack domain name. | Optional. |
| OpenStack region name | Specify the OpenStack region. | Optional |
| OpenStack perspective | Select the URL perspective the API accesses data from. | Optional. Choose from Admin, Public, and Internal. |
| Connection and read timeout (ms) | Choose the timeout setting for the connection and read actions. | Optional. The default is 5000 (5 seconds). |
| SSL Verification | Choose whether to use SSL verification (true or false). If false, HTTPS is used, but without hostname validation. | Optional |
| OpenStack host certificate | Specify a certificate name to load into the trust store If specified, then a certificate file with the same name must exist in the /opt/ibm/netcool/asm/security directory. |
Optional for on-prem. If used, must be in the /opt/ibm/netcool/asm/security directory. Required for OCP. Use the instructions in the following topic to obtain the authentication certificate using OpenSSL and store them as secrets: Defining observer security |
| SSL truststore file name | Specify a truststore file name. | Required |
| SSL truststore file password | Specify a truststore file password. | Required |
| Job schedule | Specify when the job runs. | Optional. Load jobs only. |
| Observer job description | Enter additional information to describe the job. | Optional |
| Parameter | Action | Details |
|---|---|---|
| Unique ID | Enter a unique name for the job | Required |
| RabbitMQ username | Specify the AMQP user name to connect to the broker. | Required |
| RabbitMQ password | Specify the password to use to connect to the broker. | Required. Must be encrypted. |
| RabbitMQ hosts | Enter a (comma-seperated) list of hosts in the RabbitMQ cluster. | Required. The first successful connection is used. |
| Data center name | Specify the name of the data center in which the OpenStack instance is running. | Required. If more than one OpenStack instance is run, and duplicate project or tenant names exist, you must disambiguate them here. |
| OpenStack username | Specify the OpenStack user name to connect as (or to). | Required |
| OpenStack project name | Specify the OpenStack project. | Optional |
| RabbitMQ virtual host name | Specify the virtual host to connect to the broker. | Optional |
| Use SSL? | Choose whether to use an SSL connection. | Optional. Choose true or false. For RabbitMQ, you must choose true. |
| Nova v2 Oslo message queue | Specify the Nova v2 Oslo message queue. | Optional |
| Neutron v2 Oslo message queue | Specify the Neutron v2 Oslo message queue. | Optional |
| Cinder v2 Oslo message queue | Specify the Cinder v2 Oslo message queue. | Optional |
| Heat v2 Oslo message queue | Specify the Heat v2 Oslo message queue. | Optional |
| Number of consumer instances | Specify the number of consumer instances to create for each API queue type. | Optional |
| Observer job description | Enter additional information to describe the job. | Optional |
- Data center name
- OpenStack project name
- OpenStack username
./bin/encrypt_password.sh
Enter and then confirm the password. The encryption
utility will return an encrypted password, for example:
2IuExvqz5SGnGgROYGLAQg==
Procedure
Configure the OpenStack Observer restapi job
Configure the OpenStack Observer rabbitmq job