Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

libvirt: automatic fallback to qemu #158

Merged
merged 7 commits into from
Jan 5, 2022

Conversation

apatard
Copy link
Member

@apatard apatard commented Dec 17, 2021

[ While it would have been better to avoid any vagrant provider specific code,
there's already some. This change will add more glue to handle libvirt systems. ]

Currently, the vagrant-libvirt will try to use kvm by default and will result
in an error on systems without kvm, for instance, some Zuul instances. So, detect
if there's a /dev/kvm and in case there's none switch to qemu driver. Moreover,
things will "just" work.

Having a slow CI is surely better than no CI.

[ While it would have been better to avoid any vagrant provider specific code,
there's already some. This change will add more glue to handle libvirt systems. ]

Currently, the vagrant-libvirt will try to use kvm by default and will result
in an error on systems without kvm, for instance, some Zuul instances. So, detect
if there's a /dev/kvm and in case there's none switch to qemu driver. Moreover,
things will "just" work.

Having a slow CI is surely better than no CI.

Signed-off-by: Arnaud Patard <apatard@hupstream.com>
Now that the vagrant plugin is automatically switching to QEMU when
kvm is not available, remove the code used to handle that at the test
level.

Signed-off-by: Arnaud Patard <apatard@hupstream.com>
@apatard apatard added enhancement New feature or request feature test This PR relates to tests, QA, CI. labels Dec 17, 2021
pre-commit-ci bot and others added 4 commits January 4, 2022 18:34
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
@apatard apatard marked this pull request as ready for review January 5, 2022 10:15
@apatard apatard requested a review from ssbarnea as a code owner January 5, 2022 10:15
@ssbarnea ssbarnea changed the title molecule_vagrant/modules/vagrant.py: libvirt: automatic fallback to qemu libvirt: automatic fallback to qemu Jan 5, 2022
@ssbarnea
Copy link
Member

ssbarnea commented Jan 5, 2022

@apatard Thanks, that is indeed awesome. Out of curiosity, why I see the filename modified as part of the PR title on your changes? Are you using a tool that does append it?

@ssbarnea ssbarnea merged commit 0b1ef52 into ansible-community:main Jan 5, 2022
@apatard
Copy link
Member Author

apatard commented Jan 5, 2022

@apatard Thanks, that is indeed awesome. Out of curiosity, why I see the filename modified as part of the PR title on your changes? Are you using a tool that does append it?

It's an old habit of (kernel) development. It's kind of wired inside my brain

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request feature test This PR relates to tests, QA, CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants