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
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. 0.juju- log Running command sudo microceph disk list 0.juju- log Command finished. stdout=Disks configured in MicroCeph: ------- ----+-- ------- ------- ------- ------- ------- ------+ ------- ----+-- ------- ------- ------- ------- ------- ------+ by-path/ virtio- pci-0000: 06:00.0 | ------- ----+-- ------- ------- ------- ------- ------- ------+ 0.list- disks {'osds': [], 'unpartitioned- disks': []}
unit-microceph-0: 09:09:38 DEBUG unit.microceph/
unit-microceph-0: 09:09:38 DEBUG unit.microceph/
+-----+
| OSD | LOCATION | PATH |
+-----+
| 1 | sunbeam-1 | /dev/disk/
+-----+
, stderr=
unit-microceph-0: 09:09:38 DEBUG unit.microceph/
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: /github. com/canonical/ charm-microceph /pull/51
https:/