summaryrefslogtreecommitdiffstats
path: root/docs/sections/services/prh/configuration.rst
blob: 560c08c8aa72eb593034e35f2498534b16895414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0


Configuration
=============

PRH fetches configuration directly from CBS service in the following JSON format:

.. code-block:: json

  {
    "config":{
      "dmaap.dmaapConsumerConfiguration.dmaapUserName":"admin",
      "dmaap.dmaapConsumerConfiguration.dmaapUserPassword":"admin",
      "dmaap.dmaapConsumerConfiguration.consumerId":"c12",
      "dmaap.dmaapConsumerConfiguration.consumerGroup":"OpenDCAE-c12",
      "dmaap.dmaapConsumerConfiguration.timeoutMs":-1,

      "dmaap.dmaapProducerConfiguration.dmaapUserName":"admin",
      "dmaap.dmaapProducerConfiguration.dmaapUserPassword":"admin",
      "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName":"admin",
      "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword":"admin",
      "aai.aaiClientConfiguration.pnfUrl": "https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf",
      "aai.aaiClientConfiguration.baseUrl": "https://aai.onap.svc.cluster.local:8443/aai/v12",
      "aai.aaiClientConfiguration.aaiUserName":"AAI",
      "aai.aaiClientConfiguration.aaiUserPassword":"AAI",
      "aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors":true,
      "aai.aaiClientConfiguration.aaiServiceInstancePath":"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}",
      "aai.aaiClientConfiguration.aaiHeaders":{
        "X-FromAppId":"prh",
        "X-TransactionId":"9999",
        "Accept":"application/json",
        "Real-Time":"true",
        "Authorization":"Basic QUFJOkFBSQ=="
      },
      "security.trustStorePath":"/opt/app/prh/local/org.onap.prh.trust.jks",
      "security.trustStorePasswordPath":"change_it",
      "security.keyStorePath":"/opt/app/prh/local/org.onap.prh.p12",
      "security.keyStorePasswordPath":"change_it",
      "security.enableAaiCertAuth":false,
      "security.enableDmaapCertAuth":false,
      "streams_publishes":{
        "pnf-update":{
          "type": "message_router",
          "dmaap_info":{
            "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE"
          }
        },
        "pnf-ready":{
          "type": "message_router",
          "dmaap_info":{
            "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY"
          }
        }
      },
      "streams_subscribes":{
        "ves-reg-output":{
          "type": "message_router",
          "dmaap_info":{
            "topic_url":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT"
          }
        }
      }
    }
  }

The configuration is created from PRH helm charts by specifying **applicationConfig**  during ONAP OOM/Kubernetes deployment.

For PRH 1.9.0 version (London) , a new mode has been introduced which allows early PNF registrations. This mode uses a direct Kafka consumer and not the DMAAP consumer. This mode is not the default mode and has to be activated by setting certain environment variables in the Helm chart values.yaml file under **applicationEnv**, as shown below: 

.. code-block:: yaml


        - name: kafkaBoostrapServerConfig
          value: onap-strimzi-kafka-bootstrap:9092
        - name: groupIdConfig
          value: OpenDCAE-c12
        - name: kafkaUsername
          value: strimzi-kafka-admin
        - name: kafkaPassword
          valueFrom:
            secretKeyRef:
              key: password
              name: strimzi-kafka-admin
        - name: kafkaTopic
          value: unauthenticated.VES_PNFREG_OUTPUT
        - name: SPRING_PROFILES_ACTIVE
          value: autoCommitDisabled
        - name: JAAS_CONFIG
          valueFrom:
            secretKeyRef:
              key: sasl.jaas.config
              name: strimzi-kafka-admin