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

CouchbaseBackup job fails when parsing backup output

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.2
    • 2.0.1
    • kubernetes, operator
    • None
    • Kubernetes 1.17.6
      Couchbase operator 2.0.1
      Couchbase operator backup 6.5.1
      Couchbase server enterprise-6.5.1
    • 1

    Description

      The backup script run by a CouchbaseBackup job succeeds in creating a backup, but consistently encounters an error in parsing the bacukup output.

      The following error is logged after the script completes the backup...

      Traceback (most recent call last):
      File "/opt/couchbase/bin/backup_script", line 1022, in <module>
      main()
      File "/opt/couchbase/bin/backup_script", line 166, in main
      backup(args)
      File "/opt/couchbase/bin/backup_script", line 757, in backup
      exit_script(0, args.mode, BACKUP, RESULT)
      File "/opt/couchbase/bin/backup_script", line 598, in exit_script
      output = parse_backup_output(output)
      File "/opt/couchbase/bin/backup_script", line 477, in parse_backup_output
      mut_succ = mutations.split(", ")[0].split("; ")[1]
      IndexError: list index out of range

      The result is that a backup's Kubernetes Job is always marked as incomplete with its Pod finishing in an Error state. This makes it challenging to distinguish between a successful and failed backup.

      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)
            jonasrmichel Jonas Michel
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty