Skip to content

Conversation

@fmount
Copy link
Contributor

@fmount fmount commented Dec 1, 2025

This patch integrates CinderBackups support into OpenStackControlPlane CRD and adds the corresponding logic.
It enables configuration of multiple Cinder Backup services and deprecates the existing interface [1].

[1] openstack-k8s-operators/cinder-operator#575

Jira: https://issues.redhat.com/browse/OSPRH-22021

@openshift-ci openshift-ci bot requested review from fultonj and olliewalsh December 1, 2025 08:15
@softwarefactory-project-zuul
Copy link

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/bf06427b62cf49d18cab0f61cfd7e57f

openstack-k8s-operators-content-provider FAILURE in 12m 10s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ adoption-standalone-to-crc-ceph-provider SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ openstack-operator-tempest-multinode SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

@fmount
Copy link
Contributor Author

fmount commented Dec 2, 2025

recheck

@softwarefactory-project-zuul
Copy link

This change depends on a change that failed to merge.

Change openstack-k8s-operators/cinder-operator#575 is needed.

@softwarefactory-project-zuul
Copy link

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/d526829bd0554de5adbbb3ea00a46e4f

Warning:
Dependency cycle detected and project openstack-k8s-operators/cinder-operator doesn't allow circular dependencies

@fmount fmount force-pushed the cback_listd branch 2 times, most recently from ac0be86 to 5631e8f Compare December 2, 2025 09:41
@softwarefactory-project-zuul
Copy link

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/5b5a02cc7c0d4672997072109154f2d6

openstack-k8s-operators-content-provider FAILURE in 12m 39s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ adoption-standalone-to-crc-ceph-provider SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ openstack-operator-tempest-multinode SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

@fmount
Copy link
Contributor Author

fmount commented Dec 2, 2025

recheck

@softwarefactory-project-zuul
Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/openstack-operator for 1714,ca95e47f3f9cf6e757066883508ed75f0d9b2196

@softwarefactory-project-zuul
Copy link

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/bf22b29074a1473b9d0bb9e3e5410415

openstack-k8s-operators-content-provider FAILURE in 12m 37s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ adoption-standalone-to-crc-ceph-provider SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ openstack-operator-tempest-multinode SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

This patch integrates CinderBackups support into OpenStackControlPlane
CRD and adds the corresponding logic. It enables configuration of
multiple Cinder Backup services and deprecates the existing interface
[1].

[1] openstack-k8s-operators/cinder-operator#575

Signed-off-by: Francesco Pantano <fpantano@redhat.com>
@fmount
Copy link
Contributor Author

fmount commented Dec 15, 2025

The cinder-operator dependency already landed and CI here is green.
Based on our tests [1] with a build based on this patch [2] this seems good to go as well.

[1] https://issues.redhat.com/browse/OSPRH-23020
[2] quay.io/fpantano/openstack-operator-index:v0.5.1

if instance.Spec.Cinder.Template.CinderBackups != nil {
bkp := make(map[string]cinderv1.CinderBackupTemplate)
cinder.Spec.CinderBackups = &bkp
for name, backup := range *instance.Spec.Cinder.Template.CinderBackups {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have to make sure things get worked in a specific order since accessing maps can be in any order?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, each entry represents an independent instance that is usually connected to a different backend, so there's no ordering in general (like we do for cvol).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed on slack, lets follow up on this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I think I didn't get the question properly. When we iterate over the map[string]CinderBackupTemplate the ordered access is not guaranteed. This might result in an unnecessary reconciliation at least to the main cinder-operator controller.
We'll follow up on this particular point to ensure we access the map in order for both cinder components (cvol and cbak) but also manila-share and glance apis.

Copy link
Contributor

@stuggi stuggi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 15, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fmount, stuggi

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

The pull request process is described 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

@openshift-merge-bot openshift-merge-bot bot merged commit a77f462 into openstack-k8s-operators:main Dec 15, 2025
8 checks passed
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