Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Ironic and Octavia services routes based on annotations on the svc endpoint #488

Conversation

stuggi
Copy link
Contributor

@stuggi stuggi commented Sep 25, 2023

This is a follow up to #457 to also migrate ironic and octavia to have their routes created via the openstack-operator.

Depends-On: openstack-k8s-operators/ironic-operator#334
Depends-On: openstack-k8s-operators/octavia-operator#171

@stuggi stuggi changed the title Handle ingress v3 ironic octavia Create Ironic and Octavia services routes based on annotations on the svc endpoint Sep 25, 2023
@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://review.rdoproject.org/zuul/buildset/0a9c53bbcc784de7aed4f6e32ea9a461

openstack-k8s-operators-content-provider FAILURE in 9m 47s
⚠️ 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

}

// Ironic Inspector
if ironic.Status.Conditions.IsTrue(ironicv1.IronicInspectorReadyCondition) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This condition is currently set to True by ironic-operator also when Inspector service is not requested (by setting replicas = 0). Would the remaining code here fail in that case? Or will svcs simply be empty an EnsureRoute would simply not create any resources?

Setting the condition to True when service is not requested in ironic-operator might not be the right thing to do ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

when there is no service created by the ironic operator which has the IngressCreate annotation [1] (done by the service operator), there won't be a route created.

[1] https://github.com/openstack-k8s-operators/lib-common/blob/main/modules/common/service/types.go#L44

Creates the route for the ironicapi and ironicinspector, also allows
to customize the route via override.

Generats the service override for the env with what is configured in
the externalEndpoints, or specified in the service template override.

Depends-On: openstack-k8s-operators/lib-common#313
Depends-On: openstack-k8s-operators/keystone-operator#289
Depends-On: openstack-k8s-operators/ironic-operator#334

Jira: OSP-26690
Creates the route for the octaviaapi, also allows to customize the
route via override.

Generats the service override for the env with what is configured in
the externalEndpoints, or specified in the service template override.

Depends-On: openstack-k8s-operators/lib-common#313
Depends-On: openstack-k8s-operators/keystone-operator#289
Depends-On: openstack-k8s-operators/octavia-operator#171

Jira: OSP-26690
@stuggi stuggi force-pushed the handle_ingress_v3_ironic_octavia branch from 3cac4ea to f2a34af Compare September 26, 2023 14:34
Copy link
Contributor

@abays abays 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 Sep 26, 2023

[APPROVALNOTIFIER] This PR is APPROVED

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

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

The pull request process is described here

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-robot openshift-merge-robot merged commit 9f4d395 into openstack-k8s-operators:main Sep 26, 2023
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.

4 participants