SDC on OOM





Rancher access

the IP changes according to the env where the setup is created, use the ui to identify the ip where Rancher is installed and access its external IP.



K8 access

the IP changes according to the env where the setup is created, use the ui to identify the ip where Rancher is installed and access its external IP.



SDC docker dependency structure and troubleshooting info:



Useful commends

Retrieve all pods in the system in the ONAP name space or use --all-namespace to show pods from all namespaces



root@rancher:~# kubectl get pods -n onap

NAME                                                                         READY     STATUS             RESTARTS   AGE

dev-sdc-be-7dfd76f8b7-hc26c                                       2/2            Running                     0          2d

dev-sdc-cs-7d7787b7f5-6ch55                                       1/1            Running                     0          2d

dev-sdc-es-9477ccd7c-8jt5p                                          1/1            Running                     0          2d

dev-sdc-fe-59dbb59656-v7kwn                                       2/2           Running                      0          2d

dev-sdc-kb-7cfbd85c7b-pgpnj                                        1/1            Running                     0          2d

dev-sdc-onboarding-be-745c794884-6c9tf                        2/2            Running                     0          2d

dev-sdc-wfd-6f7c9d778b-hbzlf                                       1/1            Running                     0          2d





For more info on the pods







Retrieve all the services defined in the system



View k8 context



View the helm chart releases and there state :



View the repositories from which charts are retrieved



Config upgrade

should use the local/onap syntax to let K8 decide based on the parent chart (local/onap)



update container

disable the pods wait for pods to stop and start them

Update config map

in case you want to update the env json for sdc.

update the file under oom/kubernetes/sdc/resources/config/environments/AUTO.json

stop pods make the charts and start the pods



To check status of a pod
Log into the docker in a pod



Log into ta specific container in a pod

in case there a number of containers in the same pod  use -c



View container logs

in case there a number of containers in the same pod  use -c







show config maps
View config map as yaml



Delete full deploy

then check that all pods are stopped.

look for all Terminating to be gone if not wait till they are.



Look for persistent volumes claims

that have not been removed.



Delete them if the do not go down



Look for persistent volumes that have not been removed.

Remove them persistent volumes

To delete a pod stuck in terminating



full install

 

configuring access to SDC using portal

portal application is the only on with an exposed external port.

Look for the external IP of the node that has portal IP 10.0.0.4 in the UI interface for the instances.

kubectl get service -o wide -n onap

define the IP in you local machine to allow so that the browser can resolve it to the correct IP

10.12.6.37          portal.api.simpledemo.onap.org

10.12.6.37          sdc.api.fe.simpledemo.onap.org



to access the portal usethe link below after the resolving has been updated.