Bootstrapping with disks in preseeds while actually missing fails with cryptic error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charmed Operator - MicroCeph |
New
|
Undecided
|
Unassigned | ||
OpenStack Snap |
In Progress
|
Medium
|
Hemanth Nakkina |
Bug Description
I bootstrapped a node running: `sunbeam cluster bootstrap -p preseed.yaml --role storage --role compute --role control` on a VM without disks attached.
With disks defined in preseed.yaml as:
microceph_config:
bm0.lxd:
osd_devices: /dev/disk/
Running without verbose ends with:
Error: {'return-code': 0}
Running with verbose, you get these logs:
DEBUG Running action list-disks on microceph/0 microceph.py:269
[08:28:02] DEBUG Result after running action list-disks: {'osds': '[]', 'return-code': 0, 'stdout': "{'osds': [], 'unpartitioned-
DEBUG Unpartitioned disks: [] microceph.py:286
DEBUG {'microceph_
DEBUG [put] http+unix:
DEBUG http://
DEBUG Response(<Response [200]>) = {"type"
DEBUG Running step bm0.lxd common.py:241
DEBUG Running action add-osd on microceph/0 microceph.py:350
⠸ Configuring MicroCeph storage ... [08:28:03] DEBUG {'return-code': 0} microceph.py:363
DEBUG Finished running step 'bm0.lxd'. Result: ResultType.FAILED common.py:244
Error: {'return-code': 0}
After attaching the disks to the VM, the bootstrap ran to completion. Error message could be better on this error case.
Changed in snap-openstack: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in snap-openstack: | |
status: | Triaged → In Progress |
PR proposed: https:/ /github. com/canonical/ snap-openstack/ pull/190