summaryrefslogtreecommitdiffstats
path: root/docs/sections/services/pm-mapper/installation.rst
blob: 432a2e34419efd32f6b5155fb07ad8a063cdd89f (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
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0

Installation
============

PM mapper is a microservice that will be configured and instantiated through Cloudify Manager, either through the user
interface or the command line tool. During instantiation, the PM Mapper will fetch its configuration through the Config Binding Service. Steps to deploy using the CLI tool are shown below.

Deployment Prerequisite/dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    - DCAE and DMaaP pods should be up and running.
    - DMaaP Bus Controller post install jobs should have completed successfully (executed as part of an OOM install).
    - Make sure that cfy is installed and configured to work with the Cloudify deployment.

Deployment steps
^^^^^^^^^^^^^^^^

Enter the Cloudify Manager kuberenetes pod

    - Download the PM Mapper blueprint onto the pod, this can be found in:

        https://git.onap.org/dcaegen2/services/pm-mapper/tree/dpo/blueprints/k8s-pm-mapper.yaml

    - Create inputs.yaml

        Configuration of the service consists of generating an inputs file (YAML) which will be used as part of the
        Cloudify install. The PM-Mapper blueprints were designed with sane defaults for the majority of the fields.
        Below you will find some examples of fields which can be configured, and some of the fields
        which must be configured. The full list of configurable parameters can be seen within the blueprint file under
        "inputs".

        .. csv-table::
            :widths: auto
            :delim: ;
            :header: Property , Sample Value , Description , Required

            client_id ; dcae@dcae.onap.org ; Information about the AAF user must be provided to enable publishing to authenticated topics. ; Yes
            client_password ; <dcae_password> ; This is the password for the given user e.g.  The <dcae_password> is dcae@dcae.onap.org's password. ; Yes
            enable_http ; true ; By default, the PM-Mapper will only allow inbound queries over HTTPS. However, it is possible to configure it to enable HTTP also. ; No
            tag_version ; nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pm-mapper:1.0.1 ; The tag of the Docker image will be used when deploying the PM-Mapper. ; No
            pm-mapper-filter ; {"filters": [{"pmDefVsn":"targetVersion", "nfType":"targetNodeType", "vendor":"targetVendor","measTypes":["targetMeasType"]}]} ; The default behavior of the PM-Mapper is to map all measType in the received PM XML files, however, it's possible to provide filtering configuration which will reduce the VES event to the counters that the designer has expressed interest in. ; No

        Example inputs.yaml

        .. code-block:: yaml

                client_id: dcae@dcae.onap.org
                client_password: <dcae_password>
                enable_http: false
                tag_version: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pm-mapper:latest
                pm-mapper-filter: {"filters": []}



    - Create deployment

        .. code-block:: bash

            cfy install --blueprint-id pm-mapper --deployment-id pm-mapper -i inputs.yaml k8s-pm-mapper.yaml