You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are no longer used or necessary, now that we retrieve this
information from the metadata service.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
iferr:=cmd.PersistentFlags().MarkDeprecated("nodeid", "This flag would be removed in future. Currently, the value is ignored by the driver"); err!=nil {
79
+
iferr:=cmd.PersistentFlags().MarkDeprecated("nodeid", "This option is now ignored by the driver. It will be removed in a future release."); err!=nil {
80
80
klog.Fatalf("Unable to mark flag nodeid to be deprecated: %v", err)
cmd.PersistentFlags().StringVar(&driverName, "drivername", "manila.csi.openstack.org", "name of the driver")
133
128
134
-
cmd.PersistentFlags().StringVar(&nodeID, "nodeid", "", "this node's ID. This value is required if the node service is provided by this CSI driver instance.")
Copy file name to clipboardExpand all lines: docs/cinder-csi-plugin/using-cinder-csi-plugin.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ In addition to the standard set of klog flags, `cinder-csi-plugin` accepts the f
56
56
<dl>
57
57
<dt>--nodeid <node id></dt>
58
58
<dd>
59
-
This argument is deprecated, will be removed in future.
59
+
This argument is deprecated. It will be removed in future.
60
60
61
61
An identifier for the current node which will be used in OpenStack API calls. This can be either the UUID or name of the OpenStack server, but note that if using name it must be unique.
`--drivername` | `manila.csi.openstack.org` | Name of this driver
37
-
`--nodeid` | _none_ | ID of this node
38
-
`--nodeaz` | _none_ | Availability zone of this node
37
+
`--nodeid` | _none_ | **DEPRECATED**ID of this node. This value is now automatically retrieved from the metadata service.
38
+
`--nodeaz` | _none_ | **DEPRECATED**Availability zone of this node. This value is now automatically retrieved from the metadata service.
39
39
`--runtime-config-file` | _none_ | Path to the [runtime configuration file](#runtime-configuration-file)
40
40
`--with-topology` | _none_ | CSI Manila is topology-aware. See [Topology-aware dynamic provisioning](#topology-aware-dynamic-provisioning) for more info
41
41
`--share-protocol-selector` | _none_ | Specifies which Manila share protocol to use for this instance of the driver. See [supported protocols](#share-protocol-support-matrix) for valid values.
@@ -103,7 +103,7 @@ With topology awareness enabled, administrators can specify the mapping between
103
103
Doing so will instruct the CO scheduler to place the workloads+shares only on nodes that are able to reach the underlying storage.
104
104
105
105
CSI Manila uses `topology.manila.csi.openstack.org/zone`_topology key_ to identify node's affinity to a certain compute availability zone.
106
-
Each node of the cluster then gets labeled with a key/value pair of `topology.manila.csi.openstack.org/zone`/ value of [`--nodeaz`](#command-line-arguments) cmd arg.
106
+
Each node of the cluster then gets labeled with the `topology.manila.csi.openstack.org/zone`where the value is the value of the AZ retrieved from the Nova metadata service.
107
107
108
108
This label may be used as a node selector when defining topology constraints for dynamic provisioning.
109
109
Administrators are also free to pass arbitrary labels, and as long as they are valid node selectors, they will be honored by the scheduler.
@@ -258,11 +258,10 @@ To test the deployment further, see `examples/csi-manila-plugin`.
258
258
259
259
If you're deploying CSI Manila with Helm:
260
260
1. Set `csimanila.topologyAwarenessEnabled` to `true`
261
-
2. Set `csimanila.nodeAZ`. This value will be sourced into the [`--nodeaz`](#command-line-arguments) cmd flag. Bash expressions are also allowed.
262
261
263
262
If you're deploying CSI Manila manually:
264
263
1. Run the [external-provisioner](https://github.com/kubernetes-csi/external-provisioner) with `--feature-gates=Topology=true` cmd flag.
265
-
2. Run CSI Manila with [`--with-topology`](#command-line-arguments) and set [`--nodeaz`](#command-line-arguments) to node's availability zone. For Nova, the zone may be retrieved via the Metadata service like so: `--nodeaz=$(curl http://169.254.169.254/openstack/latest/meta_data.json | jq -r .availability_zone)`
264
+
2. Run CSI Manila with [`--with-topology`](#command-line-arguments).
266
265
267
266
See `examples/csi-manila-plugin/nfs/topology-aware` for examples on defining topology constraints.
0 commit comments