add-osd action fails to add the osd disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charmed Operator - MicroCeph |
New
|
Undecided
|
Unassigned |
Bug Description
Action "add-osd" fails to add the disk device as osd to the microceph cluster and returns below error:
$ juju run-action microceph/3 add-osd device-id=/dev/vdb --wait
unit-microceph-3:
UnitId: microceph/3
id: "26"
message: "Error: Failed adding new disk: Failed to bootstrap OSD: Failed to run:
ceph-osd --mkfs --no-mon-config -i 0: exit status 250 (2023-10-
7fb8383fa800 -1 bluestore(
to load os-type: (2) No such file or directory\
-1 bluestore(
file or directory\
failed with error (2) No such file or directory\
7fb8383fa800 -1 \e[0;31m ** ERROR: error creating empty object store in /var/lib/
(2) No such file or directory\e[0m)\n"
results: {}
status: failed
timing:
completed: 2023-10-03 09:01:09 +0000 UTC
enqueued: 2023-10-03 09:01:07 +0000 UTC
started: 2023-10-03 09:01:07 +0000 UTC
$
microceph/3 was also the leader unit.
No such directory existed actually:
# ls -lrt /var/lib/
ls: cannot access '/var/lib/
#
Whereas the microceph cli inside the unit worked absolutely fine, used below command after ssh-ing into the same unit, which completed successfully:
microceph disk add /dev/vdb --wipe