[remove-disk action] Validation fails when passing a single number to osd-ids
Bug #1985882 reported by
Trent Lloyd
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
The remove-disk action fails when trying to pass a single OSD ID, because juju believes it is a number and does not validate as a "string"
$ juju run-action --wait ceph-osd/0 remove-disk osd-ids="18"
errors:
0: 'validation failed: (root).osd-ids : must be of type string, given 18'
This happens whether you quote the parameter or not.
This is perhaps an issue that should be re-targetted to juju - it's not unlikely other use-cases will hit this and a number should be validated as a string.
affects: | charm-ceph-osd → juju |
To post a comment you must log in.
This does seem like a limitation in the juju CLI. As a quick workaround, you can always use "osd.18". In the meantime, we should check whether we should support both forms ('osd.X' and 'X').