Uploaded image for project: 'ONAP Operations Manager'
  1. ONAP Operations Manager
  2. OOM-514

Readiness prob fails sometimes even though the relevant pods are running

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: Beijing Release
    • Fix Version/s: Beijing Release
    • Labels:
      None
    • Sprint:
      OOM Sprint 8

      Description

      [root@kubernetes-master-moshemadrid-27684-12-13-17 ~]# kubectl get po -n onap-sdnc
      NAME READY STATUS RESTARTS AGE
      sdnc-3633877749-n86zz 0/2 Init:0/1 4 40m
      sdnc-dbhost-947212202-h8jxn 1/1 Running 0 14h
      sdnc-dgbuilder-3492608920-qdglh 1/1 Running 0 14h
      sdnc-portal-4235267674-hb3vq 1/1 Running 0 14h

      sdnc-readiness:
      Container ID: docker://b68bdcab48c8365a28949726d14e5a66099c77963a65392c09454c69040aa734
      Image: oomk8s/readiness-check:1.0.0
      Image ID: docker-pullable://docker.io/oomk8s/readiness-check@sha256:ab8a4a13e39535d67f110a618312bb2971b9a291c99392ef91415743b6a25ecb
      Port: <none>
      Command:
      /root/ready.py
      Args:
      --container-name
      sdnc-db-container
      State: Running
      Started: Thu, 14 Dec 2017 11:13:52 +0200
      Last State: Terminated
      Reason: Error
      Exit Code: 1
      Started: Thu, 14 Dec 2017 11:03:48 +0200
      Finished: Thu, 14 Dec 2017 11:13:51 +0200
      Ready: False
      Restart Count: 4
      Environment:
      NAMESPACE: onap-sdnc (v1:metadata.namespace)
      Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-dsdxt (ro)

       

      Errors:

      [root@kubernetes-master-moshemadrid-27684-12-13-17 ~]# k logs -n onap-sdnc sdnc-3633877749-n86zz -c sdnc-readiness
      2017-12-14 09:03:49,412 - INFO - Checking if sdnc-db-container is ready
      2017-12-14 09:03:49,532 - ERROR - Exception when calling list_namespaced_pod: 'NoneType' object is not iterable
      2017-12-14 09:03:54,539 - INFO - Checking if sdnc-db-container is ready
      2017-12-14 09:03:54,640 - ERROR - Exception when calling list_namespaced_pod: 'NoneType' object is not iterable
      2017-12-14 09:03:59,644 - INFO - Checking if sdnc-db-container is ready
      2017-12-14 09:03:59,744 - ERROR - Exception when calling list_namespaced_pod: 'NoneType' object is not iterable
      2017-12-14 09:04:04,749 - INFO - Checking if sdnc-db-container is ready

      Need to add error handling to readiness container.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                kerenj Karen Joseph
                Reporter:
                BorislavG Borislav Glozman
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: