Skip to content

[manila-csi-plugin] Use GET-based share access rules API when available#3134

Open
gouthampacha wants to merge 1 commit into
kubernetes:masterfrom
gouthampacha:worktree-migrate-access-rules-api
Open

[manila-csi-plugin] Use GET-based share access rules API when available#3134
gouthampacha wants to merge 1 commit into
kubernetes:masterfrom
gouthampacha:worktree-migrate-access-rules-api

Conversation

@gouthampacha

@gouthampacha gouthampacha commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Switches from the deprecated os-access_list POST action to the
GET-based share-access-rules API (microversion 2.45+) for listing
access rules. Falls back to the old API for pre-2.45 deployments.

Some OpenStack deployments rate-limit POST/PUT as write requests,
causing unnecessary throttling on what is semantically a read operation.

Which issue this PR fixes(if applicable):
fixes #2277

Special notes for reviewers:

The server's max supported microversion (already fetched during client
init validation) is now stored in the Client struct. GetAccessRights
conditionally uses shareaccessrules.List (GET) when the server
supports >= 2.45, otherwise falls back to shares.ListAccessRights
(POST). The Interface return type is unchanged — all callers still
receive []shares.AccessRight.

Release note:

[manila-csi-plugin] Use GET-based share access rules API (microversion 2.45+) instead of deprecated POST action, avoiding write rate-limiting on read operations. Falls back automatically for older OpenStack deployments.

@k8s-ci-robot k8s-ci-robot added do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 19, 2026
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

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

@k8s-ci-robot k8s-ci-robot requested review from Fedosin and kayrus June 19, 2026 22:27
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Jun 19, 2026
Use the GET-based share-access-rules API (microversion 2.45+) instead
of the deprecated os-access_list POST action for listing access rules.
Some deployments rate-limit POST requests as writes, causing unnecessary
throttling on what is semantically a read operation.

The server's max supported microversion is now stored at client init time.
GetAccessRights conditionally uses shareaccessrules.List (GET) when the
server supports >= 2.45, falling back to shares.ListAccessRights (POST)
for older deployments.
@gouthampacha gouthampacha force-pushed the worktree-migrate-access-rules-api branch from c29d63e to 01b4bf6 Compare June 19, 2026 22:35
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[manila-csi-plugin]: use new access rules GET method when possible

2 participants