Skip to content

(multiple) Add roles for backup/restore functionality#3886

Open
abays wants to merge 3 commits into
openstack-k8s-operators:mainfrom
abays:backup_restore3
Open

(multiple) Add roles for backup/restore functionality#3886
abays wants to merge 3 commits into
openstack-k8s-operators:mainfrom
abays:backup_restore3

Conversation

@abays
Copy link
Copy Markdown
Contributor

@abays abays commented Apr 23, 2026

Add three new Ansible roles for OpenStack on OpenShift backup and
restore using OADP (OpenShift API for Data Protection) and Velero:

  • cifmw_backup_restore: orchestrates backup, restore, and cleanup of OpenStack control plane and data plane resources, including Galera database dumps, Velero CSI volume snapshots, and ordered multi-phase restore sequences.

  • openshift_adp: installs and configures the OADP operator with an S3-compatible storage backend, creates the DataProtectionApplication CR, sets up VolumeSnapshotClass for CSI snapshots, and verifies the BackupStorageLocation is available.

  • deploy_minio: deploys MinIO as a lightweight S3-compatible object store for use as the Velero backup target in development and CI environments.

Also adds playbooks (backup_restore.yaml, backup_restore_tasks.yaml)
to integrate backup and restore into the post-deployment pipeline.

Signed-off-by: Andrew Bays abays@redhat.com
Signed-off-by: Martin Schuppert mschuppert@redhat.com

@abays abays requested review from danpawlik and evallesp April 23, 2026 13:27
@abays abays force-pushed the backup_restore3 branch from 9113297 to bd28a16 Compare April 23, 2026 13:42
@abays abays changed the title [cifmw_backup_restore] Add role for backup/restore functionality (multiple) Add roles for backup/restore functionality Apr 23, 2026
@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/53bd5aeecb3c49f2a2b055441269b372

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 19m 39s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 21m 43s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 28m 19s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 2h 07m 15s
cifmw-pod-zuul-files FAILURE in 4m 38s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 00s
cifmw-pod-pre-commit FAILURE in 8m 03s

@abays abays force-pushed the backup_restore3 branch from bd28a16 to f895e3a Compare April 24, 2026 11:59
@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/bdf74b0181114163974bebdac49d4001

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 14m 41s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 26m 18s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 38m 13s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 2h 01m 11s
cifmw-pod-zuul-files FAILURE in 5m 06s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 53s
cifmw-pod-pre-commit FAILURE in 8m 59s

@abays
Copy link
Copy Markdown
Contributor Author

abays commented Apr 30, 2026

recheck

Zuul seems to be stuck

@centosinfra-prod-github-app
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdo/buildset/f256b54bd75545b094a3e13373e18b4f

✔️ openstack-k8s-operators-content-provider SUCCESS in 12m 27s
podified-multinode-edpm-deployment-crc RETRY_LIMIT in 31s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 29s
cifmw-crc-podified-edpm-baremetal-minor-update RETRY_LIMIT in 28s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 58s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 20s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 51s
✔️ cifmw-molecule-cifmw_backup_restore SUCCESS in 2m 11s
✔️ cifmw-molecule-deploy_minio SUCCESS in 2m 06s
✔️ cifmw-molecule-openshift_adp SUCCESS in 2m 12s

Comment thread playbooks/backup_restore.yaml Outdated
Comment thread playbooks/backup_restore.yaml Outdated
Comment thread playbooks/backup_restore.yaml Outdated
Comment thread playbooks/backup_restore.yaml Outdated
Comment thread playbooks/backup_restore.yaml Outdated
Comment thread roles/cifmw_backup_restore/tasks/backup.yml Outdated
Comment thread roles/cifmw_backup_restore/tasks/backup.yml
Comment thread post-deployment.yml Outdated
@abays abays force-pushed the backup_restore3 branch from f0f66d5 to ab71e14 Compare April 30, 2026 19:32
@centosinfra-prod-github-app
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdo/buildset/d48f5275a9364111ad351b6439ab0207

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 04m 50s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 19m 28s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 27s
cifmw-crc-podified-edpm-baremetal-minor-update RETRY_LIMIT in 26s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 26s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 51s
✔️ cifmw-pod-pre-commit SUCCESS in 9m 01s
✔️ cifmw-molecule-cifmw_backup_restore SUCCESS in 2m 07s
✔️ cifmw-molecule-deploy_minio SUCCESS in 2m 06s
✔️ cifmw-molecule-openshift_adp SUCCESS in 2m 10s

@abays
Copy link
Copy Markdown
Contributor Author

abays commented Apr 30, 2026

recheck

@centosinfra-prod-github-app
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdo/buildset/c0b3b5d7b7144c5980e3796d9b7cd536

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 37m 00s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 22m 48s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 28s
cifmw-crc-podified-edpm-baremetal-minor-update RETRY_LIMIT in 26s
✔️ cifmw-pod-zuul-files SUCCESS in 6m 39s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 11m 14s
✔️ cifmw-pod-pre-commit SUCCESS in 10m 45s
✔️ cifmw-molecule-cifmw_backup_restore SUCCESS in 2m 17s
✔️ cifmw-molecule-deploy_minio SUCCESS in 2m 25s
✔️ cifmw-molecule-openshift_adp SUCCESS in 2m 22s

@abays
Copy link
Copy Markdown
Contributor Author

abays commented May 1, 2026

recheck

@centosinfra-prod-github-app
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdo/buildset/c7cbbb84a46548b99d6313dc7900bc41

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 35m 46s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 22m 58s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 27s
cifmw-crc-podified-edpm-baremetal-minor-update RETRY_LIMIT in 31s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 27s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 21s
✔️ cifmw-pod-pre-commit SUCCESS in 9m 04s
✔️ cifmw-molecule-cifmw_backup_restore SUCCESS in 2m 06s
✔️ cifmw-molecule-deploy_minio SUCCESS in 2m 02s
✔️ cifmw-molecule-openshift_adp SUCCESS in 2m 03s

@evallesp
Copy link
Copy Markdown
Contributor

evallesp commented May 4, 2026

recheck

@centosinfra-prod-github-app
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdo/buildset/fc994363bc5242f7b7cfae5a58a70d98

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 38m 34s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 26m 21s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 27s
cifmw-crc-podified-edpm-baremetal-minor-update RETRY_LIMIT in 27s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 04s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 55s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 24s
✔️ cifmw-molecule-cifmw_backup_restore SUCCESS in 2m 28s
✔️ cifmw-molecule-deploy_minio SUCCESS in 2m 31s
✔️ cifmw-molecule-openshift_adp SUCCESS in 2m 34s

@abays
Copy link
Copy Markdown
Contributor Author

abays commented May 5, 2026

recheck

@abays
Copy link
Copy Markdown
Contributor Author

abays commented May 6, 2026

/override rdo/github-check

Old Zuul, not needed

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 6, 2026

@abays: Overrode contexts on behalf of abays: rdo/github-check

Details

In response to this:

/override rdo/github-check

Old Zuul, not needed

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 6, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign evallesp for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@evallesp
Copy link
Copy Markdown
Contributor

evallesp commented May 6, 2026

Role prefix job status is FAILED while that should be green. Currently the job looks for just last commit but checks all the files that the PR contain.

Fixing at: #3903

@evallesp
Copy link
Copy Markdown
Contributor

evallesp commented May 8, 2026

recheck

@evallesp
Copy link
Copy Markdown
Contributor

evallesp commented May 8, 2026

Once rebase, the CI failure should be fixed.

abays and others added 3 commits May 11, 2026 08:31
Deploy MinIO as a lightweight S3-compatible object store for use
as the Velero backup target in development and CI environments.

Signed-off-by: Andrew Bays <abays@redhat.com>
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Install and configure the OADP (OpenShift API for Data Protection)
operator with an S3-compatible storage backend, create the
DataProtectionApplication CR, set up VolumeSnapshotClass for CSI
snapshots, and verify the BackupStorageLocation is available.

Signed-off-by: Andrew Bays <abays@redhat.com>
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Orchestrate backup, restore, and cleanup of OpenStack control plane
and data plane resources, including Galera database dumps, Velero CSI
volume snapshots, and ordered multi-phase restore sequences.

Also adds playbooks (backup_restore.yaml) and integrates backup and
restore into the post-deployment pipeline.

Signed-off-by: Andrew Bays <abays@redhat.com>
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants