Details
-
Bug
-
Resolution: Duplicate
-
Major
-
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:
- taking the backup when bucket replica is set to 1,
- deleting the bucket,
- creating a new bucket with replica = 2,
- restoring the backup with --enable-bucket-config,
- 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
- relates to
-
K8S-2152 [Backup] Restore services not implemented in backup script.
- Closed