Skip to content

[DCN] Adding cinderBackups to controlplane#762

Open
gais-ameer-rh wants to merge 1 commit into
openstack-k8s-operators:mainfrom
gais-ameer-rh:OSPRH-28343
Open

[DCN] Adding cinderBackups to controlplane#762
gais-ameer-rh wants to merge 1 commit into
openstack-k8s-operators:mainfrom
gais-ameer-rh:OSPRH-28343

Conversation

@gais-ameer-rh

@gais-ameer-rh gais-ameer-rh commented May 26, 2026

Copy link
Copy Markdown
Contributor

To deploy multiple cinder backups distributed across edge sites

Removes the existing spec.cinder.template.cinderBackup (singluar) by setting repliacs to 0 and adds cinderBackups (plural)

Jira: OSPRH-28343
Signed-off-by: Gais Ameer gameer@redhat.com

@openshift-ci

openshift-ci Bot commented May 26, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gais-ameer-rh
Once this PR has been reviewed and has the lgtm label, please assign raukadah 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

@openshift-ci

openshift-ci Bot commented May 26, 2026

Copy link
Copy Markdown

Hi @gais-ameer-rh. Thanks for your PR.

I'm waiting for a openstack-k8s-operators member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@fultonj fultonj self-requested a review May 26, 2026 18:21
@fultonj

fultonj commented May 26, 2026

Copy link
Copy Markdown
Contributor

This looks like the right idea. Let's see the testing results.

@gais-ameer-rh gais-ameer-rh force-pushed the OSPRH-28343 branch 5 times, most recently from 8417cf5 to c339136 Compare June 11, 2026 11:52
backup_ceph_pool = backups
backup_ceph_user = openstack
# Not implemented in this example
cinderBackups:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes, we want cinderBackups here because ceph has been deployed.


# --- Below are VA/DT-specific data ---
_change_me: later
cinderBackups:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we want cinderBackups here yet because ceph has not been deployed. cinderVolumes is not here either.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed the cinderBackups from here.
But cinderBackups: {} is injected to OpenStackControlPlane CR from examples/dt/dcn/control-plane/kustomization.yaml

- networking/nncp/values.yaml
- service-values.yaml

replacements:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we want cinderBackups here yet because ceph has not been deployed. cinderVolumes is not here either.

@gais-ameer-rh gais-ameer-rh Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I replaced these lines with patches to inject cinderBackups: {} to base OpenStackControlPlane CR.
PS: cinderBackups is not defined in lib\control-plane.

@gais-ameer-rh gais-ameer-rh force-pushed the OSPRH-28343 branch 3 times, most recently from 524c85b to d441bfb Compare June 15, 2026 08:09
backup_ceph_conf = /etc/ceph/az0.conf
backup_ceph_pool = backups
backup_ceph_user = openstack
# Not implemented in this example

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cinderBackup (singular) is deprecated; use cinderBackups (plural)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated

Comment thread examples/dt/dcn/service-values.yaml Outdated
backup_ceph_conf = /etc/ceph/az0.conf
backup_ceph_pool = backups
backup_ceph_user = openstack
# Not implemented in this example

@fultonj fultonj Jun 15, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

deprecated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated

@fultonj

fultonj commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Worked with test project

To deploy multiple cinder backups distributed across edge sites
Removes the existing spec.cinder.template.cinderBackup (singluar) by setting repliacs to 0
and adds cinderBackups (plural) to controlplane

Jira: OSPRH-28343
Signed-off-by: Gais Ameer <gameer@redhat.com>
@fultonj fultonj marked this pull request as ready for review June 16, 2026 10:38
@openshift-ci openshift-ci Bot requested review from abays and raukadah June 16, 2026 10:38

@abays abays left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Jun 16, 2026
@fultonj

fultonj commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Just showing the main changes from this patch.

I. control plane pre-ceph has cinderBackups set but empty:

$ cd architecture/examples/dt/dcn/control-plane
$ kustomize build . | grep -i backups
      cinderBackups: {}
$

II. control plane post-ceph has cinderBackups set correctly and a note about the deprecation:

cd architecture/examples/dt/dcn
kustomize build | grep cinder: -A 66

produces expected output:

  cinder:
    apiOverride:
      route: {}
    template:
      apiTimeout: 600
      cinderAPI:
        override:
          service:
            internal:
              metadata:
                annotations:
                  metallb.universe.tf/address-pool: internalapi
                  metallb.universe.tf/allow-shared-ip: internalapi
                  metallb.universe.tf/loadBalancerIPs: 172.17.0.80
              spec:
                type: LoadBalancer
        replicas: 3
      cinderBackup:
        customServiceConfig: |
          [DEFAULT]
          # cinderBackup (singular) is deprecated; use cinderBackups (plural)
        networkAttachments:
        - storage
        replicas: 0
      cinderBackups:
        az0:
          customServiceConfig: |
            [DEFAULT]
            storage_availability_zone = az0
            backup_driver = cinder.backup.drivers.ceph.CephBackupDriver
            backup_ceph_conf = /etc/ceph/az0.conf
            backup_ceph_pool = backups
            backup_ceph_user = openstack
          networkAttachments:
          - storage
          replicas: 2
        az1:
          customServiceConfig: |
            [DEFAULT]
            storage_availability_zone = az1
            backup_driver = cinder.backup.drivers.ceph.CephBackupDriver
            backup_ceph_conf = /etc/ceph/az1.conf
            backup_ceph_pool = backups
            backup_ceph_user = openstack
          networkAttachments:
          - storage
          replicas: 2
        az2:
          customServiceConfig: |
            [DEFAULT]
            storage_availability_zone = az2
            backup_driver = cinder.backup.drivers.ceph.CephBackupDriver
            backup_ceph_conf = /etc/ceph/az2.conf
            backup_ceph_pool = backups
            backup_ceph_user = openstack
          networkAttachments:
          - storage
          replicas: 2
      cinderScheduler:
        replicas: 1
      cinderVolumes:
        az0:
          customServiceConfig: |
            [DEFAULT]
            enabled_backends = ceph
            glance_api_servers = https://glance-az0-internal.openstack.svc:9292
            [ceph]

III. scale down

cd architecture/examples/dt/dcn/control-plane/scaledown
kustomize build . | grep cinderBackups -A 33

has expected output (replicas set to 0 because we're scaling down).

          # cinderBackup (singular) is deprecated; use cinderBackups (plural)
        networkAttachments:
        - storage
        replicas: 0
      cinderBackups:
        az0:
          customServiceConfig: |
            [DEFAULT]
            storage_availability_zone = az0
            backup_driver = cinder.backup.drivers.ceph.CephBackupDriver
            backup_ceph_conf = /etc/ceph/az0.conf
            backup_ceph_pool = backups
            backup_ceph_user = openstack
          networkAttachments:
          - storage
          replicas: 2
        az1:
          customServiceConfig: |
            [DEFAULT]
            storage_availability_zone = az1
            backup_driver = cinder.backup.drivers.ceph.CephBackupDriver
            backup_ceph_conf = /etc/ceph/az1.conf
            backup_ceph_pool = backups
            backup_ceph_user = openstack
          networkAttachments:
          - storage
          replicas: 0
        az2:
          customServiceConfig: |
            [DEFAULT]
            storage_availability_zone = az2
            backup_driver = cinder.backup.drivers.ceph.CephBackupDriver
            backup_ceph_conf = /etc/ceph/az2.conf
            backup_ceph_pool = backups
            backup_ceph_user = openstack
          networkAttachments:
          - storage
          replicas: 2

@fultonj

fultonj commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Let's merge the following first:

openstack-k8s-operators/ci-framework#3963

@fultonj fultonj removed the request for review from raukadah June 16, 2026 10:55
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