Uploaded image for project: 'Cloud Dev'
  1. Cloud Dev
  2. CLOUD-97

[PSMDB] Replset watcher not stopped at CR delete

    XMLWordPrintable

    Details

      Description

      When deleting the CR the watch replset-watcher should also stop to avoid these errors:

      time="2019-01-17T19:04:47Z" level=info msg="Replset PRIMARY" host="my-cluster-name-rs0-1.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017" replset=rs0 state=RUNNING task=my-cluster-name-rs0-1
      time="2019-01-17T19:04:47Z" level=info msg="Replset SECONDARY" host="my-cluster-name-rs0-0.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017" replset=rs0 state=RUNNING task=my-cluster-name-rs0-0
      time="2019-01-17T19:04:47Z" level=info msg="Replset SECONDARY" host="my-cluster-name-rs0-2.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017" replset=rs0 state=RUNNING task=my-cluster-name-rs0-2
      time="2019-01-17T19:04:51Z" level=info msg="received deleted event for my-cluster-name"
      time="2019-01-17T19:04:52Z" level=info msg="Getting pods from source" source=k8s url="tcp://172.30.0.1:443"
      time="2019-01-17T19:04:57Z" level=info msg="Getting pods from source" source=k8s url="tcp://172.30.0.1:443"
      time="2019-01-17T19:04:57Z" level=error msg="Error connecting to mongodb replset: no reachable servers" addrs="[my-cluster-name-rs0-0.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017 my-cluster-name-rs0-1.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017 my-cluster-name-rs0-2.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017]" replset=rs0 ssl=false
      time="2019-01-17T19:04:57Z" level=info msg="Reconnecting to mongodb replset" addrs="[my-cluster-name-rs0-0.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017 my-cluster-name-rs0-1.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017 my-cluster-name-rs0-2.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017]" replset=rs0 ssl=false
      time="2019-01-17T19:05:02Z" level=info msg="Getting pods from source" source=k8s url="tcp://172.30.0.1:443"
      time="2019-01-17T19:05:02Z" level=error msg="Error connecting to mongodb replset: no reachable servers" addrs="[my-cluster-name-rs0-0.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017 my-cluster-name-rs0-1.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017 my-cluster-name-rs0-2.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017]" replset=rs0 ssl=false
      time="2019-01-17T19:05:07Z" level=info msg="Getting pods from source" source=k8s url="tcp://172.30.0.1:443"
      time="2019-01-17T19:05:07Z" level=error msg="Error connecting to mongodb replset: no reachable servers" addrs="[my-cluster-name-rs0-0.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017 my-cluster-name-rs0-1.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017 my-cluster-name-rs0-2.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017]" replset=rs0 ssl=false
      time="2019-01-17T19:05:12Z" level=info msg="Getting pods from source" source=k8s url="tcp://172.30.0.1:443"
      time="2019-01-17T19:05:12Z" level=error msg="Error connecting to mongodb replset: no reachable servers" addrs="[my-cluster-name-rs0-0.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017 my-cluster-name-rs0-1.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017 my-cluster-name-rs0-2.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017]" replset=rs0 ssl=false
      time="2019-01-17T19:05:17Z" level=info msg="Getting pods from source" source=k8s url="tcp://172.30.0.1:443"
      time="2019-01-17T19:05:17Z" level=error msg="Error connecting to mongodb replset: no reachable servers" addrs="[my-cluster-name-rs0-0.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017 my-cluster-name-rs0-1.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017 my-cluster-name-rs0-2.my-cluster-name-rs0.tim-psmdb.svc.cluster.local:27017]" replset=rs0 ssl=false
      time="2019-01-17T19:05:22Z" level=info msg="Getting pods from source" source=k8s url="tcp://172.30.0.1:443" 

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                tim.vaillancourt Tim Vaillancourt
                Reporter:
                tim.vaillancourt Tim Vaillancourt
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 4 hours, 27 minutes
                  2d 4h 27m