[6.18.z] Modifications in CLI and UI Libvirt CR to resolve key error - #20759
Closed
nacoool wants to merge 0 commit into
Closed
[6.18.z] Modifications in CLI and UI Libvirt CR to resolve key error#20759nacoool wants to merge 0 commit into
nacoool wants to merge 0 commit into
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates Libvirt compute resource provisioning tests (CLI and UI) to handle firmware-specific behavior, make host build-status checks more robust, and ensure IPv4 DHCP state is reset before provisioning, reducing flaky failures and key errors. Sequence diagram for IPv4 Libvirt provisioning with DHCP resetsequenceDiagram
actor Tester
participant PytestRunner
participant Module_provisioning_sat
participant Satellite
participant DHCPServer
Tester->>PytestRunner: run Libvirt compute resource tests
PytestRunner->>Module_provisioning_sat: request Satellite provisioning fixture
Module_provisioning_sat->>Satellite: create Satellite entities
Module_provisioning_sat->>Satellite: create Libvirt compute resource
alt network_type is IPv4
Module_provisioning_sat->>Satellite: execute cat /dev/null > /var/lib/dhcpd/dhcpd.leases
Satellite->>DHCPServer: clear dhcpd.leases file
Module_provisioning_sat->>Satellite: execute systemctl restart dhcpd
Satellite->>DHCPServer: restart dhcpd service
else network_type is not IPv4
Module_provisioning_sat-->>Satellite: skip DHCP reset
end
Module_provisioning_sat-->>PytestRunner: return sat, domain, subnet, provisioning_type
PytestRunner-->>Tester: run CLI and UI Libvirt tests using provisioned Satellite
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The skip condition for
pxe_loader.vm_firmwarechecks['uefi', 'uefi_secure_boot']while the parametrized values are['bios', 'uefi', 'secureboot']; verify thatvm_firmwareactually matches these strings (e.g.,securebootvsuefi_secure_boot) so the intended cases are reliably skipped. - The hardcoded
dhcpd.leasespath andsystemctl restart dhcpdinmodule_provisioning_satmay be brittle across environments; consider centralizing these commands or adding a small helper that can handle alternative service names/paths or at least logs clearer errors when these commands fail.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The skip condition for `pxe_loader.vm_firmware` checks `['uefi', 'uefi_secure_boot']` while the parametrized values are `['bios', 'uefi', 'secureboot']`; verify that `vm_firmware` actually matches these strings (e.g., `secureboot` vs `uefi_secure_boot`) so the intended cases are reliably skipped.
- The hardcoded `dhcpd.leases` path and `systemctl restart dhcpd` in `module_provisioning_sat` may be brittle across environments; consider centralizing these commands or adding a small helper that can handle alternative service names/paths or at least logs clearer errors when these commands fail.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Contributor
Author
|
trigger: test-robottelo |
Contributor
Author
|
nacoool
force-pushed
the
Test_Libvirt_6.18.z
branch
from
February 17, 2026 12:13
5f3bebf to
6f4c8db
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem Statement
Cherry pick of
Modifications in CLI and UI Libvirt CR to resolve key errorfailedSolution
New PR to add CP manually for #20176
Related Issues
Summary by Sourcery
Update Libvirt provisioning tests and fixtures to improve reliability and handle missing status keys while adjusting PXE loaders and UI host lookup.
Bug Fixes:
Enhancements:
Tests: