Fix component startup
[vfc/nfvo/driver/vnfm/svnfm.git] / nokiav2 / docs / fix.rst
1 Fix ONAP installation
2 =====================
3
4 This document is intended to help to fix common problems in the ONAP released software. Since the ONAP software in some
5 cases uses "snapshots" or "master" these steps may not be 100 percent accurate.
6
7 Amsterdam release
8 -----------------
9
10 - Create SDC consumer in SDC (username = SDC  password=SDC )
11
12   - curl -X POST -i -H "Accept: application/json; charset=UTF-8" -H "Content-Type: application/json" -H "USER_ID: jh0003" http://sdc.api.simpledemo.onap.org:8080/sdc2/rest/v1/consumers/ -d '{"consumerName": "SDC", "consumerSalt": "00ae7619efccee9bf5b53d7f72c3cdf7","consumerPassword": "516e53e4b822601ef58d96abcc054709d15cb42179aa3b6302f48c6c7cf575a6"}'
13
14 - Log into the multi-service node via SSH
15
16   - Fix VF-C
17
18     - docker exec -it `docker ps | grep nslcm | awk '{print $1}'` /bin/bash
19
20     - vim.tiny /service/vfc/nfvo/lcm/lcm/pub/config/config.py
21
22       - AAI_BASE_URL = "https://10.0.1.1:8443/aai/v11"
23
24       - SDC_BASE_URL = "https://10.0.3.1:8443/sdc/v1"
25
26     - vim.tiny /service/vfc/nfvo/lcm/lcm/ns/vnfs/grant_vnfs.py
27
28       - Fix according to: https://gerrit.onap.org/r/#/c/27941/3/lcm/ns/vnfs/grant_vnfs.py
29
30     - vim.tiny /service/vfc/nfvo/lcm/lcm/ns/vnfs/notify_lcm.py
31
32       - Fix according to: https://gerrit.onap.org/r/#/c/25447/1/lcm/ns/vnfs/notify_lcm.py
33
34     - vim.tiny /service/vfc/nfvo/lcm/lcm/ns/ns_delete.py
35
36       - Fix according to: https://gerrit.onap.org/r/#/c/25373/
37
38     - exit
39
40   - Fix catalog
41
42     - docker exec -it `docker ps | grep catalog | awk '{print $1}'` /bin/bash
43
44       - vim.tiny /service/vfc/nfvo/catalog/catalog/pub/config/config.py
45
46         - SDC_BASE_URL = "https://10.0.3.1:8443"
47
48       - vim.tiny /service/vfc/nfvo/catalog/catalog/pub/utils/toscaparser/vnfdmodel.py
49
50         - Fix according to: https://gerrit.onap.org/r/#/c/27937/1/catalog/pub/utils/toscaparser/vnfdmodel.py
51
52       - vim.tiny /service/vfc/nfvo/catalog/catalog/pub/utils/toscaparser/basemodel.py
53
54         - Fix according to: https://gerrit.onap.org/r/#/c/25157/1/catalog/pub/utils/toscaparser/basemodel.py
55
56       - exit
57
58   - Fix multi cloud (required if cloud endpoint is over HTTPS)
59
60     - docker exec -it `docker ps | grep ocata | awk '{print $1}'` /bin/bash
61
62       - apt-get install vim
63
64       - vim /opt/ocata/lib/newton/newton/requests/views/util.py
65
66       - Change from return session.Session(auth=auth) to: session.Session(auth=auth, verify=False)
67
68       - exit
69
70 - Specify quotas for the tenant (VF-C resource managed does not handle unlimited quotas)
71
72 Beijing release
73 ---------------
74
75 - create SDC user (SDC:SDC)
76
77   - curl -X POST -i -H "Accept: application/json; charset=UTF-8" -H "Content-Type: application/json" -H "USER_ID: jh0003" http://sdc.api.simpledemo.onap.org:8080/sdc2/rest/v1/consumers/ -d '{"consumerName": "SDC", "consumerSalt": "00ae7619efccee9bf5b53d7f72c3cdf7","consumerPassword": "516e53e4b822601ef58d96abcc054709d15cb42179aa3b6302f48c6c7cf575a6"}'
78
79 - Log into the multi-service node via SSH
80
81   - Fix catalog
82
83     - docker exec -it `docker ps | grep catalog | awk '{print $1}'` /bin/bash
84
85       - vim.tiny /service/vfc/nfvo/catalog/catalog/pub/config/config.py
86
87         - SDC_BASE_URL = "https://10.0.3.1:8443"
88
89   - Fix VF-C
90
91     - docker exec -it `docker ps | grep nslcm | awk '{print $1}'` /bin/bash
92
93     - vim.tiny /service/vfc/nfvo/lcm/lcm/pub/config/config.py
94
95       - AAI_BASE_URL = "https://10.0.1.1:8443/aai/v11"
96
97       - SDC_BASE_URL = "https://10.0.3.1:8443/sdc/v1"
98
99
100
101 https://gerrit.onap.org/r/#/c/44203/