Defining SDC ONAP Observer jobs
You configure SDC (Service Design and Creation) ONAP (Open Network Automation Platform) Observer jobs to dynamically load data from the SDC REST interface.
Before you begin
Important: The SDC ONAP Observer supports the SDC release 8.0.0.
Ensure you have the SDC ONAP service details to hand, such as username, password, hostname and
port.
To obtain SDC ONAP system details:
- To get port
-
kubectl describe svc --selector=app.kubernetes.io/name=sdc-be | grep NodePort
- To get message bus port
-
kubectl describe svc --selector=app.kubernetes.io/name=message-router | grep NodePort
- To copy trust store
Orkubectl cp <onap-sdc-be-*>:/var/lib/jetty/chef-solo/environments/org.onap.sdc.trust.jks ./org.onap.sdc.trust.jks
kubectl cp <onap-sdc-be-*>:/app/jetty/chef-solo/environments/org.onap.sdc.trust.jks ./org.onap.sdc.trust.jks
- To get trust store password
Orkubectl exec -it <onap-sdc-be-*> -- sh -c "cat /var/lib/jetty/chef-solo/environments/AUTO.json | grep truststore_pwd"
kubectl exec -it <onap-sdc-be-*> -- sh -c "cat /app/jetty/chef-solo/environments/AUTO.json | grep truststore_pwd"
The observer is installed as part of the core installation procedure.
Remember: Swagger documentation for the observer is available at the following default location: https://<your
host>/1.0/sdconap-observer/swagger
About this task
SDC manages two levels of assets:
- Resource
- A fundamental capability, implemented either entirely in software, or as software that interacts
with a hardware device. Each Resource is a combination of one or more Virtual Function Components
(VFCs), along with all the information necessary to instantiate, update, delete, and manage the
Resource. A resource also includes license-related information. There are three kinds of Resource:
- Infrastructure: Cloud resources, such as Compute, Storage, etc
- Network: Network connectivity functions & elements, for example a Virtual Network Function (VNF)
- Application: Features and capabilities of a software application, for example a load-balancing function=
- Service
- A well-formed object comprising one or more resources.
You define and start the following jobs:
- Load
- Run this job whenever you need SDC ONAP topology data refreshed.
- Listen
- A long-running job that consumes relevant messages from the SDC DMaaP broker continually until it is explicitly stopped, or until the observer is stopped.
sdconap_observer_common.sh
- The configuration file you use to customize SDC ONAP Observer settings.
Procedure
To edit the parameters in the configuration file
To start a job
What to do next
You can also use the following scripts:
- sdconap_observer_load_stop.sh
- Stops the Load job
- sdconap_observer_listen_stop.sh
- Stops the Listen job
- sdconap_observer_job_list.sh
- Lists the status of current jobs
- sdconap_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.