Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents


Rancher access

...

http://10.12.6.190:8080/admin/access/

Note

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

http://10.12.6.190:8080/r/projects/1a7/kubernetes-dashboard:9090/#!/service?namespace=default

Note

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:

SDC Troubleshooting

...


Useful commends

...

...

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


Info

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

NAME                                                                         READY     STATUS             RESTARTS   AGE

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

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

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

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

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

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

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

...



For more info

...

on the pods


Info

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

NAME                                                                         READY       STATUS              RESTARTS      AGE               IP              NODE

dev-sdc-be-7dfd76f8b7-hc26c                                      hc26c                                          2/2           Running                    0                     2d                2d          10.42.202.150   150     k8s-3

dev-sdc-cs-7d7787b7f5-6ch55                                     6ch55                                          1/1           Running                    0                     2d        2d          10.42.100.30     30      k8s-3

dev-sdc-es-9477ccd7c-8jt5p                                        8jt5p                                             1/1            1           Running                    0         0               2d             10.42.74.202   202      k8s-4

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

dev-sdc-kb-7cfbd85c7b-pgpnj                                       pgpnj                                           1/1           Running                    0         Running                    0               2d       2d         10.42.44.238     238      k8s-9

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

dev-sdc-wfd-6f7c9d778b-hbzlf                                      hbzlf                                          1/1           Running                     Running                    0               2d          10.42.113.182   182    k8s-8

...



Retrieve all the services defined in the system

...

Info

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

NAME                            TYPE           CLUSTER-IP      EXTERNAL-IP                            PORT(S)                                                                      AGE

sdc-be                     

       

   NodePort         10.43.1.23     

  

      <none>                                 8443:30204/TCP,8080:30205/

TCP                                   

TCP                                       2d

sdc-cs                         ClusterIP      

ClusterIP    

 

  

10.43.204.60  

 

      <none>                                 9160/TCP,9042/TCP                                                          2d

sdc-es                    

  

    ClusterIP      

  

  10.43.48.202 

  

       <none>                                 9200/TCP,9300/TCP                                                          2d

sdc-

fe                

fe                        

NodePort         

NodePort         10.43.43.115 

  

        <none>                                 8181:30206/TCP,9443:30207/

TCP                                   

TCP                                       2d

sdc-

kb                

kb                        

ClusterIP         

ClusterIP         10.43.160.51  

 

      <none>                                 5601/

TCP                                                                         

TCP                                                                        2d

sdc-onboarding-

be     ClusterIP         

be         ClusterIP         10.43.191.47         <none>      

<none>                               

                          8445/TCP,8081/TCP                                                          2d

sdc-wfd                

  

 

NodePort     

    NodePort         10.43.220.

184   <none>                               

184        <none>                                 8080:30256/

TCP                                                                2d

TCP                                                               2d


View k8 context
Info

root@rancher:~# kubectl config get-contexts

CURRENT   NAME      CLUSTER   AUTHINFO   NAMESPACE

*                  oom            oom          oom


View the helm chart releases and there state :
Info

root@k8s:~# helm list

NAME    REVISION            UPDATED                          STATUS                CHART                 NAMESPACE

dev        2            Mon Apr 16 23:01:06 2018          FAILED  onap-2.0.0        onap    

dev        9            Tue Apr 17 12:59:25 2018            DEPLOYED                 onap-2.0.0                onap


View the repositories from which charts are retrieved
Info
root@rancher:~# helm repo list
NAME    URL
stable  https://kubernetes-charts.storage.googleapis.com
local   http://127.0.0.1:8879


Config upgrade

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

Info
helm upgrade -i dev local/onap --namespace onap -f integration-override.yaml


update container

disable the pods wait for pods to stop and start them

Info
titleBeijing
cd ~
helm upgrade -i dev local/onap --namespace onap -f integration-override.yaml --set sdc.enabled=false
helm upgrade -i dev local/onap --namespace onap -f integration-override.yaml --set sdc.enabled=true
Info
titleCasablanca
helm list -a
..
dev-sdc         2               Wed Oct 17 18:06:08 2018        DEPLOYED        sdc-3.0.0               onap
..
helm del dev-sdc --purge

helm list -a //to confirm its gone

kubectl get pods -n onap | grep sdc //check the pods are done

helm deploy dev local/onap -f /root/integration-override.yaml --namespace onap
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

Info
helm upgrade -i dev local/onap --namespace onap -f /root/integration-override.yaml --set sdc.enabled=false
make /root/oom/kubernetes/sdc
make /root/oom/kubernetes/onap
helm upgrade -i dev local/onap --namespace onap -f /root/integration-override.yaml --set sdc.enabled=true


To check status of a pod
Info
kubectl -n onap describe pod dev-robot-5cfddf87fb-65zvv
Log into the docker in a pod
Info
kubectl -n onap exec -it dev-sdc-onboarding-be-745c794884-ss8w4 bash


Log into ta specific container in a pod

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

Info
kubectl -n onap exec -it dev-sdc-onboarding-be-745c794884-ss8w4 -c <container name as it is defined int the deployment yaml for the pod> bash


View container logs

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


Info
kubectl -n onap logs -it dev-sdc-onboarding-be-745c794884-ss8w4 -c <container name as it is defined int the deployment yaml for the pod>



show config maps
Info
kubectl get configMap -n onap
View config map as yaml
Info
kubectl get configMaps -n onap dev-sdc-environments-configmap -o yaml


Delete full deploy

then check that all pods are stopped.

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

Info

helm del dev --purge

kubectl get pods --all-namespaces -o=wide


Look for persistent volumes claims

that have not been removed.

Info
       kubectl -n onap get pvc


Delete them if the do not go down
Info
kubectl -n onap delete pvc  dev-sdnc-db-data-dev-sdnc-db-0


Look for persistent volumes that have not been removed.
Info
kubectl -n onap get pv

Remove them persistent volumes
Info
kubectl -n onap delete  pv  pvc-c0180abd-4251-11e8-b07c-02ee3a27e357

To delete a pod stuck in terminating
Info
kubectl delete  pod dev-sms-857f6dbd87-6lh9k -n onap


full install
Info
helm upgrade -i dev local/onap --namespace onap -f integration-override.yaml
 

configuring access to SDC using portal

...

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

...

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

Info

http://portal.api.simpledemo.onap.org:30215/ONAPPORTAL/login.htm

https://portal.api.simpledemo.onap.org:

8989

30225/ONAPPORTAL/login.htm