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

automated backup script errors out

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 2.0.0
    • 2.0.0
    • operator
    • None

    Description

      2.0.0-273

      Deploy a 4 node couchbase cluster
      insert 200 docs
      create backup object
      trigger cronjob with couchbase/operator-backup:6.5.0
      job errors out with following message:

      2020-03-04 02:28:11,101 - root - INFO - k8s config loaded
      2020-03-04 02:28:11,101 - root - INFO - working in namespace: default
      Directory '/data/scriptlogs' created successfully
      Directory '/data/scriptlogs/incremental' created successfully
      Directory '/data/scriptlogs/full_only' created successfully
      Directory '/data/scriptlogs/restore' created successfully
      (404)
      Reason: Not Found
      HTTP response headers: HTTPHeaderDict(

      {'Audit-Id': '73f62378-3d56-4b0b-b813-e17854d388ed', 'Content-Type': 'application/json', 'Date': 'Wed, 04 Mar 2020 02:28:11 GMT', 'Content-Length': '246'}

      )
      HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"couchbasebackups.couchbase.com \"cbbackup\" not found","reason":"NotFound","details":

      {"name":"cbbackup","group":"couchbase.com","kind":"couchbasebackups"}

      ,"code":404}

      Traceback (most recent call last):
      File "/opt/couchbase/bin/backup_script", line 897, in <module>
      main()
      File "/opt/couchbase/bin/backup_script", line 153, in main
      k8s_setup(args)
      File "/opt/couchbase/bin/backup_script", line 315, in k8s_setup
      api_cronjob_name = job.metadata.owner_references[0].name
      TypeError: 'NoneType' object is not subscriptable

      Backup is not taken - same behavior observed when tried with image from dev private repo (dmacouch/operator-backup:latest)

      Attachments

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

        Activity

          People

            daniel.ma Daniel Ma (Inactive)
            arunkumar Arunkumar Senthilnathan (Inactive)
            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