SO Component
Dublin
Rollback SO to an older version
Drop SO databases from shared mariadb-galera
Drop SO databases
root@release-rancher:~# kubectl -n onap exec -it dev-mariadb-galera-mariadb-galera-0 -- mysql -uroot -psecretpassword -e "show databases"
+--------------------+
| Database |
+--------------------+
| camundabpmn |
| catalogdb |
| information_schema |
| my-database |
| mysql |
| performance_schema |
| requestdb |
| sdnctl |
+--------------------+
root@release-rancher:~# kubectl -n onap exec -it dev-mariadb-galera-mariadb-galera-0 -- mysql -uroot -psecretpassword -e "drop database camundabpmn"
root@release-rancher:~# kubectl -n onap exec -it dev-mariadb-galera-mariadb-galera-0 -- mysql -uroot -psecretpassword -e "drop database catalogdb"
root@release-rancher:~# kubectl -n onap exec -it dev-mariadb-galera-mariadb-galera-0 -- mysql -uroot -psecretpassword -e "drop database requestdb"
root@staging-rancher:~# kubectl -n onap exec -it dev-mariadb-galera-mariadb-galera-0 -- mysql -uroot -psecretpassword -e "show databases"
+--------------------+
| Database |
+--------------------+
| information_schema |
| my-database |
| mysql |
| performance_schema |
| sdnctl |
+--------------------+
2. Change SO image version in OOM charts
Change image version in charts
root@release-rancher:~/oom/kubernetes/so# find . -name 'values.yaml' -exec grep -Hn "image:" {} \;
./values.yaml:46:image: onap/so/api-handler-infra:1.4.1
./charts/so-monitoring/values.yaml:35:image: onap/so/so-monitoring:1.4.1
./charts/so-bpmn-infra/values.yaml:30:image: onap/so/bpmn-infra:1.4.1
./charts/so-openstack-adapter/values.yaml:29:image: onap/so/openstack-adapter:1.4.1
./charts/so-catalog-db-adapter/values.yaml:30:image: onap/so/catalog-db-adapter:1.4.1
./charts/so-mariadb/values.yaml:33:image: mariadb:10.1.38
./charts/so-vnfm-adapter/values.yaml:29:image: onap/so/vnfm-adapter:1.4.1
./charts/so-sdnc-adapter/values.yaml:30:image: onap/so/sdnc-adapter:1.4.1
./charts/so-vfc-adapter/values.yaml:30:image: onap/so/vfc-adapter:1.4.1
./charts/so-sdc-controller/values.yaml:30:image: onap/so/sdc-controller:1.4.1
./charts/so-request-db-adapter/values.yaml:30:image: onap/so/request-db-adapter:1.4.1
root@release-rancher:~/oom/kubernetes/so# find . -name 'values.yaml' -exec sed -i 's/1\.4\.1/1\.4\.0-20190425T1407/g' {} \;
3. Redeploy SO and run healthcheck
root@release-rancher:~# ./integration/deployment/heat/onap-rke/scripts/redeploy-module.sh so
root@release-rancher:~# oom/kubernetes/robot/ete-k8s.sh onap health-so
Casablanca
Alpine base image is used for SO in Casablanca
Alpine Linux
Enable debug log
Turn on debug by access http://{{so}}:8080/mso/logging/debug from browser. Also you need to add/change line like "log.debug.CustomE2EGetService=true" in /etc/mso/config.d/mso.bpmn.urn.properties to enable Groove file level debugging. Other debug flags are:
log.debug.CreateCustomE2EServiceInstance=true
log.debug.DoCreateE2EServiceInstanceV3=true
log.debug.DecomposeService=true
log.debug.CustomE2EGetService=true
log.debug.CustomE2EPutService=true
log.debug.DoCreateResourcesV3=true
log.debug.CreateSDNCNetworkResource=true
log.debug.CreateVFCNSResource=true
log.debug.DeleteCustomE2EServiceInstance=true
log.debug.DoDeleteE2EServiceInstance=true
log.debug.DoDeleteResourcesV1=true
log.debug.DeleteVFCNSResource=true
log.debug.DeleteSDNCNetworkResource=true
log.debug.CompareModelofE2EServiceInstance=trueA
log.debug.DoCompareModelofE2EServiceInstance=true
log.debug.DoCompareModelVersions=true
log.debug.UpdateCustomE2EServiceInstance=true
log.debug.DoUpdateE2EServiceInstance=true
log.debug.ScaleCustomE2EServiceInstance=true
log.debug.DoScaleE2EServiceInstance=true
log.debug.DoScaleVFCServiceInstance=true
You can also use REST API to turn on debug log at module level:
Turn on debug
Log files
Log file /var/log/ecomp/MSO/BPMN/debugmso.log in testlab_mso_1 container is very helpful to debug issues
Request log under /var/log/ecomp/MSO/ApiHandlerInfra
MariabDB login
To set Mariadb root password inside Mariadb container for the first time
Set Mariadb root password
Important tables are vnf_resource and vnf_recipe
Monitor container disk usage
Workflow Designer - Camunda Modeler
Usage: Use the tool to open an BPMN file. VoLTE use case entry bpmn is under
so project /bpmn/MSOInfrastructureBPMN/src/main/resources/process/CreateCustomE2EServiceInstance.bpmn. Look at the right side menu, it shows the name and type of subprocess or script being invoked from bpmn workflow