Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.0.1
-
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.