Interesting Matthias, thanks for the report.
First I was trying to reproduce the case, taking a Focal system with the
version of qemu-guest-agent you reported and then making sure it is
installed, up and running:
● qemu-guest-agent.service - QEMU Guest Agent
Loaded: loaded (/lib/systemd/system/qemu-guest-agent.service; static;
vendor preset: enabled)
Active: active (running) since Tue 2020-06-02 05:25:04 UTC; 3min 8s ago
Main PID: 624 (qemu-ga)
Tasks: 1 (limit: 533)
Memory: 900.0K
CGroup: /system.slice/qemu-guest-agent.service
└─624 /usr/sbin/qemu-ga
Jun 02 05:25:04 focal systemd[1]: Started QEMU Guest Agent.
I was trailing main console, journal, dmesg and htop and passed a shutdown
command through virsh.
$ virsh shutdown focal --mode agent
The guest almost immediately went down, without issues.
In fact it was so fast that none of the outputs I was tracking spit out
a message like the one you reported.
I was checking the logs afterwards and found:
Jun 02 05:25:04 focal systemd[1]: Started QEMU Guest Agent.
...
Jun 02 05:29:54 focal qemu-ga[624]: info: guest-shutdown called, mode: powerdown
Jun 02 05:29:54 focal qemu-ga[624]: **
Jun 02 05:29:54 focal qemu-ga[624]:
ERROR:/build/qemu-74sXTC/qemu-4.2/qga/main.c:532:send_response: assertion
failed: (rsp && s->channel)
Jun 02 05:29:54 focal qemu-ga[624]: Bail out!
ERROR:/build/qemu-74sXTC/qemu-4.2/qga/main.c:532:send_response: assertion
failed: (rsp && s->channel)
Jun 02 05:29:55 focal systemd[1]: Stopping QEMU Guest Agent...
Jun 02 05:29:55 focal systemd[1]: qemu-guest-agent.service: Succeeded.
Jun 02 05:29:55 focal systemd[1]: Stopped QEMU Guest Agent.
So yes there seems to be an issue in regard to this assertion, but it might be
a red herring for your case of being a hang on shutdown. Things work fine with
it being triggered in - at least - my system.
We'll have to find what is different in yours to then cause the hang.
Would you have a guest-xml of your guest so I can try to spot differences?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1881668
Title:
qemu-guest-agent asserts on shutdown, shutdown never reached
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1881668/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs