Bug #11231
closedperf counter for bool parameter
0%
Description
input:
ceph tell osd.0 injectargs "--osd_enable_op_tracker true"
Output:
failed to parse arguments: true
osd_enable_op_tracker = 'true'
Is my command wrong? or it is a bug? If it is a bug, I would fix it.
Updated by Sage Weil about 9 years ago
- Status changed from New to Rejected
for a bool option, you can do
--foo
--no-foo
--foo=(0|false|no)
--foo=(1|true|yes)
Updated by Jevon Qiao about 8 years ago
Sage Weil wrote:
for a bool option, you can do
--foo
--no-foo
--foo=(0|false|no)
--foo=(1|true|yes)
It seems all above options do not work for me:
$ ceph tell osd.144 injectargs "--osd_enable_op_tracker no"
failed to parse arguments: no
osd_enable_op_tracker = 'true'
$ ceph tell osd.144 injectargs "--osd_enable_op_tracker 0"
failed to parse arguments: 0
osd_enable_op_tracker = 'true'
$ ceph tell osd.144 injectargs "--osd_enable_op_tracker false"
failed to parse arguments: false
osd_enable_op_tracker = 'true'
BTW, my ceph version is 0.80.91.
Updated by Jevon Qiao about 8 years ago
$ ceph tell osd.144 injectargs "--osd_enable_op_tracker=false"
Invalid command: saw 0 of injected_args(<string>) [<string>...], expected at least 1
injectargs <injected_args> [<injected_args>...] : inject configuration arguments into running OSD
Error EINVAL: invalid command
$ ceph tell osd.144 injectargs "--osd_enable_op_tracker=no"
Invalid command: saw 0 of injected_args(<string>) [<string>...], expected at least 1
injectargs <injected_args> [<injected_args>...] : inject configuration arguments into running OSD
Error EINVAL: invalid command
$ ceph tell osd.144 injectargs "--osd_enable_op_tracker=0"
Invalid command: saw 0 of injected_args(<string>) [<string>...], expected at least 1
injectargs <injected_args> [<injected_args>...] : inject configuration arguments into running OSD
Error EINVAL: invalid command
These do not work either.