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

backup.py: error: unrecognized arguments: --strategy --config false cb-test

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • kubernetes
    • None
    • 1

    Description

      Background
      Setting up backup configs as follow on Operator 2.2.0

      apiVersion: couchbase.com/v2
      kind: CouchbaseBackup
      metadata:
      name: my-backup
      labels:
      cluster: cb-test
      spec:
      strategy: full_incremental
      full:
      schedule: "*/10 * * * *"
      incremental:
      schedule: "*/3 * * * *"
      successfulJobsHistoryLimit: 10
      failedJobsHistoryLimit: 3
      backoffLimit: 2
      backupRetention: 24h
      logRetention: 24h
      size: 5Gi
      storageClassName: standard
      

      backup:
      managed: true
      image: couchbase/operator-backup:1.2.0
      serviceAccountName: couchbase-backup
      resources:
      requests:
      cpu: 2000m
      memory: 300Mi
      selector:
      matchLabels:
      cluster: cb-test
      
      

      Problem

      The backup failed with the follow errors:

      kcl my-backup-full-1635377400-x227w
      usage: backup.py [-h] -m {backup,restore} [--full] [--incremental]
      [-b BACKUP_RET] [--disable-bucket-config] [-r REPO]
      [--start START] [--end END] [--map-data MAP_DATA]
      [--filter-keys FILTER_KEYS] [--filter-values FILTER_VALUES]
      [--enable-bucket-config] [--include-data INCLUDE_DATA]
      [--exclude-data EXCLUDE_DATA] [--disable-views]
      [--disable-gsi-indexes] [--disable-ft-indexes]
      [--disable-ft-alias] [--disable-data] [--disable-analytics]
      [--disable-eventing] [--disable-cluster-analytics]
      [--disable-bucket-query] [--disable-cluster-query]
      [--cacert CACERT] -l LOG_RET [-v {DEBUG,INFO,WARN}]
      [--s3-bucket S3_BUCKET] [--s3-region S3_REGION]
      [--s3-access-key-id S3_ACCESS_KEY_ID]
      [--s3-secret-access-key S3_SECRET_ACCESS_KEY]
      [--threads THREADS]
      cluster
      backup.py: error: unrecognized arguments: --strategy --config true cb-test
      

      Logs:
      cbopinfo-20211027T163153-0700.tar.gz

      Attachments

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

        Activity

          tin.tran Tin Tran added a comment -

          The same error happens on Operator 2.1

          tin.tran Tin Tran added a comment - The same error happens on Operator 2.1
          simon.murray Simon Murray added a comment -

          That's because backup 1.2 is only compatible with operator 1.3.  Perhaps I need to extend the compatibility matrix a bit.

          simon.murray Simon Murray added a comment - That's because backup 1.2 is only compatible with operator 1.3.  Perhaps I need to extend the compatibility matrix a bit.
          tin.tran Tin Tran added a comment -

          Hi Simon Murray
          Do you mean Operator 2.3?

          Currently we have a few customers running on 2.1/2.2.1 Operator with Couchbase 7.0.1

          Since 1.1.0 image is not compatible with Couchbase 7.0.1 (because it's based on 6.6.x), there's currently no way to back up the above configuration.

          Thank you Simon.

          tin.tran Tin Tran added a comment - Hi Simon Murray Do you mean Operator 2.3? Currently we have a few customers running on 2.1/2.2.1 Operator with Couchbase 7.0.1 Since 1.1.0 image is not compatible with Couchbase 7.0.1 (because it's based on 6.6.x), there's currently no way to back up the above configuration. Thank you Simon.
          simon.murray Simon Murray added a comment -

          Well ask the tools team not to make breaking changes then   I may be able to hack it so old parameters are understood by the new image, but no promises.  If I were you I'd get up to 2.3.0 beta if you need full CBS7 support.

          simon.murray Simon Murray added a comment - Well ask the tools team not to make breaking changes then   I may be able to hack it so old parameters are understood by the new image, but no promises.  If I were you I'd get up to 2.3.0 beta if you need full CBS7 support.

          Build couchbase-operator-backup-1.1.1-101 contains couchbase-operator-backup commit 9ecde79 with commit message:
          K8S-2498: Backport 1.2.x to 1.1.x

          build-team Couchbase Build Team added a comment - Build couchbase-operator-backup-1.1.1-101 contains couchbase-operator-backup commit 9ecde79 with commit message: K8S-2498 : Backport 1.2.x to 1.1.x

          People

            simon.murray Simon Murray
            tin.tran Tin Tran
            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