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

Fix disk type for block devices on QEMU >= 6.0 #129

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

ekohl
Copy link
Contributor

@ekohl ekohl commented Jul 17, 2023

Since QEMU version 6.0, you can't use the file block driver with block devices. It tries to detect block devices by looking at the file path.

This builds on #116, but I don't have the capacity to test this myself right now.

Since QEMU version 6.0 [1], you can't use the file block driver with
block devices. It tries to detect block devices by looking at the file
path.

[1] https://wiki.qemu.org/ChangeLog/6.0#Incompatible_changes
@ekohl ekohl force-pushed the fix-disk-type-for-block-devs-on-qemu-6 branch from d95a011 to 521cf3f Compare July 18, 2023 13:58
@ekohl
Copy link
Contributor Author

ekohl commented Jul 18, 2023

@lero @rwf14f @antaflos since you were involved in #116, could you have a look?

@antaflos
Copy link

@ekohl I will look into it, thanks for pushing this issue forward! Is there an easy way to build this gem and install it into Foreman or should I just apply the patch manually and test it?

@antaflos
Copy link

Ok, seems like the vendored fog-libvirt gem in Foreman is on version 0.11.0, which is quite different from the current master branch (using XML builder instead of an ERB template), so applying this patch manually won't work.

@rwf14f
Copy link
Contributor

rwf14f commented Jul 24, 2023

The patch looks good. I've tested it on our Foreman server:

  • replaced fog-libvirt-0.11.0 with github master branch
  • applied patch
  • restarted Foreman
  • deployed a VM using an lvm2 pool (tested qemu 6.2 and 7.2)
  • deployed a VM using a directory pool (qemu 7.2)

In those cases, it produced a valid XML description and the VMs started without problems.

@ekohl
Copy link
Contributor Author

ekohl commented Jul 24, 2023

Thanks for confirming @rwf14f!

@ekohl ekohl merged commit 1c7cf79 into fog:master Jul 24, 2023
6 checks passed
@ekohl ekohl deleted the fix-disk-type-for-block-devs-on-qemu-6 branch July 24, 2023 16:14
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.

None yet

3 participants