Defining OpenStack Observer jobs
The OpenStack Observer is installed as part of the core installation procedure. Using the OpenStack Observer, you can define jobs that dynamically load OpenStack data for analysis by Netcool Agile Service Manager.
Before you begin
Important: The OpenStack Observer supports the on-premise OpenStack versions Ocata,
Pike, Rocky, Queens, Stein, Train, Zed and Antelope.
Ensure you have the OpenStack service details to hand, such as username, password, and URL.
Remember: Swagger documentation for the observer is available at the following default
location: https://<your
host>/1.0/openstack-observer/swagger
Note: OpenStack uses RBAC-based protection of its API by defining policy rules based on an RBAC
approach. Availability of resources retrieved by the observer is also governed by the same policy.
For example, a VM created in project A by users with the admin role may only be available to other
users with the same admin role. This can be configured or modified according to user requirements in
the OpenStack's policy configuration.
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.
openstack_observer_common.sh
- The config file you use to customize OpenStack Observer settings.
You define and start the following two jobs. You must edit the parameters in the config file
before running these jobs.
- Restapi Load job
- A transient (one-off) job that loads all requested topology data.
- Rabbitmq Listen job
- A long-running job that monitors its source for updates and runs until it is explicitly stopped, or until the Observer is stopped.
Tip: Alternatively, you can set the appropriate environment variables. If an
environment variable is set, it takes precedence over the config file settings.
Procedure
To edit the parameters in the configuration file
To configure the OpenStack installation method
To start the Load and Listener jobs
What to do next
- openstack_observer_query_stop.sh
- Stops the Full Topology Upload job
- openstack_observer_listen_stop.sh
- Stops the Listener job
- openstack_observer_job_list.sh
- Lists the status of current jobs
- openstack_observer_log_level.sh
- Sets the log level
Remember: As an alternative to being configured using the Observer Configuration
UI, observer jobs have scripts to start and stop all available jobs, to list the status of a current
job, and to set its logging levels. These scripts can be run with -h or
--help to display help information, and with -v or
--verbose to print out the details of the actions performed by the script,
including the full cURL command. For the on-prem version of Agile Service Manager, observer scripts
are configured for specific jobs by editing the script configuration files.