ONAP Casablanca Troubleshooting

Problems/Issues encountered or steps required when using ONAP Casablanca after a fresh installation


Problem creating topics in DMaaP

1. Restart DMaaP

Delete DMaaP-MR POD Delete DMaaP-Kafka POD Delete DMaaP-Zookeeper POD Recreate DMaaP-Zookeeper POD Recreate DMaaP-Kafka POD Recreate DMaaP-MR POD

2. Make sure there are no conflicting topics, e.g. unauthenticated_PNF_READY conflicts with unauthenticated.PNF_READY

3. Delete conflicting topics in dmaap-zookeeper database (no delete topic API in Casablanca release)

Create a complex in AAI

See How-To: Register a VIM/Cloud Instance to ONAP

PUT https://aai.api.simpledemo.openecomp.org:30233/aai/v14/cloud-infrastructure/complexes/complex/clli1 Authorization:Basic QUFJOkFBSQ== X-TransactionId:jimmy-postman X-FromAppId:AAI Content-Type:application/json Accept:application/json Cache-Control:no-cache Body: { "physical-location-id": "clli1", "data-center-code": "data-center-code-BINZ", "complex-name": "clli1", "identity-url": "identity-url-BINZ", "physical-location-type": "physical-location-type-val-28399", "street1": "example-street1-val-28399", "street2": "example-street2-val-28399", "city": "example-city-val-28399", "state": "example-state-val-28399", "postal-code": "example-postal-code-val-28399", "country": "example-country-val-28399", "region": "example-region-val-28399", "latitude": "1111", "longitude": "2222", "elevation": "example-elevation-val-28399", "lata": "example-lata-val-28399" }

Register a VIM via ESR GUI: http://msb.api.discovery.simpledemo.onap.org:30280/iui/aai-esr-gui/extsys/vim/vimView.html  

Policy 

See https://onap.readthedocs.io/en/casablanca/submodules/policy/engine.git/docs/platform/swarch_srm.html#before-installing-policies 

CLAMP certificate to access web portal

See Control Loop Flows and Models for Casablanca#Configure 

CLDS URL: https://clamp.api.simpledemo.onap.org:30258/designer/index.html

VID Portal. Problem with browser certificate

Add security exception in browser for VID URL https://vid.api.simpledemo.onap.org:30200/vid/welcome.htm

Demo init script fails

We assume ONAP is installed using the Integration team script (Heat + OOM deployment): https://github.com/onap/integration/tree/master/deployment/heat/onap-oom/scripts



demo-k8s.sh onap init
root@oom-rancher:~/oom/kubernetes/robot# ./demo-k8s.sh onap init Number of parameters: 2 KEY: init ++ kubectl --namespace onap get pods ++ sed 's/ .*//' ++ grep robot + POD=dev-robot-robot-f97bcf797-gg788 + ETEHOME=/var/opt/OpenECOMP_ETE ++ kubectl --namespace onap exec dev-robot-robot-f97bcf797-gg788 -- bash -c 'ls -1q /share/logs/ | wc -l' + export GLOBAL_BUILD_NUMBER=14 + GLOBAL_BUILD_NUMBER=14 ++ printf %04d 14 + OUTPUT_FOLDER=0014_demo_init + DISPLAY_NUM=104 + VARIABLEFILES='-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py' + kubectl --namespace onap exec dev-robot-robot-f97bcf797-gg788 -- /var/opt/OpenECOMP_ETE/runTags.sh -V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py -d /share/logs/0014_demo_init -i InitDemo --display 104 Starting Xvfb on display :104 with res 1280x1024x24 Executing robot tests at log level TRACE ============================================================================== Testsuites ============================================================================== Testsuites.Demo :: Executes the VNF Orchestration Test cases including setu... ============================================================================== Initialize Customer And Models | FAIL | '200 <= 401 < 300' should be true. ------------------------------------------------------------------------------ Testsuites.Demo :: Executes the VNF Orchestration Test cases inclu... | FAIL | 1 critical test, 0 passed, 1 failed 1 test total, 0 passed, 1 failed ============================================================================== Testsuites | FAIL | 1 critical test, 0 passed, 1 failed 1 test total, 0 passed, 1 failed ============================================================================== Output: /share/logs/0014_demo_init/output.xml Log: /share/logs/0014_demo_init/log.html Report: /share/logs/0014_demo_init/report.html

Solution

check cloud related config (e.g. OpenStack) in ~/integration-override.yaml file and redeploy affected components by running:



./demo-k8s.sh onap init_robot


SDC distribution fails

./ete-k8s.sh onap health



Check zookeper image version (=3.4.9):




Helm Error: trying to send message larger than max

Error: trying to send message larger than max

Solution: delete old configmap versions and limit history

history max



https://github.com/helm/helm/issues/2332#issuecomment-336565784 

delete old configmap versions

Update Edge Rules in running AAI deployment (OOM, Casablanca branch)

Note: this is not a recommended solution, as it is not persistent after PODs deletion. See https://lists.onap.org/g/onap-discuss/message/16171 and AAI-2154: Add EdgeRules to cp/generic-vnf/pnf to support BBS use caseClosed

1) Add new edge rules to aai-traversal, aai-resources and aai-graphadmin containers. For instance:

2) Run createDBSchema script in aai-graphadmin

3) Restart docker containers aai-traversalaai-resources and aai-graphadmin using docker restart



Change PRH (or any DCAE platform mS) docker image version in a running DCAE deployment (OOM, Casablanca branch) using cloudify manager

Install Cloudify blueprint

cloudify blueprint installation