HI Guys,

Greetings!!!!

I am currently working on ONAP deployment using Kubernetes. I am new to these 
things.
I am referring below mentioned wiki page for ONAP deployment using K8s.

https://wiki.onap.org/display/DW/ONAP+on+Kubernetes

We are facing an issue while deploying pods mainly SDC using Kubernetes.

root@k8s-2:/# kubectl get pods --all-namespaces -a
NAMESPACE             NAME                                    READY     STATUS  
          RESTARTS   AGE
kube-system           heapster-4285517626-km9jg               1/1       Running 
          8          2h
kube-system           kube-dns-638003847-z8gnh                3/3       Running 
          23         2h
kube-system           kubernetes-dashboard-716739405-xn4hx    1/1       Running 
          7          2h
kube-system           monitoring-grafana-2360823841-fsznx     1/1       Running 
          7          2h
kube-system           monitoring-influxdb-2323019309-qks0t    1/1       Running 
          7          2h
kube-system           tiller-deploy-737598192-wlhmk           1/1       Running 
          7          2h
onap                  config                                  0/1       
Completed         0          1h
onap-aai              aai-resources-898583818-6ptc4           2/2       Running 
          0          1h
onap-aai              aai-service-749944520-0jhxf             1/1       Running 
          0          1h
onap-mso              mariadb-829081257-vx3n1                 1/1       Running 
          0          1h
onap-mso              mso-821928192-qp6tn                     2/2       Running 
          0          1h
onap-sdc              sdc-be-754421819-phch8                  0/2       
PodInitializing   0          1h
onap-sdc              sdc-cs-2937804434-qn1q6                 1/1       Running 
          0          1h
onap-sdc              sdc-es-2514443912-c7fmd                 1/1       Running 
          0          1h
onap-sdc              sdc-fe-902103934-rlbhv                  0/2       
Init:0/1          8          1h
onap-sdc              sdc-kb-281446026-tvg8r                  1/1       Running 
          0          1h

As can see that all others pods are going to be upped except onap-sdc.
It seems to be a problem in sdc-be container.

When we see the logs of this container we can say that there are issues in some 
chef scripts.

Please find below the steps to check the logs:-


1)      Run kubectl command to check the pods status.

             kubectl get pods --all-namespaces -a

onap-mso              mso-821928192-qp6tn                     2/2       Running 
          0          1h
onap-sdc              sdc-be-754421819-phch8                  0/2       
PodInitializing   0          1h
onap-sdc              sdc-cs-2937804434-qn1q6                 1/1       Running 
          0          1h
onap-sdc              sdc-es-2514443912-c7fmd                 1/1       Running 
          0          1h


2)      Using docker ps -a command to list the containers.

root@k8s-2:/# docker ps -a | grep sdc-be
347b4da64d9c        
nexus3.onap.org:10001/openecomp/sdc-backend@sha256:d4007e41988fd0bd451b8400144b27c60b4ba0a2e54fca1a02356d8b5ec3ac0d
            "/root/startup.sh"        53 minutes ago      Up 53 minutes         
                                              
k8s_sdc-be_sdc-be-754421819-phch8_onap-sdc_d7e74e36-da76-11e7-a79e-02ffdf18df1f_0
2b4cf42b163a        
oomk8s/readiness-check@sha256:ab8a4a13e39535d67f110a618312bb2971b9a291c99392ef91415743b6a25ecb
                                 "/root/ready.py --con"    57 minutes ago      
Exited (0) 53 minutes ago                                           
k8s_sdc-dmaap-readiness_sdc-be-754421819-phch8_onap-sdc_d7e74e36-da76-11e7-a79e-02ffdf18df1f_3
a066ef35890b        
oomk8s/readiness-check@sha256:ab8a4a13e39535d67f110a618312bb2971b9a291c99392ef91415743b6a25ecb
                                 "/root/ready.py --con"    About an hour ago   
Exited (0) About an hour ago                                        
k8s_sdc-be-readiness_sdc-be-754421819-phch8_onap-sdc_d7e74e36-da76-11e7-a79e-02ffdf18df1f_0
1fdc79e399fd        gcr.io/google_containers/pause-amd64:3.0                    
                                                                   "/pause"     
             About an hour ago   Up About an hour                               
                     
k8s_POD_sdc-be-754421819-phch8_onap-sdc_d7e74e36-da76-11e7-a79e-02ffdf18df


3)      Use this command to see the docker logs

Docker logs 347b4da64d9c        | grep error



4)      Observe the error logs and exceptions.

Currently we are getting below mentioned exceptions:

Recipe Compile Error in 
/root/chef-solo/cache/cookbooks/sdc-catalog-be/recipes/BE_2_setup_configuration
2017-12-06T11:53:48+00:00] ERROR: bash[upgrade-normatives] 
(sdc-normatives::upgrade_Normatives line 7) had an error: 
Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but 
received '1'

org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.openecomp.sdcrests.health.rest.services.HealthCheckImpl]: Constructor 
threw exception; nested exception is java.lang.ExceptionInInitializerError

Am I doing something wrong?
Could you please help me to resolve this issue.

Regards
Atul
This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement, you may review at 
https://www.amdocs.com/about/email-disclaimer 
<https://www.amdocs.com/about/email-disclaimer>

Amdocs Development Centre India Private Limited having CIN: 
U72200PN2004PTC0188320 converted into Amdocs Development Centre India LLP (A 
limited liability partner­ship with LLP Identification Number: AAI-6901 
effective 28th Feb 2017)
_______________________________________________
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to