Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microceph #311

Merged
merged 19 commits into from
Oct 15, 2024
Merged

Microceph #311

merged 19 commits into from
Oct 15, 2024

Conversation

simondeziel
Copy link
Member

@simondeziel simondeziel commented Oct 8, 2024

@simondeziel simondeziel force-pushed the microceph branch 18 times, most recently from 2d39253 to 0bf18e8 Compare October 11, 2024 23:06
@simondeziel simondeziel marked this pull request as ready for review October 12, 2024 01:10
@simondeziel
Copy link
Member Author

@tomponline as green as it gets. I included more than the setup-microceph action integration as I've been sitting on that one for long enough to have many retries :)

I've kept the tests/vm-migration using the older microceph integration as I will update it once I'm done with making that setup-microceph action consumable locally.

Copy link
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good except the uefi vars editor change

Be more consistent with quoting.

Signed-off-by: Simon Deziel <[email protected]>
With this kernel the ephemeral device remains active when microceph tries to wipe it:

```
jbd2/sdb1  537                           root  cwd       DIR                8,1          4096          2 /
jbd2/sdb1  537                           root  rtd       DIR                8,1          4096          2 /
jbd2/sdb1  537                           root  txt   unknown                                             /proc/537/exe
```

`microceph`'s error signature looks like this:

```
+ sudo microceph disk add --wipe /dev/sdb

+----------+---------+
|   PATH   | STATUS  |
+----------+---------+
| /dev/sdb | Failure |
+----------+---------+
Error: failed to bootstrap OSD: Failed to run: ceph-osd --mkfs --no-mon-config -i 1: exit status 250 (2024-10-11T18:58:48.321+0000 7f5652ac1600 -1 bluestore(/var/lib/ceph/osd/ceph-1/block) _read_bdev_label unable to decode label /var/lib/ceph/osd/ceph-1/block at offset 102: void bluestore_bdev_label_t::decode(ceph::buffer::v15_2_0::list::const_iterator&) decode past end of struct encoding: Malformed input [buffer:3]
2024-10-11T18:58:48.325+0000 7f5652ac1600 -1 bluestore(/var/lib/ceph/osd/ceph-1/block) _read_bdev_label unable to decode label /var/lib/ceph/osd/ceph-1/block at offset 102: void bluestore_bdev_label_t::decode(ceph::buffer::v15_2_0::list::const_iterator&) decode past end of struct encoding: Malformed input [buffer:3]
2024-10-11T18:58:48.325+0000 7f5652ac1600 -1 bluestore(/var/lib/ceph/osd/ceph-1/block) _read_bdev_label unable to decode label /var/lib/ceph/osd/ceph-1/block at offset 102: void bluestore_bdev_label_t::decode(ceph::buffer::v15_2_0::list::const_iterator&) decode past end of struct encoding: Malformed input [buffer:3]
2024-10-11T18:58:48.345+0000 7f5652ac1600 -1 bdev(0x55573ad72000 /var/lib/ceph/osd/ceph-1/block) open open got: (16) Device or resource busy
2024-10-11T18:58:48.345+0000 7f5652ac1600 -1 bluestore(/var/lib/ceph/osd/ceph-1) mkfs failed, (16) Device or resource busy
dmesg logs
```

Hypothesys: when `/mnt` is umount'ed, it's not done doing the lazy init which
causes the jbd2 thread to stick around preventing the release of the partition?

Signed-off-by: Simon Deziel <[email protected]>
LXD 4.0 doesn't have the cpu_hotplug API extension so this test is skipped
anyway.

Signed-off-by: Simon Deziel <[email protected]>
@simondeziel
Copy link
Member Author

@tomponline all green now and the efi-vars-editor-vm change was replaced by a comment, as suggested.

@tomponline tomponline merged commit e49fb3b into canonical:main Oct 15, 2024
142 checks passed
@simondeziel simondeziel deleted the microceph branch October 15, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CI checks for VMs on MicroCeph
2 participants