Skip to content

Conversation

@stephenfin
Copy link
Member

@stephenfin stephenfin commented Dec 4, 2024

What this PR does / why we need it:

cinder-csi-plugin has long supported automatic retrieval of the node ID and node AZ information from the metadata service. Introduce this functionality to manila-csi-plugin now.

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

Special notes for reviewers:

Release note:

`manila-csi-plugin` now auto-configures the node ID and node AZ information
using the metadata service. The `--nodeid` and `--nodeaz` options are
therefore deprecated for removal and are now no-ops.

@k8s-ci-robot k8s-ci-robot added the release-note-none Denotes a PR that doesn't merit a release note. label Dec 4, 2024
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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 release-note-none Denotes a PR that doesn't merit a release note. labels Dec 4, 2024
@stephenfin
Copy link
Member Author

/cc @MaysaMacedo

@k8s-ci-robot
Copy link
Contributor

@stephenfin: GitHub didn't allow me to request PR reviews from the following users: MaysaMacedo.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

/cc @MaysaMacedo

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.

@stephenfin stephenfin marked this pull request as draft December 4, 2024 18:20
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 4, 2024
We're seeing failures in CI related to goproxy.io. There's no need to
set this so simply don't.

Signed-off-by: Stephen Finucane <[email protected]>
This has not seen any updates in a long time and does not appear to be
maintained. Our own doc is out-of-date and references removed options.
Just remove the whole thing.

Signed-off-by: Stephen Finucane <[email protected]>
Same as we do for Cinder. A separate change will deprecate the
respective options.

Signed-off-by: Stephen Finucane <[email protected]>
@stephenfin stephenfin marked this pull request as ready for review December 5, 2024 15:56
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 5, 2024
These are no longer used or necessary, now that we retrieve this
information from the metadata service.

Signed-off-by: Stephen Finucane <[email protected]>
To clarify their meaning.

Signed-off-by: Stephen Finucane <[email protected]>
@stephenfin stephenfin force-pushed the manila-auto-configure-nodeid-nodeaz branch from e450887 to 5175681 Compare December 5, 2024 16:03
@kayrus
Copy link
Contributor

kayrus commented Dec 9, 2024

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 9, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kayrus

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:

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 9, 2024
@k8s-ci-robot k8s-ci-robot merged commit a1afb70 into kubernetes:master Dec 9, 2024
12 checks passed
@stephenfin stephenfin deleted the manila-auto-configure-nodeid-nodeaz branch December 9, 2024 12:22
stephenfin added a commit to shiftstack/csi-operator that referenced this pull request Dec 9, 2024
This option is deprecated as the driver can now auto-configure this [1].
We can also remove some unnecessary quoting.

Note that we don't remove the option from the NFS driver as that is a
separate binary that doesn't support this auto-configuration.

[1] kubernetes/cloud-provider-openstack#2734

Signed-off-by: Stephen Finucane <[email protected]>
stephenfin added a commit to shiftstack/csi-operator that referenced this pull request Dec 9, 2024
This option is deprecated as the driver can now auto-configure this [1].
We can also remove some unnecessary quoting.

Note that we don't remove the option from the NFS driver as that is a
separate binary that doesn't support this auto-configuration.

[1] kubernetes/cloud-provider-openstack#2734

Signed-off-by: Stephen Finucane <[email protected]>
stephenfin added a commit to shiftstack/csi-operator that referenced this pull request Jan 16, 2025
This option is deprecated as the driver can now auto-configure this [1].
We can also remove some unnecessary quoting.

Note that we don't remove the option from the NFS driver as that is a
separate binary that doesn't support this auto-configuration.

[1] kubernetes/cloud-provider-openstack#2734

Signed-off-by: Stephen Finucane <[email protected]>
stephenfin added a commit to shiftstack/cloud-provider-openstack that referenced this pull request Apr 4, 2025
%T prints the type. %t prints the word true/false, which is what we
want. [1]

[1] https://pkg.go.dev/fmt

Conflicts:
	pkg/csi/manila/driver.go

NOTE(stephenfin): Merge conflicts are due to the absence of PR kubernetes#2734,
which we don't want to backport.

Signed-off-by: Stephen Finucane <[email protected]>
stephenfin added a commit to shiftstack/cloud-provider-openstack that referenced this pull request May 8, 2025
%T prints the type. %t prints the word true/false, which is what we
want. [1]

[1] https://pkg.go.dev/fmt

Conflicts:
	pkg/csi/manila/driver.go

NOTE(stephenfin): Merge conflicts are due to the absence of PR kubernetes#2734,
which we don't want to backport.

Signed-off-by: Stephen Finucane <[email protected]>
stephenfin added a commit to shiftstack/cloud-provider-openstack that referenced this pull request May 8, 2025
%T prints the type. %t prints the word true/false, which is what we
want. [1]

[1] https://pkg.go.dev/fmt

Conflicts:
	pkg/csi/manila/driver.go

NOTE(stephenfin): Merge conflicts are due to the absence of PR kubernetes#2734,
which we don't want to backport.

Signed-off-by: Stephen Finucane <[email protected]>
mandre pushed a commit to shiftstack/cloud-provider-openstack that referenced this pull request Jun 13, 2025
%T prints the type. %t prints the word true/false, which is what we
want. [1]

[1] https://pkg.go.dev/fmt

Conflicts:
	pkg/csi/manila/driver.go

NOTE(stephenfin): Merge conflicts are due to the absence of PR kubernetes#2734,
which we don't want to backport.

Signed-off-by: Stephen Finucane <[email protected]>
mandre pushed a commit to shiftstack/cloud-provider-openstack that referenced this pull request Jun 13, 2025
%T prints the type. %t prints the word true/false, which is what we
want. [1]

[1] https://pkg.go.dev/fmt

Conflicts:
	pkg/csi/manila/driver.go

NOTE(stephenfin): Merge conflicts are due to the absence of PR kubernetes#2734,
which we don't want to backport.

Signed-off-by: Stephen Finucane <[email protected]>
stephenfin added a commit to shiftstack/csi-operator that referenced this pull request Jun 24, 2025
This option is deprecated as the driver can now auto-configure this [1].
We can also remove some unnecessary quoting.

Note that we don't remove the option from the NFS driver as that is a
separate binary that doesn't support this auto-configuration.

[1] kubernetes/cloud-provider-openstack#2734

Signed-off-by: Stephen Finucane <[email protected]>
k8s-ci-robot pushed a commit that referenced this pull request Jul 2, 2025
…hen --with-topology=False (#2872)

* cinder-csi-plugin, manila-csi-plugin: Correct formatting character

%T prints the type. %t prints the word true/false, which is what we
want. [1]

[1] https://pkg.go.dev/fmt

Conflicts:
	pkg/csi/manila/driver.go

NOTE(stephenfin): Merge conflicts are due to the absence of PR #2734,
which we don't want to backport.

Signed-off-by: Stephen Finucane <[email protected]>

* cinder-csi-plugin: Don't report topology capability when --with-topology=False

The 'PluginCapability_Service_VOLUME_ACCESSIBILITY_CONSTRAINTS'
capability flag determines whether the provisioner attempts to look up
topology information from the node or not [1][2]. If we report it but
don't return topology information from the node, we end up with
failures to provision [3]. Fix the issue by optionally reporting the
capability, like Manila already does.

[1] https://github.com/kubernetes-csi/external-provisioner/blob/17e2429e9f/pkg/controller/controller.go#L685-L700
[2] https://github.com/kubernetes-csi/external-provisioner/blob/17e2429e9f/pkg/controller/controller.go#L994-L996
[3] https://github.com/kubernetes-csi/external-provisioner/blob/17e2429e9f/pkg/controller/topology.go#L177

Signed-off-by: Stephen Finucane <[email protected]>

* manila-csi-plugin: Unify some logging between cinder, manila

Signed-off-by: Stephen Finucane <[email protected]>

---------

Signed-off-by: Stephen Finucane <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

3 participants