Project

General

Profile

Actions

Bug #74308

closed

qemu-agent-command is unable to connect to qemu-agent after installing windows vm image

Added by Kefu Chai 3 months ago. Updated 2 months ago.

Status:
Can't reproduce
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

in ceph-build/scripts/ceph-windows/setup_libvirt_windows_vm, we setup the Windows VM to run Ceph client, but recently, after running "virt-install", the qemu-agent-command is not able to connect qemu-agent before timeout:

+ sudo virt-install --name ceph-windows-client-ceph-windows-pull-requests-71112 --os-variant win2k19 --import --virt-type kvm --graphics spice --cpu host --vcpus 32 --memory 32768 --disk /home/jenkins-build/build/workspace/ceph-windows-pull-requests/libvirt/ceph-windows-client.qcow2,bus=virtio --network network=default,model=virtio --controller type=virtio-serial --channel unix,target_type=virtio,name=org.qemu.guest_agent.0 --noautoconsol

Starting install...

Creating domain...                                          |    0 B  00:00     
Domain creation completed.
++ VM_NAME=ceph-windows-client-ceph-windows-pull-requests-71112
++ SSH_USER=administrator
++ get_libvirt_vm_ssh_address
++ [[ -z ceph-windows-client-ceph-windows-pull-requests-71112 ]]
++ [[ -z administrator ]]
++ which xmllint
++ which jq
++ sudo virsh dumpxml ceph-windows-client-ceph-windows-pull-requests-71112
+++ xmllint --xpath 'string(/domain/devices/interface/mac/@address)' /home/jenkins-build/build/workspace/ceph-windows-pull-requests/libvirt/ceph-windows-client-ceph-windows-pull-requests-71112.xml
++ local VM_NIC_MAC_ADDRESS=52:54:00:46:fb:74
++ rm /home/jenkins-build/build/workspace/ceph-windows-pull-requests/libvirt/ceph-windows-client-ceph-windows-pull-requests-71112.xml
++ local TIMEOUT=600
++ local SLEEP_SECS=10
++ SECONDS=0
++ true
++ [[ 0 -gt 600 ]]
+++ sudo virsh qemu-agent-command ceph-windows-client-ceph-windows-pull-requests-71112 '{"execute":"guest-network-get-interfaces"}'
+++ jq -r '.return[] | select(."hardware-address"=="52:54:00:46:fb:74") | ."ip-addresses"[] | select(."ip-address" | startswith("192.168.122.")) | ."ip-address"'
error: Guest agent is not responding: QEMU guest agent is not connected
++ VM_IP=
++ echo 'Retrying in 10 seconds'
...
++ [[ 602 -gt 600 ]]
++ echo 'Timeout waiting for the VM to start'
Timeout waiting for the VM to start
++ return 1
+ export WINDOWS_VM_IP=
+ WINDOWS_VM_IP=
...
+ set -o errexit
+ set -o pipefail
+ [[ ! -f /home/jenkins-build/build/workspace/ceph-windows-pull-requests/ceph.zip ]]
+ [[ ! -f /home/jenkins-build/build/workspace/ceph-windows-pull-requests/ceph_vstart/ceph-windows.conf ]]
+ [[ ! -f /home/jenkins-build/build/workspace/ceph-windows-pull-requests/ceph_vstart/keyring ]]
+ [[ -z administrator ]]
+ [[ -z '' ]]
+ echo 'ERROR: The WINDOWS_VM_IP env variable is not set'
ERROR: The WINDOWS_VM_IP env variable is not set

and this fails CI workflow for testing the windows client . for the full logging message. see the attached file.

see also https://jenkins.ceph.com/job/ceph-windows-pull-requests/71112/consoleText for the jenkins job.


Files

consoleText.zip (442 KB) consoleText.zip Kefu Chai, 01/04/2026 04:06 AM
Actions #1

Updated by Kefu Chai 3 months ago

  • Description updated (diff)
Actions #2

Updated by Kefu Chai 3 months ago

  • Priority changed from Normal to High

i am changing the priority to "High", as the "ceph windows tests" CI workflow is marked as "required" for merging a pull request. while this workflow is constantly failing.

Actions #3

Updated by Kefu Chai 2 months ago

  • Status changed from New to Can't reproduce
Actions

Also available in: Atom PDF