summaryrefslogtreecommitdiffstats
path: root/docs/files/VNFSDK-Marketplace-userguide-installation.rst
blob: 8fb5764f319645ffddb24ab2164b1308de01c150 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
.. Copyright 2020 Nokia

VNF SDK OOM Installation
========================


Prerequisite
------------

    All operations must be executed at RKE - log in at RKE.

How to install VNF SDK from OOM:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**1. Uninstall all components**

    helm undeploy dev --purge

    TIP: Operation takes about 30-60 minutes. Please wait until it ends.

**2. Clear all what have left**

    Execute below command:

    for resource in deployment statefulset job pod pvc pv; do kubectl -n onap delete $resource --all --force --grace-period=0 & done

    cd /dockerdata-nfs/dev/
    sudo rm -rf *

**3. Remove namespace**

    kubectl delete namespace onap

**4. After changes in component in directory oom/kubernetes execute:**

    make vnfsdk

    NOTE:
    This folder is in /home/ubuntu folder
    If you need to change a refrepo image or do other modifications, you need to make changes in values.yaml. Mentioned file is in /home/ubuntu/oom/kubernetes/vnfsdk.

**5. Then you have to make entire ONAP project**

    make onap -e SKIP_LINT=TRUE

**6. Install ONAP on lab:**

    If there is file deploy-onap.sh in directory oom/kubernetes, pls execute below command.

    ./deploy-onap.sh

    otherwise:

    helm deploy dev local/onap --namespace onap -f onap/resources/overrides/onap-all.yaml -f ./openstack-30-elalto.yaml  --timeout 1000 --verbose 2>&1 | tee ~/helm-installation-manual.log



How to upgrade Refrepo in VNF SDK from OOM:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


**1. Edit Refrepo image in VNF SDK Ddeployment**

     kubectl -n onap edit deployment dev-vnfsdk

    then change:

.. code-block:: yaml

        image: nexus.onap.dyn.nesc.nokia.net:10001/onap/vnfsdk/refrepo:1.6.0-STAGING-latest
        imagePullPolicy: Always
        name: vnfsdk

**2. Check if VNF SDK works**

    curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET https://WORKER_IP:REFREPO_PORT/onapapi/vnfsdk-marketplace/v1/vtp/scenarios

    NOTE: To get information about REFREPO_PORT, pls execute:

        kubectl -n onap get service | grep refrepo

**3. Enter at vnfsdkmarketplace UI**

    In your browser go to: http://WORKER_IP:REFREPO_PORT/onapui/vnfmarket



Getting into VNF SDK pod
~~~~~~~~~~~~~~~~~~~~~~~~


**1. Enter the VNF SDK pod**

    kubectl -n onap exec -it <vnfsdk pod> /bin/bash

    NOTE:
    To find <vnfsdk  pod> execute: kubectl -n onap get pod | grep vnfsdk

**2. To check logs go to /service/logs**

    cd /service/logs

    and then you can see vnfsdkmarketplace logs executing:

    cat vnfsdkmarketplace.log

    or catalina logs executing:

    cat catalina.out