Skip to content

Fix adoption order: adopt Cinder before Glance in test_with_ceph - #1461

Open
rebtoor wants to merge 1 commit into
openstack-k8s-operators:mainfrom
rebtoor:fix-glance-cinder-adoption-order
Open

Fix adoption order: adopt Cinder before Glance in test_with_ceph#1461
rebtoor wants to merge 1 commit into
openstack-k8s-operators:mainfrom
rebtoor:fix-glance-cinder-adoption-order

Conversation

@rebtoor

@rebtoor rebtoor commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Move cinder_adoption before glance_adoption in test_with_ceph.yaml to
prevent a deadlock when glance_backend is set to cinder.

Problem

When glance_backend is overridden from its default ceph to cinder
(e.g. in the uni05epsilon-adoption scenario), the Glance operator detects
that Cinder is required and waits for Cinder resources to become ready
before starting Glance pods. However, in the current role ordering,
glance_adoption runs before cinder_adoption, causing a deadlock:
Glance waits for Cinder, but Cinder hasn't been adopted yet.

This manifests as Glance pods never starting, with the
OpenStackControlPlane CR showing:

GlanceAPIReady: Waiting for Cinder resources

Fix

Move cinder_adoption before glance_adoption. This matches the ordering
already used in test_minimal.yaml and is safe because:

  • Cinder depends only on Keystone and MariaDB (both already adopted)
  • Cinder does not depend on Glance
  • Glance may depend on Cinder (when glance_backend: cinder)

Made with Cursor

When glance_backend is set to 'cinder' (overriding the default 'ceph'),
the Glance operator waits for Cinder resources to be ready before starting
Glance pods. In the current role ordering, glance_adoption runs before
cinder_adoption, causing a deadlock: Glance waits for Cinder, but Cinder
hasn't been adopted yet.

Move cinder_adoption before glance_adoption to match the ordering already
used in test_minimal.yaml. This is safe because Cinder depends only on
Keystone and MariaDB (both already adopted at this point), while Glance
may depend on Cinder when configured with the cinder backend.

Related-Issue: #OSPRH-32880
Co-authored-by: Cursor <cursoragent@cursor.com>
@openshift-ci

openshift-ci Bot commented Jul 27, 2026

Copy link
Copy Markdown

[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 sathlan 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

@jistr jistr 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants