Repository navigation
Add Notfications message bus instance for Nova CRD - #948
Conversation
|
Note, implementation to follow after we agree on this design |
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/a1dafc73aba747d2b4c71d4881d905ea ❌ openstack-meta-content-provider FAILURE in 17m 24s |
|
/test functional |
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/1eeb57f5cbe64aad9599a266e5e29384 ✔️ openstack-meta-content-provider SUCCESS in 2h 27m 55s |
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/5b55ab6e600348ffba1aab94488091f3 ✔️ openstack-meta-content-provider SUCCESS in 3h 05m 35s |
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/86e9cd0703e64d78a300355bb611dcfc ❌ openstack-meta-content-provider FAILURE in 16m 15s |
4cb3e21 to
104281a
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ca7e82a99dfd42018ddaa9f460a06d77 ✔️ openstack-meta-content-provider SUCCESS in 1h 06m 39s |
re iterate once you have time
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/1301d3573c6d480eaceb86205c53373a ❌ openstack-meta-content-provider FAILURE in 14m 43s |
gibizer
left a comment
There was a problem hiding this comment.
@bogdando awesome progress. Thanks for trying the type split. The result looks good to me. My only remaining request is about a doc nit on the NovaSpec field. Otherwise I think this is ready to be implemented.
I acknowledge that in this iteration we are intentionally not supporting the cellTemplate level override as we see less user value in that functionality. As we discussed before it can be added later when needed with a backward compatible way.
|
Perhaps it was in another commit but will the mechanism here still use the TransportURL from infra-operator to obtain the secret for the notification bus? |
yes, human-operator will add rabbit in oscp CR, that rabbit will be recognized in Nova as notifications-broadcaster, transport_url part of this rabbit secret will be from infra-operator. |
Yes, it will. |
|
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. |
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>
|
just rebased to resolve the merge conflict |
| condition "github.com/openstack-k8s-operators/lib-common/modules/common/condition" | ||
| "github.com/openstack-k8s-operators/lib-common/modules/common/tls" | ||
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
| topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1" |
There was a problem hiding this comment.
hum, i guess this moved because of different go-fmt versions?
the end result is identical so not important either way.
There was a problem hiding this comment.
yeah I also suspect go fmt being the reason here.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bogdando, gibizer, SeanMooney The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/cherry-pick 18.0-fr2 |
|
@bogdando: new pull request created: #985 DetailsIn response to this:
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. |
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).
Jira: OSPRH-14486