Add additional information to DCAEGEN notes 23/120623/6
authorKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>
Mon, 19 Apr 2021 07:11:00 +0000 (09:11 +0200)
committerKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>
Mon, 19 Apr 2021 14:01:52 +0000 (16:01 +0200)
Add additional information to DCAEGEN notes how to deploy
VES Collector with attached dcae-external-repo-configmap-sa88-rel16
config map

Issue-ID: DCAEGEN2-2550
Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>
Change-Id: I866cb3415b64b5beba3622e84478821370d2d8ca

docs/sections/services/ves-http/installation.rst
docs/sections/services/ves-hv/installation.rst

index e31348c..156427a 100644 (file)
-.. This work is licensed under a Creative Commons Attribution 4.0 International License.
-.. http://creativecommons.org/licenses/by/4.0
-.. _ves-installation:
-
-
-Installation
-============
-
-VESCollector is installed via cloudify blueprint by DCAE bootstrap process on typical ONAP installation.
-As the service is containerized, it can be started on stand-alone mode also.
-
-
-To run VES Collector container on standalone mode, following parameters are required
-
-    ``docker run -d -p 8080:8080/tcp -p 8443:8443/tcp -P -e DMAAPHOST='10.0.11.1' nexus.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.7.9``
-
-
-DMAAPHOST is required for standalone; for normal platform installed instance the publish URL are obtained from Consul. Below parameters are exposed for DCAE platform (cloudify) deployed instance
-
-
-- COLLECTOR_IP
-- DMAAPHOST - should contain an address to DMaaP, so that event publishing can work
-- CONFIG_BINDING_SERVICE - should be a name of CBS
-- CONFIG_BINDING_SERVICE_SERVICE_PORT - should be a http port of CBS
-- HOSTNAME - should be a name of VESCollector application as it is registered in CBS catalog
-
-These parameters can be configured either by passing command line option during `docker run` call or by specifying environment variables named after command line option name
-
-
-Authentication Support
-----------------------
-
-VES Collector support following authentication types
-
-    * *auth.method=noAuth* default option - no security (http)
-    * *auth.method=certBasicAuth* is used to enable mutual TLS authentication or/and basic HTTPs authentication
-
-The blueprint is same for both deployments - based on the input configuration, VESCollector can be set for required authentication type.
-Default ONAP deployed VESCollector is configured for "certBasicAuth".
-
-If VESCollector instance need to be deployed with authentication disabled, follow below setup
-
-
-- Execute into Bootstrap POD using kubectl command
-    .. note::
-      For doing this, follow the below steps
-
-      * First get the bootstrap pod name by running run this: kubectl get pods -n onap | grep bootstrap
-      * Then login to bootstrap pod by running this: kubectl exec -it <bootstrap pod> bash -n onap
-
-- VES blueprint is available under  /blueprints directory ``k8s-ves.yaml``. A corresponding input file is also pre-loaded into bootstrap pod under /inputs/k8s-ves-inputs.yaml
-
-- Deploy blueprint
-    .. code-block:: bash
-
-        cfy install -b ves-http -d ves-http -i /inputs/k8s-ves-inputs.yaml /blueprints/k8s-ves.yaml
-
-To undeploy ves-http, steps are noted below
-
-- Uninstall running ves-http and delete deployment
-    .. code-block:: bash
-
-        cfy uninstall ves-http
-
-The deployment uninstall will also delete the blueprint. In some case you might notice 400 error reported indicating active deployment exist such as below
-** An error occurred on the server: 400: Can't delete blueprint ves-http - There exist deployments for this blueprint; Deployments ids: ves-http**
-
-In this case blueprint can be deleted explicitly using this command.
-
-    .. code-block:: bash
-
-        cfy blueprint delete ves-http
-
-Using external TLS certificates obtained using CMP v2 protocol
---------------------------------------------------------------
-
-In order to use the X.509 certificates obtained from the CMP v2 server (so called "operator`s certificates"), refer to the following description:
-
-.. toctree::
-    :maxdepth: 1
-
-      Enabling TLS with external x.509 certificates <../../tls_enablement>
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.\r
+.. http://creativecommons.org/licenses/by/4.0\r
+.. _ves-installation:\r
+\r
+\r
+VES Collector Cloudify Installation\r
+===================================\r
+\r
+VESCollector is installed via cloudify blueprint by DCAE bootstrap process on typical ONAP installation.\r
+As the service is containerized, it can be started on stand-alone mode also.\r
+\r
+\r
+To run VES Collector container on standalone mode, following parameters are required\r
+\r
+    ``docker run -d -p 8080:8080/tcp -p 8443:8443/tcp -P -e DMAAPHOST='10.0.11.1' nexus.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.7.9``\r
+\r
+\r
+DMAAPHOST is required for standalone; for normal platform installed instance the publish URL are obtained from Consul. Below parameters are exposed for DCAE platform (cloudify) deployed instance\r
+\r
+\r
+- COLLECTOR_IP\r
+- DMAAPHOST - should contain an address to DMaaP, so that event publishing can work\r
+- CONFIG_BINDING_SERVICE - should be a name of CBS\r
+- CONFIG_BINDING_SERVICE_SERVICE_PORT - should be a http port of CBS\r
+- HOSTNAME - should be a name of VESCollector application as it is registered in CBS catalog\r
+\r
+These parameters can be configured either by passing command line option during `docker run` call or by specifying environment variables named after command line option name\r
+\r
+\r
+Authentication Support\r
+----------------------\r
+\r
+VES Collector support following authentication types\r
+\r
+    * *auth.method=noAuth* default option - no security (http)\r
+    * *auth.method=certBasicAuth* is used to enable mutual TLS authentication or/and basic HTTPs authentication\r
+\r
+The blueprint is same for both deployments - based on the input configuration, VESCollector can be set for required authentication type.\r
+Default ONAP deployed VESCollector is configured for "certBasicAuth".\r
+\r
+If VESCollector instance need to be deployed with authentication disabled, follow below setup\r
+\r
+\r
+- Execute into Bootstrap POD using kubectl command\r
+    .. note::\r
+      For doing this, follow the below steps\r
+\r
+      * First get the bootstrap pod name by running this: kubectl get pods -n onap | grep bootstrap\r
+      * Then login to bootstrap pod by running this: kubectl exec -it <bootstrap pod> -n onap -- bash\r
+\r
+- VES blueprint is available under  /blueprints directory ``k8s-ves.yaml``. A corresponding input file is also pre-loaded into bootstrap pod under /inputs/k8s-ves-inputs.yaml\r
+\r
+- Deploy blueprint\r
+    .. code-block:: bash\r
+\r
+        cfy install -b ves-http -d ves-http -i /inputs/k8s-ves-inputs.yaml /blueprints/k8s-ves.yaml\r
+\r
+To undeploy ves-http, steps are noted below\r
+\r
+- Uninstall running ves-http and delete deployment\r
+    .. code-block:: bash\r
+\r
+        cfy uninstall ves-http\r
+\r
+The deployment uninstall will also delete the blueprint. In some case you might notice 400 error reported indicating active deployment exist such as below\r
+** An error occurred on the server: 400: Can't delete blueprint ves-http - There exist deployments for this blueprint; Deployments ids: ves-http**\r
+\r
+In this case blueprint can be deleted explicitly using this command.\r
+\r
+    .. code-block:: bash\r
+\r
+        cfy blueprint delete ves-http\r
+\r
+External repo schema files from OOM connection to VES collector\r
+-------------------------------------------------------------------\r
+In order to not use schema files bundled in VES Collector image but schema files defined in `OOM <https://gerrit.onap.org/r/gitweb?p=oom.git;a=tree;f=kubernetes/dcaegen2/resources/external>`_ repository and installed with dcaegen2 module, follow below setup.\r
+\r
+- Execute into Bootstrap POD using kubectl command\r
+    .. note::\r
+      For doing this, follow the below steps\r
+\r
+      * First get the bootstrap pod name by running this: kubectl get pods -n onap | grep bootstrap\r
+      * Then login to bootstrap pod by running this: kubectl exec -it <bootstrap pod> -n onap -- bash\r
+\r
+- VES blueprint is available under  /blueprints directory ``k8s-ves.yaml``. A corresponding input file is also pre-loaded into bootstrap pod under /inputs/k8s-ves-inputs.yaml\r
+\r
+- Edit ``k8s-ves.yaml`` blueprint by adding section below ``docker_config:`` tag:\r
+    .. code-block:: bash\r
+\r
+        volumes:\r
+        - container:\r
+            bind: /opt/app/VESCollector/etc/externalRepo/3gpp/rep/sa5/MnS/blob/SA88-Rel16/OpenAPI\r
+          config_volume:\r
+            name: dcae-external-repo-configmap-sa88-rel16\r
+        - container:\r
+            bind: /opt/app/VESCollector/etc/externalRepo/\r
+          config_volume:\r
+            name: dcae-external-repo-configmap-schema-map\r
+\r
+- After all ``docker_config:`` section in blueprint should looks like:\r
+    .. code-block:: bash\r
+\r
+      docker_config:\r
+        healthcheck:\r
+          endpoint: /healthcheck\r
+          interval: 15s\r
+          timeout: 1s\r
+          type: http\r
+        volumes:\r
+        - container:\r
+            bind: /opt/app/VESCollector/etc/externalRepo/3gpp/rep/sa5/MnS/blob/SA88-Rel16/OpenAPI\r
+          config_volume:\r
+            name: dcae-external-repo-configmap-sa88-rel16\r
+        - container:\r
+            bind: /opt/app/VESCollector/etc/externalRepo/\r
+          config_volume:\r
+            name: dcae-external-repo-configmap-schema-map\r
+\r
+.. note::\r
+\r
+    To undeploy ves-http if it is deployed, steps are noted below\r
+\r
+    Uninstall running ves-http and delete deployment\r
+        .. code-block:: bash\r
+\r
+            cfy uninstall ves-http\r
+\r
+    The deployment uninstall will also delete the blueprint. In some case you might notice 400 error reported indicating active deployment exist such as below\r
+    ** An error occurred on the server: 400: Can't delete blueprint ves-http - There exist deployments for this blueprint; Deployments ids: ves-http**\r
+\r
+    In this case blueprint can be deleted explicitly using this command.\r
+\r
+        .. code-block:: bash\r
+\r
+            cfy blueprint delete ves-http\r
+\r
+To deploy modified ves-http, steps are noted below\r
+\r
+- Load blueprint:\r
+    .. code-block:: bash\r
+\r
+        cfy blueprints upload -b ves-http /blueprints/k8s-ves.yaml\r
+\r
+- Deploy blueprint\r
+    .. code-block:: bash\r
+\r
+        cfy install -b ves-http -d ves-http -i /inputs/k8s-ves-inputs.yaml /blueprints/k8s-ves.yaml\r
+\r
+Using external TLS certificates obtained using CMP v2 protocol\r
+--------------------------------------------------------------\r
+\r
+In order to use the X.509 certificates obtained from the CMP v2 server (so called "operator`s certificates"), refer to the following description:\r
+\r
+.. toctree::\r
+    :maxdepth: 1\r
+\r
+      Enabling TLS with external x.509 certificates <../../tls_enablement>\r
index d97db06..ada7b7f 100644 (file)
@@ -3,8 +3,8 @@
 
 .. _installation:
 
-HV-VES installation
-===================
+HV-VES Cloudify Installation
+============================
 
 Starting from ONAP/Honolulu release, HV-VES is installed with a DCAEGEN2-Services Helm charts.
 This installation mechanism is convenient, but it doesn`t support all HV-VES features (e.g. CMP v2 certificates, and IPv4/IPv6 dual stack networking). This description demonstrates, how to deploy HV-VES collector using Cloudify orchestrator.