ci: fix missing libvirt default network in test-coreos job#2158
Closed
Copilot wants to merge 2 commits into
Closed
ci: fix missing libvirt default network in test-coreos job#2158Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/bootc-dev/bootc/sessions/ee405f32-f5cc-4142-b943-beb7eecfaf00 Co-authored-by: jmarrero <1894385+jmarrero@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update workflow in ci.yml to define default libvirt network
ci: fix missing libvirt default network in test-coreos job
Apr 23, 2026
Contributor
|
closing @jeckersb is investigating this. |
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.
The
test-coreosjob was failing withNetwork not found: no network with matching name 'default', causing the provisioned VM to never receive a DHCP lease and TMT's SSH wait to exhaust all 60 attempts.Changes
.github/workflows/ci.yml— Replace the step that only started the network if it already existed with one that defines it from a minimal NAT XML template when absent, then starts and autostarts it:crates/xtask/src/tmt.rs— Adddump_libvirt_diagnostics()called on SSH verification failure, emittingvirsh list/net-list/net-dhcp-leases/dominfo/domiflist/dumpxmlto stderr so future failures produce actionable output instead of a bare timeout.Original prompt
Update existing PR #2157 in repository bootc-dev/bootc by adjusting the workflow change in
.github/workflows/ci.ymlfor thetest-coreosjob.Context:
virsh net-dhcp-leases defaultfails withNetwork not found: no network with matching name 'default'/tmt/plans/tests-install/plan-bootc-install-on-coreosfails afterSSH connectivity check failed after 60 attempts.defaultnetwork only if it already exists.defaultlibvirt network when it is absent, then start and autostart it.Required change:
.github/workflows/ci.yml, in thetest-coreosjob, replace the existing step named similar toEnsure libvirt default network is activewith a step that:virsh net-list --all || trueif ! virsh net-info default >/dev/null 2>&1; then ... fi/tmp/default-net.xmlwith:defaultnatvirbr0192.168.122.0/24192.168.122.2to192.168.122.254sudo virsh net-define /tmp/default-net.xmlwhen missingsudo virsh net-start default || truesudo virsh net-autostart default || truevirsh net-list --allandvirsh net-dhcp-leases default || trueSuggested replacement snippet:
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Please find a solution for this failing job. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.
Assistant: The job is failing because the CoreOS TMT plan can’t SSH into the provisioned VM. The key clue is in the libvirt diagnostics:
virsh net-dhcp-leases default→ Network not found: no network with matching name 'default'So the VM never gets connectivity because the libvirt “default” NAT network is missing/not defined in the runner environment being used for this job.
Fix: ensure the libvirt default network exists (define + start it)
Your workflow already tries to start the network, but it only does so if it already exists:
That doesn’t help when the network is absent (which is what the logs show). Update the “Ensure libvirt default network is active” step to define it when missing, then start/autostart it.
Suggested workflow patch (in
.github/workflows/ci.yml,test-coreosjob)Replace the existing “Ensure libvirt default network is active” step with:
Notes:
This pull request was created from Copilot chat.