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(
)
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"couchbasebackups.couchbase.com \"cbbackup\" not found","reason":"NotFound","details":
,"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)