-
Notifications
You must be signed in to change notification settings - Fork 179
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 ch libvirt #3562
base: main
Are you sure you want to change the base?
Fix ch libvirt #3562
Conversation
0d96c83
to
c9741e8
Compare
fyi, working on flake8 failures. |
c9741e8
to
4562237
Compare
You can follow this doc to set local dev env, so check errors could be fixed locally. https://mslisa.readthedocs.io/en/main/write_test/dev_setup.html |
4562237
to
2863d53
Compare
2863d53
to
96f17da
Compare
node.execute("systemctl enable libvirtd", shell=True, sudo=True) | ||
node.execute("systemctl enable virtnetworkd", shell=True, sudo=True) | ||
log.info("Enabled libvirtd and virtnetworkd services") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these steps apply to the older 6.X Libvirt as well? If not, we should execute them conditionally based on the the version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by 6.x do you mean by the Libvirt in ch
branch? I am not sure how this will work when compiled within our test pipelines.
If installed with rpms, virtnetworkd.service
will be a service packaged in our libvirt rpms.
Properly parse libvirt version and return only the version information. Signed-off-by: Praveen K Paladugu <[email protected]>
Libvirt versions greater than 10.2.0, define domain as 'hyperv' or 'kvm' based on the underlying hypervisor. Set this domain appropriately in domain's XML after checking libvirt version. Signed-off-by: Praveen K Paladugu <[email protected]>
Enable virtnetworkd service along with libvritd service. virtnetworkd service will setup the default NAT network for guests to use. Signed-off-by: Praveen K Paladugu <[email protected]>
96f17da
to
0beb184
Compare
Seems like a failure while installing python modules:
Could re-triggering the pipeline fix the failures? |
@LiliDeng LGTM |
rebase code from latest main |
This patch series fixes the libvirt version parsing and sets the domain based on the underlying hypervisor.