[remove-disk action] Validation fails when passing a single number to osd-ids

Bug #1985882 reported by Trent Lloyd
6
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.

Revision history for this message
Luciano Lo Giudice (lmlogiudice) wrote :

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').

Changed in charm-ceph-osd:
status: New → Triaged
importance: Undecided → Low
affects: charm-ceph-osd → juju
Revision history for this message
Juan M. Tirado (tiradojm) wrote :

Could you please provide juju and controller versions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.