1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. SPDX-License-Identifier: CC-BY-4.0
3 .. Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
8 A Participant is a component that acts as a bridge between the Automation Composition Management runtime and components such as the Kserve, A1PMS, DME, or a Kubernetes cluster that are taking part in automation composition management. It listens to DMaaP to receive messages from the ACM runtime and performs operations towards components that are taking part in acms. A participant has an Automation Composition Management Element for each automation composition in which it is taking part.
10 More information about ACM can be found `here <https://docs.onap.org/projects/onap-policy-parent/en/latest/clamp/acm/acm-architecture.html#introduction>`_.
12 The DME participant receives Information Type/Data Producer/Data Consumer information from the ACM runtime and creates it in ICS(NONRTRIC). The participant acts as a wrapper around the ICS and creates the entities.
14 Supported message Broker are DMaap and Strimzi-Kafka.
16 This participant is a part of :doc:`NONRTRIC <nonrtric:index>`.
22 .. image:: ./images/architecture.png
25 When an automation composition is initialized, the DME participant starts a DME Automation Composition element for the automation composition. It reads the configuration information sent from the Automation Composition Runtime and runs a REST client to talk to the ICS(DME) endpoint receiving the REST requests.
27 ***************************************
28 Prerequisites for using DME participant
29 ***************************************
31 * A running ICS(DME). ICS(DME) base url should be configured in DME participant to make REST calls.
33 ***********************
34 Supported Element Types
35 ***********************
36 Supported Element Types for DME participant will be used to define the DME participant Element Definition Types in tosca template. Participant Supported Element Types is defined in DME participant application.yaml.
40 participantSupportedElementTypes:
42 typeName: org.onap.policy.clamp.acm.DMEAutomationCompositionElement
45 **************************************************
46 Defining a TOSCA CL definition for DME participant
47 **************************************************
49 A Info Type Entity/ Data Producer Entity/Data Consumer Entity describes a information type entities that is managed by the DME participant. A Info Type Entity/Data Producer Entity/Data Consumer Entity can be created, Read and Deleted. The user defines the entities that it wants its DME Automation Composition Element to manage and provides the parameters to manage each Information Type/Data Producer/Data Consumer.
51 Sample tosca template defining a participant and a AC element definition ':download:`link <./tosca-dme-participant.yml>`'
54 **************************************************************************************************
55 Configuring a Automation Composition Element on the A1PMS participant for a Automation Composition
56 **************************************************************************************************
58 The user defines the following properties in the TOSCA template for the DME participant
60 .. list-table:: Information Type Entities
67 - ToscaConceptIdentifier
68 - The name and version of the information type that needs to be managed by the DME participant
71 - Id of information type
74 - The payload of the information type entity. This will be used as payload to call DME API
76 .. list-table:: Data Producer Entities
82 * - dataProducerEntityId
83 - ToscaConceptIdentifier
84 - The name and version of the data producer that needs to be managed by the DME participant
87 - Id of the data producer
90 - The payload of the data producer entity. This will be used as payload to call DME API
92 .. list-table:: Data Consumer Entities
98 * - dataConsumerEntityId
99 - ToscaConceptIdentifier
100 - The name and version of the data consumer that needs to be managed by the DME participant
103 - Id of the data consumer
106 - The payload of the data consumer entity. This will be used as payload to call DME API
108 Sample Automation Composition instances. In that example the user fills the properties defined in the TOSCA for the DME participant ':download:`link <./automation-composition-dme.yml>`'
110 ****************************
111 DME participant Interactions
112 ****************************
114 The DME participant interacts with Automation Composition Runtime on the northbound interface via Message Broker. It interacts with the ICS(DME) API on the southbound interface for the operations.
116 The communication for the Automation Composition updates and state change requests are sent from the Automation Composition Runtime to the participant via Message Broker. The participant performs appropriate operations on DME via REST based on the received messages from the Automation Composition Runtime.
118 ************************
119 DME participant Workflow
120 ************************
121 Once the participant is started, it sends a “REGISTER” event to the Message Broker topic which is then consumed by the Automation Composition Runtime to register this participant on the runtime database. The user can commission the tosca definitions from the Policy Gui to the Automation Composition Runtime. Once the automation composition definitions are available in the runtime database, the user can prime them and further updates the participant with these definitions via Message Broker. After priming, the Automation Composition can be instantiated with the default state “UNDEPLOYED” from the Policy Gui.
123 When the state of the Automation Composition is changed from “UNDEPLOYED” to “DEPLOYED” from the Policy Gui, the DME participant receives the automation composition state change event from the runtime and deploys the information type/data producer/data consumer associated with each Automation Composition Elements by calling the ICS(DME) api in the cluster.
125 When the state of the Automation Composition is changed back from “DEPLOYED” to “UNDEPLOYED”, the participant also undeploys the related information type/data producer/data consumer from DME.