Skip to content

[manila-csi-plugin] Restore --nodeid and --nodeaz as optional overrides#3140

Open
gouthampacha wants to merge 2 commits into
kubernetes:masterfrom
gouthampacha:worktree-restore-nodeid-flags
Open

[manila-csi-plugin] Restore --nodeid and --nodeaz as optional overrides#3140
gouthampacha wants to merge 2 commits into
kubernetes:masterfrom
gouthampacha:worktree-restore-nodeid-flags

Conversation

@gouthampacha

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Un-deprecates the --nodeid and --nodeaz flags so they can be used as
alternatives to the metadata service for node identity.

#2734 aligned Manila CSI with how Cinder CSI handles node identity by making
the metadata service mandatory. For Cinder this makes sense: the node must be
a Nova VM for volume attach/detach. Manila doesn't have that constraint. Shares
mount via NFS or CEPHFS on the host, and the node doesn't need to be a Nova
instance.

When --nodeid is set, the flag value is used directly. When unset, the driver
falls back to the metadata service (current behavior). Same for --nodeaz.
OpenStack deployments are unaffected.

Which issue this PR fixes(if applicable):

Fixes #3139

Special notes for reviewers:

Tested end-to-end on a DevStack environment with Manila LVM:

  • With --nodeid=test-node-from-flag: CSINode registers with the flag value,
    PVC binds, share mounts, pod reads/writes data
  • Without --nodeid (default): CSINode registers with the metadata-provided
    UUID, PVC binds, share mounts, pod reads/writes data

Release note:

[manila-csi-plugin] The `--nodeid` and `--nodeaz` flags are no longer
deprecated. When set, they override the metadata service for node identity,
allowing Manila CSI to run on nodes that are not OpenStack VMs.

Remove the precludes relationship between shareAccessID and
shareAccessIDs so that both parameters can be set simultaneously.
When both are present, shareAccessIDs takes precedence (existing
behavior in getAccessIDs). This restores backwards compatibility
for consumers that set both fields during migration from the
deprecated shareAccessID to shareAccessIDs.

Fixes: kubernetes#3131
Un-deprecate the --nodeid and --nodeaz flags so that they can be used
as alternatives to the metadata service for node identity. When set,
the flag values are used directly; when unset, the driver falls back
to the metadata service as before.

This allows Manila CSI to work on nodes that are not OpenStack VMs,
such as bare metal clusters or edge deployments, where the metadata
service is unavailable.
@kubernetes-prow kubernetes-prow Bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 23, 2026
@kubernetes-prow kubernetes-prow Bot requested review from kayrus and zetaab June 23, 2026 06:57
@kubernetes-prow kubernetes-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 23, 2026
@kubernetes-prow

Copy link
Copy Markdown

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

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: Restore --nodeid/--nodeaz flags as alternative to metadata service

1 participant