Closed qpdpQ closed 4 weeks ago
may need to label the bootstrap secret as well
allen@Allens-MBP restore % velero restore get
NAME BACKUP STATUS STARTED COMPLETED ERRORS WARNINGS CREATED SELECTOR
restore-catalog commonservice-backup-20240821172729 Completed 2024-08-21 14:10:50 -0400 EDT 2024-08-21 14:11:08 -0400 EDT 0 0 2024-08-21 14:10:50 -0400 EDT foundationservices.cloudpak.ibm.com=catalog
restore-cert-manager commonservice-backup-20240821172729 Completed 2024-08-21 14:29:25 -0400 EDT 2024-08-21 14:30:03 -0400 EDT 0 3 2024-08-21 14:29:25 -0400 EDT foundationservices.cloudpak.ibm.com=cert-manager
restore-commonservice commonservice-backup-20240821172729 Completed 2024-08-21 14:12:13 -0400 EDT 2024-08-21 14:12:30 -0400 EDT 0 0 2024-08-21 14:12:13 -0400 EDT foundationservices.cloudpak.ibm.com=commonservice
restore-configmap commonservice-backup-20240821172729 Completed 2024-08-21 14:11:26 -0400 EDT 2024-08-21 14:11:43 -0400 EDT 0 0 2024-08-21 14:11:16 -0400 EDT foundationservices.cloudpak.ibm.com=configmap
restore-crd commonservice-backup-20240821172729 Completed 2024-08-21 14:11:43 -0400 EDT 2024-08-21 14:12:02 -0400 EDT 0 0 2024-08-21 14:11:23 -0400 EDT foundationservices.cloudpak.ibm.com=crd
restore-cs-db-data commonservice-backup-20240821172729 Completed 2024-08-21 15:37:45 -0400 EDT 2024-08-21 15:38:06 -0400 EDT 0 7 2024-08-21 15:37:45 -0400 EDT foundationservices.cloudpak.ibm.com=cs-db-data
restore-entitlementkey commonservice-backup-20240821172729 Completed 2024-08-21 14:07:53 -0400 EDT 2024-08-21 14:08:19 -0400 EDT 0 0 2024-08-21 14:07:53 -0400 EDT foundationservices.cloudpak.ibm.com=entitlementkey
restore-namespace commonservice-backup-20240821172729 PartiallyFailed 2024-08-21 14:07:23 -0400 EDT 2024-08-21 14:07:41 -0400 EDT 1 0 2024-08-21 14:07:23 -0400 EDT foundationservices.cloudpak.ibm.com=namespace
restore-operands commonservice-backup-20240821172729 Completed 2024-08-21 14:44:35 -0400 EDT 2024-08-21 14:44:55 -0400 EDT 0 0 2024-08-21 14:44:35 -0400 EDT foundationservices.cloudpak.ibm.com=operand
restore-operatorgroup commonservice-backup-20240821172729 Completed 2024-08-21 14:11:08 -0400 EDT 2024-08-21 14:11:26 -0400 EDT 0 0 2024-08-21 14:11:07 -0400 EDT foundationservices.cloudpak.ibm.com=operatorgroup
restore-pull-secret commonservice-backup-20240821172729 Completed 2024-08-21 14:08:19 -0400 EDT 2024-08-21 14:08:22 -0400 EDT 0 1 2024-08-21 14:08:06 -0400 EDT foundationservices.cloudpak.ibm.com=pull-secret
restore-singleton-subscription commonservice-backup-20240821172729 Completed 2024-08-21 14:12:40 -0400 EDT 2024-08-21 14:12:58 -0400 EDT 0 0 2024-08-21 14:12:40 -0400 EDT foundationservices.cloudpak.ibm.com=singleton-subscription
restore-subscription commonservice-backup-20240821172729 Completed 2024-08-21 14:35:58 -0400 EDT 2024-08-21 14:36:17 -0400 EDT 0 0 2024-08-21 14:35:58 -0400 EDT foundationservices.cloudpak.ibm.com=subscription
restore-user-mgmt commonservice-backup-20240821172729 Completed 2024-08-21 16:39:11 -0400 EDT 2024-08-21 16:39:32 -0400 EDT 0 0 2024-08-21 16:39:11 -0400 EDT foundationservices.cloudpak.ibm.com=user-mgmt
All the data got restored with oadp
cs-db-restore-job works for mcsp-br, no other workaround needed.
It is ready for review now
Backup and restore user management in the same cluster, and passed
sh-4.4$ cat backup_log_20240919133442.log
[INFO] Mode set to backup, beginning backup process.
[INFO] Beginning backup of cloudpak database...
pg_dump: last built-in OID is 16383
pg_dump: reading extensions
pg_dump: identifying extension members
pg_dump: reading schemas
pg_dump: reading user-defined tables
pg_dump: reading user-defined functions
pg_dump: reading user-defined types
pg_dump: reading procedural languages
pg_dump: reading user-defined aggregate functions
pg_dump: reading user-defined operators
pg_dump: reading user-defined access methods
pg_dump: reading user-defined operator classes
pg_dump: reading user-defined operator families
pg_dump: reading user-defined text search parsers
pg_dump: reading user-defined text search templates
pg_dump: reading user-defined text search dictionaries
pg_dump: reading user-defined text search configurations
pg_dump: reading user-defined foreign-data wrappers
pg_dump: reading user-defined foreign servers
pg_dump: reading default privileges
pg_dump: reading user-defined collations
pg_dump: reading user-defined conversions
pg_dump: reading type casts
pg_dump: reading transforms
pg_dump: reading table inheritance information
pg_dump: reading event triggers
pg_dump: finding extension tables
pg_dump: finding inheritance relationships
pg_dump: reading column info for interesting tables
pg_dump: flagging inherited columns in subtables
pg_dump: reading partitioning data
pg_dump: reading indexes
pg_dump: flagging indexes in partitioned tables
pg_dump: reading extended statistics
pg_dump: reading constraints
pg_dump: reading triggers
pg_dump: reading rewrite rules
pg_dump: reading policies
pg_dump: reading row-level security policies
pg_dump: reading publications
pg_dump: reading publication membership of tables
pg_dump: reading publication membership of schemas
pg_dump: reading subscriptions
pg_dump: reading large objects
pg_dump: reading dependency data
pg_dump: saving encoding = UTF8
pg_dump: saving standard_conforming_strings = on
pg_dump: saving search_path =
pg_dump: saving database definition
[INFO] Beginning backup of im database...
pg_dump: last built-in OID is 16383
pg_dump: reading extensions
pg_dump: identifying extension members
....
pg_dump: reading row-level security policies
pg_dump: reading publications
pg_dump: reading publication membership of tables
pg_dump: reading publication membership of schemas
pg_dump: reading subscriptions
pg_dump: reading large objects
pg_dump: reading dependency data
pg_dump: saving encoding = UTF8
pg_dump: saving standard_conforming_strings = on
pg_dump: saving search_path =
pg_dump: saving database definition
pg_dump: dumping contents of table "accountiam.apikey"
pg_dump: dumping contents of table "accountiam.assistant_key"
pg_dump: dumping contents of table "accountiam.author"
pg_dump: dumping contents of table "accountiam.flyway_schema_history"
pg_dump: dumping contents of table "accountiam.group_binding"
pg_dump: dumping contents of table "accountiam.idp_config"
pg_dump: dumping contents of table "accountiam.igroup"
pg_dump: dumping contents of table "accountiam.invited_serviceid"
pg_dump: dumping contents of table "accountiam.invited_user"
pg_dump: dumping contents of table "accountiam.iuser"
pg_dump: dumping contents of table "accountiam.role"
pg_dump: dumping contents of table "accountiam.role_binding"
pg_dump: dumping contents of table "accountiam.scope"
pg_dump: dumping contents of table "accountiam.serviceid"
pg_dump: dumping contents of table "accountiam.tracked_key"
[INFO] Copy backup file.
Defaulted container "postgres" out of: postgres, bootstrap-controller (init)
tar: Removing leading `/' from member names
Defaulted container "postgres" out of: postgres, bootstrap-controller (init)
tar: Removing leading `/' from member names
Defaulted container "postgres" out of: postgres, bootstrap-controller (init)
tar: Removing leading `/' from member names
Defaulted container "postgres" out of: postgres, bootstrap-controller (init)
tar: Removing leading `/' from member names
[✔] Backup completed successfully.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: qpdpQ, YCShen1010
The full list of commands accepted by this bot can be found here.
The pull request process is described here
add mcsp database to cs-db br configmap