canonical / canonical/microceph
User interface: `--debug` and `--verbose` not informative
- Dominant language
- Go
- Stars
- 396
- Forks
- 74
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 7
Description
We have a `--verbose` and a `--debug` flag for microceph, but they're not really doing much for some commands, e.g.
```
ubuntu@vm-0:~$ sudo microceph disk list
Disks configured in MicroCeph:
+-----+----------+-----------------------------------------------------------+
| OSD | LOCATION | PATH |
+-----+----------+-----------------------------------------------------------+
| 0 | vm-0 | /dev/disk/by-id/scsi-SQEMU_QEMU_HARDDISK_lxd_vm--0--disk0 |
+-----+----------+-----------------------------------------------------------+
| 1 | vm-1 | /dev/disk/by-id/scsi-SQEMU_QEMU_HARDDISK_lxd_vm--1--disk0 |
+-----+----------+-----------------------------------------------------------+
| 2 | vm-2 | /dev/disk/by-id/scsi-SQEMU_QEMU_HARDDISK_lxd_vm--2--disk0 |
+-----+----------+-----------------------------------------------------------+
Available unpartitioned disks on this system:
+-------+----------+------+------+
| MODEL | CAPACITY | TYPE | PATH |
+-------+----------+------+------+
ubuntu@vm-0:~$ sudo microceph disk list -v
Disks configured in MicroCeph:
+-----+----------+-----------------------------------------------------------+
| OSD | LOCATION | PATH |
+-----+----------+-----------------------------------------------------------+
| 0 | vm-0 | /dev/disk/by-id/scsi-SQEMU_QEMU_HARDDISK_lxd_vm--0--disk0 |
+-----+----------+-----------------------------------------------------------+
| 1 | vm-1 | /dev/disk/by-id/scsi-SQEMU_QEMU_HARDDISK_lxd_vm--1--disk0 |
+-----+----------+-----------------------------------------------------------+
| 2 | vm-2 | /dev/disk/by-id/scsi-SQEMU_QEMU_HARDDISK_lxd_vm--2--disk0 |
+-----+----------+-----------------------------------------------------------+
Available unpartitioned disks on this system:
+-------+----------+------+------+
| MODEL | CAPACITY | TYPE | PATH |
+-------+----------+------+------+
ubuntu@vm-0:~$ sudo microceph disk list -d
Disks configured in MicroCeph:
+-----+----------+-----------------------------------------------------------+
| OSD | LOCATION | PATH |
+-----+----------+-----------------------------------------------------------+
| 0 | vm-0 | /dev/disk/by-id/scsi-SQEMU_QEMU_HARDDISK_lxd_vm--0--disk0 |
+-----+----------+-----------------------------------------------------------+
| 1 | vm-1 | /dev/disk/by-id/scsi-SQEMU_QEMU_HARDDISK_lxd_vm--1--disk0 |
+-----+----------+-----------------------------------------------------------+
| 2 | vm-2 | /dev/disk/by-id/scsi-SQEMU_QEMU_HARDDISK_lxd_vm--2--disk0 |
+-----+----------+-----------------------------------------------------------+
Available unpartitioned disks on this system:
+-------+----------+------+------+
| MODEL | CAPACITY | TYPE | PATH |
+-------+----------+------+------+
```
Contributor guide
Research direction
Start by reproducing `microceph disk list`, `microceph disk list -v`, and `microceph disk list -d`, then trace where the `--verbose` and `--debug` flags are handled. Done should mean these flags provide informative additional output for commands such as `disk list`, but the issue does not name specific files, tests, or expected output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100