clean focal install, crash report qemu-guest-agent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Eoan |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
* On shutdown the qemu-guest-agent crashes, that will
- trigger the crash reports
- throw two errors/warnings into the logs
- can cause hang (not seen in all cases)
* Since generally the shutdown seems to still work it is "only" medium,
maybe high in prio. But really should be resolved to avoid that we find
even more severe consequences (like bad guest state tracking into hard
kills, I can imagine these)
* After outlining the issue above the fix was cerated and is rather small
and easy. It applies to E-G as-is.
[Test Case]
* Create a guest VM with the target release you want to test.
Ensure you have the channel for gueqt-agent set up and making sure it is
installed, up and running:
● qemu-guest-
Loaded: loaded (/lib/systemd/
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.
└─624 /usr/sbin/qemu-ga
* Pass a shutdown command through virsh:
$ virsh shutdown focal --mode agent
An alternative way to trigger the same is:
$ virsh qemu-agent-command focal '{"execute": "guest-shutdown"}'
The guest almost immediately went down usually, but on reboot you can check the journal of the service and will find the crashes:
$ journalctl -u qemu-guest-agent
Jun 02 05:29:54 focal qemu-ga[624]: ERROR:/
Jun 02 05:29:54 focal qemu-ga[624]: Bail out! ERROR:/
[Regression Potential]
* Formerly qemu was asserting on a bad pointer and exiting non gracefully.
That is replaced by a clean handling of the case. The different return
path will slightly change behavior - to the better. I can't see an issue
that would likely happen - but never the less if we look for regressions
they will be on the guest shutdown path.
[Other Info]
* Hangs got reported by affected users, but yet unable to be reproduced on
other systems.
---
Completely new/fresh focal / mate install. Crash during initial apt install of many packages after first log-in, including qemu-guest-agent. No other important load other than apt running. OS running in a vm as a guest (obviously...) No idea what caused it. Including crash report.
VM was 2 penryn class cpus with 3G ram.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: qemu-guest-agent 1:4.2-3ubuntu6
ProcVersionSign
Uname: Linux 5.4.0-29-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: MATE
Date: Fri May 15 13:20:02 2020
InstallationDate: Installed on 2020-05-13 (1 days ago)
InstallationMedia: Ubuntu-MATE 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: qemu
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Rafael David Tinoco (community): Approve
- Canonical Server: Pending requested
- Canonical Server packageset reviewers: Pending requested
-
Diff: 71 lines (+49/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/lp-1878973-fix-assert-regression.patch (+41/-0)
- Rafael David Tinoco (community): Approve
- Canonical Server packageset reviewers: Pending requested
- Canonical Server: Pending requested
-
Diff: 183 lines (+155/-0)4 files modifieddebian/changelog (+9/-0)
debian/patches/lp-1882774-target-i386-do-not-set-unsupported-VMX-secondary-exe.patch (+103/-0)
debian/patches/series (+2/-0)
debian/patches/ubuntu/lp-1878973-fix-assert-regression.patch (+41/-0)
description: | updated |
Changed in qemu (Ubuntu Eoan): | |
importance: | Undecided → High |
Changed in qemu (Ubuntu Focal): | |
importance: | Undecided → High |
Changed in qemu (Ubuntu Eoan): | |
importance: | High → Medium |
crash report.
I suppose there ought to be another crash report/bug report about how this crash report didn't get auto-uploaded upon detection as well.