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

[Backup] --enable-bucket-config flag of cbbackupmgr restore is not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 2.2.0
    • 2.2.0
    • None
    • 18: PE/Tasks/Docs
    • 1

    Description

      Job: http://qa.sc.couchbase.com/job/roo-test/217/console

      Couchbase Server: couchbase/server:6.6.1

      Backup Image : 6.6.0-116

      Description of --enable-bucket-config: Enables restoring the bucket configuration.

      This flag at the moment is tested by:

      1. taking the backup when bucket replica is set to 1,
      2. deleting the bucket,
      3. creating a new bucket with replica = 2,
      4. restoring the backup with --enable-bucket-config,
      5. Verifying the replica count of the bucket.                                                                       

      Expectation: Replica count of the bucket is restored to 1.

      Observation: Replica count remains 2

      This flag is not being set in the backup script as other flags like --include-buckets etc. are during restore.

      https://github.com/couchbaselabs/couchbase-operator-backup/blob/master/backup.py#L803 

      Value of restore.Spec.Services.BucketConfig is set as true

      cbbackupmgr Error: 

      usage: backup.py [-h] -m {backup,restore} [-s {full_only,full_incremental}]
                       [-c {true,false}] [-b BACKUP_RET] [-r REPO] [--start START]
                       [--end END] [--include-buckets INCLUDE_BUCKETS]
                       [--exclude-buckets EXCLUDE_BUCKETS]
                       [--map-buckets MAP_BUCKETS] [--services SERVICES]
                       [--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: --enable-bucket-config
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
      curl: (7) Failed to connect to localhost port 15020: Connection refused 

      cbopinfo of the test case attached. 

      Attachments

        Issue Links

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

          Activity

            People

              simon.murray Simon Murray
              prateek.kumar Prateek Kumar (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