Comment 5 for bug 2065470

Revision history for this message
Nobuto Murata (nobuto) wrote :

The microceph charm reef/edge rev.32 gives the following in the debug output.

unit-microceph-0: 09:09:38 DEBUG unit.microceph/0.juju-log Emitting Juju event list_disks_action.
unit-microceph-0: 09:09:38 DEBUG unit.microceph/0.juju-log Running command sudo microceph disk list
unit-microceph-0: 09:09:38 DEBUG unit.microceph/0.juju-log Command finished. stdout=Disks configured in MicroCeph:
+-----+-----------+-------------------------------------------+
| OSD | LOCATION | PATH |
+-----+-----------+-------------------------------------------+
| 1 | sunbeam-1 | /dev/disk/by-path/virtio-pci-0000:06:00.0 |
+-----+-----------+-------------------------------------------+
, stderr=
unit-microceph-0: 09:09:38 DEBUG unit.microceph/0.list-disks {'osds': [], 'unpartitioned-disks': []}

So it doesn't add `--json` to the `microceph disk list` and that's why it fails to parse the output.

reef/edge: 32 2024-03-21 should be missing the following changes based on the dates:
https://github.com/canonical/charm-microceph/pull/51