Skip to content

Make share v1 endpoint optional#546

Merged
openshift-merge-bot[bot] merged 2 commits intoopenstack-k8s-operators:mainfrom
fmount:v2
Apr 4, 2026
Merged

Make share v1 endpoint optional#546
openshift-merge-bot[bot] merged 2 commits intoopenstack-k8s-operators:mainfrom
fmount:v2

Conversation

@fmount
Copy link
Copy Markdown
Collaborator

@fmount fmount commented Mar 17, 2026

v1 endpoints are removed from the latest manila version and not used anymore. For this reason we need to conditionally enable them based on the release. Older versions might have them enabled, and we need to preserve brownfield deployment for backward compatibility. However, greenfield deployments based on the latest version won't have them registered anymore. This patch adds a new annotation that can be used to drive the deployment and support both older and new deployment methods.

Note that by default the patch keep the existing behavior, and they are registered unless the manila.openstack.org/sharev1: false annotation is passed.
This will be typically done by the openstack-operator (and enabled in a follow up patch).

Jira: https://redhat.atlassian.net/browse/OSPRH-27947

@fmount
Copy link
Copy Markdown
Collaborator Author

fmount commented Apr 1, 2026

@gouthampacha are we good with this?

Copy link
Copy Markdown
Contributor

@gouthampacha gouthampacha left a comment

Choose a reason for hiding this comment

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

Hi @fmount - thanks for getting this in, and for checking with me!
Sorry for the delay with this review; please see some questions/comments inline

Comment thread internal/controller/manila_controller.go
Comment thread internal/controller/manilaapi_controller.go
Comment thread internal/controller/manilaapi_controller.go
Comment thread api/v1beta1/manilaapi_types.go Outdated
Comment thread internal/controller/manilaapi_controller.go
From RHOSO 19 sharev1 endpoints are removed and not used anymore. For
this reason we need to conditionally enable them based on the RHOSO
release. Older versions might have them enabled, and we need to preserve
brownfield deployment for backward compatibility. However, greenfield 19
deployments won't have them registered anymore. This patch adds a new
annotation that can be used to drive the deployer and support both older
and new deployment methods.

Signed-off-by: Francesco Pantano <fpantano@redhat.com>
This patch introduces an additional test to verify that sharev1 endpoints are
not added when manila.openstack.org/sharev1: false annotation is set.

Signed-off-by: Francesco Pantano <fpantano@redhat.com>
Comment thread test/functional/manila_controller_test.go
@fmount fmount requested a review from gouthampacha April 2, 2026 13:41
@fmount
Copy link
Copy Markdown
Collaborator Author

fmount commented Apr 3, 2026

Both endpoints [1] and services [2] confirm that we have no regressions with the existing jobs based on Antelope where we expect to see both v1 and v2.

[1] https://logserver.rdoproject.org/5e6/rdoproject.org/5e629a2cf2ab463085d738d4c6b1302f/controller/ci-framework-data/logs/openstack-must-gather/latest/ctlplane/endpoints

[2] https://logserver.rdoproject.org/5e6/rdoproject.org/5e629a2cf2ab463085d738d4c6b1302f/controller/ci-framework-data/logs/openstack-must-gather/latest/ctlplane/services

@gouthampacha
Copy link
Copy Markdown
Contributor

/lgtm

thanks @fmount

@openshift-ci openshift-ci bot added the lgtm label Apr 4, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 4, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fmount, gouthampacha

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [fmount,gouthampacha]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 7242a9a into openstack-k8s-operators:main Apr 4, 2026
7 checks passed
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