Skip to content

[18.0-fr2] Add Notfications message bus instance for Nova CRD - #985

Closed
openshift-cherrypick-robot wants to merge 1 commit into
openstack-k8s-operators:18.0-fr2from
openshift-cherrypick-robot:cherry-pick-948-to-18.0-fr2
Closed

openshift-cherrypick-robot wants to merge 1 commit into
openstack-k8s-operators:18.0-fr2from
openshift-cherrypick-robot:cherry-pick-948-to-18.0-fr2

Conversation

@openshift-cherrypick-robot

Copy link
Copy Markdown

This is an automated cherry-pick of #948

/assign bogdando

Extend CRDs to support a RabbitMqCluster reference as AMQP instance for
notifications.

To provide a way for human user to define the notifications bus for
Nova CR via the OpenStackControlPlane CR's nova section, add a new
field to the NovaSpecCore as that is the struct used when the
OpenStackControlPlaneSpec struct is defined.

At NovaSpec level having just "" or a name of the bus is OK as either
we need a bus, or we don't need notifications at all.  However, for
empedded NovaSpecCore we might need the 3rd possibility to "inherit
from somewhere higher", which we represent as: *string field where null
means inherit, "" means disable notification, "foo" means send
notification to bus foo.

Note that overriding NotificationsBusInstance for cells is not
supported as that implies that consumers of notifications can maintain
simultanous AMQP connections via multiple transport_url endpoints,
which is not a thing in Openstack.

Assume that in the implementation the required information will be
transferred via the existing internal secret via notifications specific
transport_url key (as the transport_url key is already taken by the RPC
bus value). Thus we do not modify other Nova services' CRDs.

Note that the pointer type is redundant for NovaSpec, but since
we have already defined it as a such in NovaSpecCore, and
changing the types system is not planned (requires changes in openstack
operator), it should be used as is for also NovaSpec.
However there shall be only a real use of a nil value in
NovaSpecCore (while unused in NovaSpec).

Signed-off-by: Bohdan Dobrelia <bdobreli@redhat.com>
@openshift-ci

openshift-ci Bot commented Jun 17, 2025

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: openshift-cherrypick-robot
Once this PR has been reviewed and has the lgtm label, please assign ratailor 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

@bogdando

bogdando commented Jun 17, 2025 •

Copy link
Copy Markdown
Contributor

@gibizer @auniyal61 not sure if we should backport here or downstream only

@openshift-ci

openshift-ci Bot commented Jun 17, 2025

Copy link
Copy Markdown
Contributor

@openshift-cherrypick-robot: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/functional 79ce71e link true /test functional

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

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.

2 participants