.`--auto-resize-enabled` option requires `=` in new `ceph nvmeof ns set_auto_resize` command
In the ceph nvmeof CLI, the `set_auto_resize` command does not accept plain `yes` or `no` values for the `--auto-resize-enabled` option. Unlike other CLI operations, this command requires an equals sign (=) when specifying the value.
When this option is used incorrectly, the command fails to set or unset the automatic resizing feature.
As a workaround, use one of the following option formats:
* To enable the automatic resizing feature, use either the
`--auto-resize-enabled` or `--auto-resize-enabled=yes`option.
These options are both equivalent to `Yes`.
*To disable the automatic resizing feature, use the `--auto-resize-enabled=no` option.
Description of problem: --auto-resize-enabled is not accepting yes/no values in new "ceph nvmeof ns set_auto_resize" command While testing new ceph nvmeof cli found below issue --auto-resize-enabled is not accepting yes/no or true/false [ceph: root@ceph-jp-upstream-functional-xkny4k-node1-installer /]# ceph nvmeof ns set_auto_resize --nqn nqn.2016-06.io.spdk:cnode1 --nsid 1 --auto-resize-enabled no Invalid command: Unexpected argument 'no' nvmeof ns set_auto_resize <nqn> <nsid> [--auto-resize-enabled] [--gw_group <value>] [--traddr <value>] : Error EINVAL: invalid command [ceph: root@ceph-jp-upstream-functional-xkny4k-node1-installer /]# ceph nvmeof ns set_auto_resize --nqn nqn.2016-06.io.spdk:cnode1 --nsid 1 --auto-resize-enabled YES Invalid command: Unexpected argument 'YES' nvmeof ns set_auto_resize <nqn> <nsid> [--auto-resize-enabled] [--gw_group <value>] [--traddr <value>] : Error EINVAL: invalid command [ceph: root@ceph-jp-upstream-functional-xkny4k-node1-installer /]# ceph nvmeof ns set_auto_resize --nqn nqn.2016-06.io.spdk:cnode1 --nsid 1 --auto-resize-enabled yes Invalid command: Unexpected argument 'yes' nvmeof ns set_auto_resize <nqn> <nsid> [--auto-resize-enabled] [--gw_group <value>] [--traddr <value>] : Error EINVAL: invalid command [ceph: root@ceph-jp-upstream-functional-xkny4k-node1-installer /]# ceph nvmeof ns set_auto_resize --nqn nqn.2016-06.io.spdk:cnode1 --nsid 1 --auto-resize-enabled True Invalid command: Unexpected argument 'True' nvmeof ns set_auto_resize <nqn> <nsid> [--auto-resize-enabled] [--gw_group <value>] [--traddr <value>] : Error EINVAL: invalid command [ceph: root@ceph-jp-upstream-functional-xkny4k-node1-installer /]# ceph nvmeof ns set_auto_resize --nqn nqn.2016-06.io.spdk:cnode1 --nsid 1 --auto-resize-enabled False Invalid command: Unexpected argument 'False' nvmeof ns set_auto_resize <nqn> <nsid> [--auto-resize-enabled] [--gw_group <value>] [--traddr <value>] : Error EINVAL: invalid command When we don't provide any value to param command gets executed. [ceph: root@ceph-jp-upstream-functional-xkny4k-node1-installer /]# ceph nvmeof ns set_auto_resize --nqn nqn.2016-06.io.spdk:cnode1 --nsid 1 --auto-resize-enabled Success Expected behaviour is --auto-resize-enabled should accept yes or no. I have tested same thing using GW cli and it is working fine. [root@ceph-jp-upstream-functional-xkny4k-node6 ~]# podman run --quiet --rm quay.io/ceph/nvmeof-cli:latest --server-address 10.0.65.232 --server-port 5500 --format json namespace set_auto_resize -n nqn.2016-06.io.spdk:cnode1 --nsid 1 --auto-resize-enabled no { "error_message": "Success", "status": 0 } [root@ceph-jp-upstream-functional-xkny4k-node6 ~]# podman run --quiet --rm quay.io/ceph/nvmeof-cli:latest --server-address 10.0.65.232 --server-port 5500 --format json namespace set_auto_resize -n nqn.2016-06.io.spdk:cnode1 --nsid 1 --auto-resize-enabled yes { "error_message": "Success", "status": 0 } [root@ceph-jp-upstream-functional-xkny4k-node6 ~]# podman run --quiet --rm quay.io/ceph/nvmeof-cli:latest --server-address 10.0.65.232 --server-port 5500 --format json namespace set_auto_resize -n nqn.2016-06.io.spdk:cnode1 --nsid 1 --auto-resize-enabled no { "error_message": "Success", "status": 0 } [root@ceph-jp-upstream-functional-xkny4k-node6 ~]# [ceph: root@ceph-jp-upstream-functional-xkny4k-node1-installer /]# ceph versions { "mon": { "ceph version 20.1.0-478-ga07228d3 (a07228d33f1110b088a3ed2fab0894b8c736b989) tentacle (rc - RelWithDebInfo)": 3 }, "mgr": { "ceph version 20.1.0-478-ga07228d3 (a07228d33f1110b088a3ed2fab0894b8c736b989) tentacle (rc - RelWithDebInfo)": 2 }, "osd": { "ceph version 20.1.0-478-ga07228d3 (a07228d33f1110b088a3ed2fab0894b8c736b989) tentacle (rc - RelWithDebInfo)": 12 }, "overall": { "ceph version 20.1.0-478-ga07228d3 (a07228d33f1110b088a3ed2fab0894b8c736b989) tentacle (rc - RelWithDebInfo)": 17 } } [ceph: root@ceph-jp-upstream-functional-xkny4k-node1-installer /]# ceph orch ps | grep "nvme" nvmeof.pool1.group1.ceph-jp-upstream-functional-xkny4k-node6.htnovk ceph-jp-upstream-functional-xkny4k-node6 *:5500,4420,8009,10008 running (64m) 2m ago 64m 257M - 1.6.0 867f7ac6ae01 6a785b09888d nvmeof.pool1.group1.ceph-jp-upstream-functional-xkny4k-node7.tybled ceph-jp-upstream-functional-xkny4k-node7 *:5500,4420,8009,10008 running (64m) 2m ago 64m 246M - 1.6.0 867f7ac6ae01 3d28afffe7fb [ceph: root@ceph-jp-upstream-functional-xkny4k-node1-installer /]# Version-Release number of selected component (if applicable): How reproducible: Easy Steps to Reproduce: 1. Deploy cluster with Tentacle 2. Deploy nvme service, configure subsystems, initiators, listeners and namespaces 3. Try executing "ceph nvmeof ns set_auto_resize --nqn nqn.2016-06.io.spdk:cnode1 --nsid 1 --auto-resize-enabled no" command Actual results: --auto-resize-enabled is not accepting input and command is failing Expected results: command should execute without any issues and set "--auto-resize-enabled" Additional info: