Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-619

cbopinfo: Default value for operator-image is not taken into account during log collection

    XMLWordPrintable

Details

    Description

       

      Deployment description:

      couchbase-operator]$ kubectl get deploy
      NAME                 DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
      couchbase-operator   1         1         1            1           26s
       
      couchbase-operator]$ kubectl get pods
      NAME                                  READY     STATUS    RESTARTS   AGE
      couchbase-operator-6cc895594f-whzwt   1/1       Running   0          28s
       
      couchbase-operator]$ kubectl describe pod/couchbase-operator-6cc895594f-whzwt
      Name:           couchbase-operator-6cc895594f-whzwt
      Namespace:      ashwin
      Node:           minikube/192.168.99.100
      Start Time:     Mon, 08 Oct 2018 11:35:56 +0530
      Labels:         app=couchbase-operator
                      pod-template-hash=2774511509
      Annotations:    <none>
      Status:         Running
      IP:             172.17.0.4
      Controlled By:  ReplicaSet/couchbase-operator-6cc895594f
      Containers:
        couchbase-operator:
          Container ID:  docker://00ce7ae4336643fb1ecc7574f3310505f0399755f9bb2f77683c3fb376dde047
          Image:         couchbase/couchbase-operator:v1
          Image ID:      docker://sha256:1d388e7546ab675c96fbcd1cc702c4b056f6b85c52916061145c64b26d8de74b
          Port:          8080/TCP
          Command:
            couchbase-operator
          Args:
            -create-crd
            -enable-upgrades=false
          State:          Running
            Started:      Mon, 08 Oct 2018 11:35:57 +0530
          Ready:          True
          Restart Count:  0
          Readiness:      http-get http://:readiness-port/readyz delay=3s timeout=1s period=3s #success=1 #failure=19
          Environment:
            MY_POD_NAMESPACE:  ashwin (v1:metadata.namespace)
            MY_POD_NAME:       couchbase-operator-6cc895594f-whzwt (v1:metadata.name)
          Mounts:
            /var/run/secrets/kubernetes.io/serviceaccount from couchbase-operator-token-wwgpg (ro)
      Conditions:
        Type           Status
        Initialized    True
        Ready          True
        PodScheduled   True
      Volumes:
        couchbase-operator-token-wwgpg:
          Type:        Secret (a volume populated by a Secret)
          SecretName:  couchbase-operator-token-wwgpg
          Optional:    false
      QoS Class:       BestEffort
      Node-Selectors:  <none>
      Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                       node.kubernetes.io/unreachable:NoExecute for 300s
      Events:
        Type     Reason                 Age                From               Message
        ----     ------                 ----               ----               -------
        Normal   Scheduled              42s                default-scheduler  Successfully assigned couchbase-operator-6cc895594f-whzwt to minikube
        Normal   SuccessfulMountVolume  42s                kubelet, minikube  MountVolume.SetUp succeeded for volume "couchbase-operator-token-wwgpg"
        Normal   Pulled                 41s                kubelet, minikube  Container image "couchbase/couchbase-operator:v1" already present on machine
        Normal   Created                41s                kubelet, minikube  Created container
        Normal   Started                41s                kubelet, minikube  Started container
        Warning  Unhealthy              24s (x5 over 36s)  kubelet, minikube  Readiness probe failed: HTTP probe failed with statuscode: 500

      Cbopinfo version:

      couchbase-operator]$ ./build/bin/cbopinfo --version cbopinfo version 1.1.0 (master 0b42a37d3d3628c7c506d18fc2dc48a5e342ddda)

       

      Attachments

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

        Activity

          simon.murray Simon Murray added a comment -

          This command is designed for users who are using couchbase/operator:1.0.0 from official repositories, you are using a non-standard name/tag couchbase/operator:v1

          simon.murray Simon Murray added a comment - This command is designed for users who are using couchbase/operator:1.0.0 from official repositories, you are using a non-standard name/tag couchbase/operator:v1

          But the PRD says it defaults to couchbase/couchbase-operator:v1

           

           

          --operator-image
          Specifies the operator container name to look for when collecting extended resources from deployments. This is particularly useful when versions change or customers rename images. Defaults to couchbase/couchbase-operator:v1.

           

           

          ashwin.govindarajulu Ashwin Govindarajulu added a comment - But the PRD says it defaults to couchbase/couchbase-operator:v1   https://docs.google.com/document/d/1swraowWhTuNmP-9bb8FytbrW5tkliAVhDPd1_ju2Wgs/edit#heading=h.fbdptbss5xak   --operator-image Specifies the operator container name to look for when collecting extended resources from deployments. This is particularly useful when versions change or customers rename images. Defaults to couchbase/couchbase-operator:v1.    
          simon.murray Simon Murray added a comment -

          Not any more it doesn't

          simon.murray Simon Murray added a comment - Not any more it doesn't

          With image named as "couchbase/operator:1.0.0" logs are collected as expected. cbopinfo-20181009T121120+0530.tar.gz is the file collected with default values.

          Marking this ticket as closed.

          ashwin.govindarajulu Ashwin Govindarajulu added a comment - With image named as "couchbase/operator:1.0.0" logs are collected as expected. cbopinfo-20181009T121120+0530.tar.gz is the file collected with default values. Marking this ticket as closed.

          People

            mikew Mike Wiederhold [X] (Inactive)
            ashwin.govindarajulu Ashwin Govindarajulu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty