1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright 2022 Nordix Foundation
6 Installation and Configuration
7 ==============================
9 PM Subscription Handler (PMSH) microservice can be deployed using helm charts in oom repository.
12 Deployment Prerequisites
13 ~~~~~~~~~~~~~~~~~~~~~~~~
15 - PMSH service requires config-binding-service, policy, dmaap, cds, aai and aaf components to be running.
23 - Default app config values can be updated in oom/kubernetes/dcaegen2-services/components/dcae-pmsh/values.yaml
26 - Enable PMSH component in oom/kubernetes/dcaegen2-services/values.yaml
33 - Make the chart and deploy using the following command:
38 make dcaegen2-services
39 helm install dev-dcaegen2-services dcaegen2-services --namespace <namespace> --set global.masterPassword=<password>
41 - To deploy only PMSH:
45 helm install dev-pmsh dcaegen2-services/components/dcae-pmsh --namespace <namespace> --set global.masterPassword=<password>
51 helm uninstall dev-pmsh
56 Subscription configuration
57 """"""""""""""""""""""""""
59 The subscription is configured within the monitoring policy. The subscription model schema is as follows:
67 "subscriptionName":"someExtraPM-All-gNB-R2B",
68 "operationalPolicyName":"operational-policy-name",
69 "controlLoopName":"controlLoop-name",
75 "5845y423-g654-6fju-po78-8n53154532k6",
76 "7129e420-d396-4efb-af02-6b83499b12f8"
79 "e80a6ae3-cafd-4d24-850d-e14c084a5ca9"
88 "measurementGroupName":"msgroupname",
89 "administrativeState":"UNLOCKED",
91 "fileLocation":"/pm/pm.xml",
94 "measurementType":"EutranCell.*"
97 "measurementType":"EutranCellRelation.pmCounter1"
100 "measurementType":"EutranCellRelation.pmCounter2"
103 "managedObjectDNsBasic":[
105 "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1"
108 "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1, EUtranCellRelation=CityCenter2"
111 "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1, EUtranCellRelation=CityCenter3"
121 +-----------------------+---------------------------------------------------------------------------------------------------------+--------+----------+--------------------------+
122 | Field | Description | Type | Required | Values |
123 +-----------------------+---------------------------------------------------------------------------------------------------------+--------+----------+--------------------------+
124 | subscriptionName | Name of the subscription. | string | True | subscriptionName |
125 +-----------------------+---------------------------------------------------------------------------------------------------------+--------+----------+--------------------------+
126 | operationalPolicyName | Name of the operational policy to be executed. | string | True | operationalPolicyName |
127 +-----------------------+---------------------------------------------------------------------------------------------------------+--------+----------+--------------------------+
128 | controlLoopName | Name of the control loop. | string | False | controlLoopName |
129 +-----------------------+---------------------------------------------------------------------------------------------------------+--------+----------+--------------------------+
130 | nfFilter | The network function filter will be used to filter the list of nf's stored in A&AI to produce a subset. | list | True | |
131 +-----------------------+---------------------------------------------------------------------------------------------------------+--------+----------+--------------------------+
132 | measurementGroups | List containing measurementGroup. | list | True | List of measurementGroup |
133 +-----------------------+---------------------------------------------------------------------------------------------------------+--------+----------+--------------------------+
136 Since release Istanbul of ONAP, PMSH Subscriptions model schema is updated.
137 Subscription model is centric to ``measurementGroup``, for instance any update on attributes administrativeState, fileBasedGP,
138 fileLocation, nfFilter will be applicable to only individual measurementGroup object.
142 The ``nfFilter`` will be used in order to filter the list of NF's retrieved from A&AI. There are four criteria that
143 can be filtered on, nfNames, modelInvariantIDs, modelVersionIDs and/or modelNames. All 4 of these are optional fields but at
144 least 1 must be present for the filter to work.
153 "modelInvariantIDs": [
154 "5845y423-g654-6fju-po78-8n53154532k6",
155 "7129e420-d396-4efb-af02-6b83499b12f8"
158 "e80a6ae3-cafd-4d24-850d-e14c084a5ca9"
165 +------------------------+-----------------------------------------------------------------------------------------------+------+----------+
166 | Field | Description | Type | Required |
167 +========================+===============================================================================================+======+==========+
168 | nfNames | List of NF names. These names are regexes, which will be parsed by the PMSH. | list | True |
169 +------------------------+-----------------------------------------------------------------------------------------------+------+----------+
170 | modelInvariantIDs | List of modelInvariantIDs. These UUIDs will be checked for exact matches with AAI entities. | list | True |
171 +------------------------+-----------------------------------------------------------------------------------------------+------+----------+
172 | modelVersionIDs | List of modelVersionIDs. These IDs will be checked for exact matches with AAI entities. | list | True |
173 +------------------------+-----------------------------------------------------------------------------------------------+------+----------+
174 | modelNames | List of modelNames. These names will be checked for exact matches with AAI entities. | list | True |
175 +------------------------+-----------------------------------------------------------------------------------------------+------+----------+
179 ``measurementGroup`` is used to specify the group of measurements that will be collected.
183 "measurementGroup": {
184 "measurementGroupName":"msgroupname",
185 "administrativeState":"UNLOCKED",
187 "fileLocation":"/pm/pm.xml",
188 "measurementTypes": [
190 "measurementType": "EutranCell.*"
193 "measurementType": "EutranCellRelation.pmCounter1"
196 "measurementType": "EutranCellRelation.pmCounter2"
199 "managedObjectDNsBasic": [
201 "DN": "ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1"
204 "DN": "ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1, EUtranCellRelation=CityCenter2"
207 "DN": "ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1, EUtranCellRelation=CityCenter3"
212 +-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+----------+--------+
213 | Field | Description | Type | Required | Values |
214 +=======================+========================================================================================================================================================================================+======+==========+========+
215 | measurementGroupName | Unique identifier for measurementGroup. | | True | |
216 +-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+----------+--------+
217 | administrativeState | Setting a measurementGroup to UNLOCKED will apply the subscription changes to the NF instances immediately. If it is set to LOCKED, it will not be applied until it is later unlocked. | | True | |
218 +-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+----------+--------+
219 | fileBasedGP | The frequency at which measurements are produced. | | True | |
220 +-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+----------+--------+
221 | fileLocation | Location of Report Output Period file. | | True | |
222 +-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+----------+--------+
223 | measurementTypes | List of measurement types. These are regexes, and it is expected that either the CDS blueprint, or NF can parse them. As the PMSH will not do so. | list | True | |
224 +-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+----------+--------+
225 | managedObjectDNsBasic | List of managed object distinguished names. | list | True | |
226 +-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+----------+--------+
240 This topic is used so that the PMSH can listen for new NFs getting added or deleted. If the NF matches the NF filter it will be added to the relevant subscription.
244 unauthenticated.PMSH_CL_INPUT
246 This topic enables the operational policy to provide feedback on the status of a subscription attempt, back to
247 PMSH, with a message of either success or failed.
249 Example of successful CREATE event sent from policy:
254 "name": "ResponseEvent",
255 "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
260 "subscriptionName": "subscriptiona",
261 "measurementGroupName":"msgroupname",
263 "changeType": "CREATE",
272 .. _DCAE_CL_OUTPUT_Topic:
276 unauthenticated.DCAE_CL_OUTPUT
278 PMSH publishes subscriptions to this topic. They will be consumed by an operational policy which will make a request to CDS to
279 change the state of the subscription.
282 Since release Istanbul of ONAP, PMSH Publish Subscriptions event format is updated.
283 A new attribute ``measurementGroupName`` is added as a unique identifier for ``measurementGroup`` and a single ``measurementGroup`` is associated with
284 PMSH Subscription event.
286 Example event sent from PMSH:
292 "ipv4Address": "10.12.13.12",
293 "policyName":"operational-policy-name",
294 "closedLoopControlName":"controlLoop-name",
295 "blueprintName":"pm_control",
296 "blueprintVersion":"1.2.4",
297 "changeType":"CREATE",
299 "administrativeState":"UNLOCKED",
300 "subscriptionName":"subscriptiona",
302 "fileLocation":"/pm/pm.xml",
304 "measurementGroupName":"msgroupname",
307 "measurementType":"countera"
310 "measurementType":"counterb"
313 "managedObjectDNsBasic":[