Bug 39996 - qemu-guest-agent is crashed on shutdown command (known issue for 4.0-5.1)
Summary: qemu-guest-agent is crashed on shutdown command (known issue for 4.0-5.1)
Status: CLOSED FIXED
Alias: None
Product: Branch p9
Classification: Distributions
Component: qemu-guest-agent (show other bugs)
Version: не указана
Hardware: x86_64 Linux
: P5 major
Assignee: Alexey Shabalin
QA Contact: qa-p9@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-26 19:25 MSK by Michael Zhilin
Modified: 2021-05-31 15:27 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Zhilin 2021-04-26 19:25:24 MSK
При использование Альта под гипервизором QEMU-KVM (Proxmox), часто встречается (в 50-70% случаев), что shutdown подвисает при остановке системы через guest агента. В логах видно что агент крашится на assert-е (qga/main.c:534), а ассерт пофикшен в следующем коммите:

https://github.com/qemu/qemu/commit/844bd70b5652f30bbace89499f513e3fbbb6457a

Получается что начиная с версии 4.0 и до версии 5.1 использование qemu-guest-agent приводит к проблемам с shutdown-ом. Наткнулся на это на AltLinux 9.1, ибо в репозитории сейчас 4.2.1.

Просьба добавить патч (см. коммит выше) в сборку. 

apt-cache show qemu-guest-agent

Package: qemu-guest-agent
Section: Emulators
Installed Size: 465053
Maintainer: Alexey Shabalin (ALT Team) <shaba@altlinux.org>
Version: 4.2.1-alt4:p9+263856.100.2.1@1609000785
Pre-Depends: rpmlib(SetVersions), rpmlib(PayloadIsLzma)
Depends: /bin/sh, /etc/rc.d/init.d, /etc/rc.d/init.d(SourceIfNotEmpty), /etc/rc.d/init.d(failure), /etc/rc.d/init.d(msg_usage), /etc/rc.d/init.d(start_daemon), /etc/rc.d/init.d(status), /etc/rc.d/init.d(stop_daemon), /etc/rc.d/init.d/functions, /lib/udev/rules.d, /lib64/ld-linux-x86-64.so.2, coreutils, libc.so.6(GLIBC_2.10)(64bit), libc.so.6(GLIBC_2.11)(64bit), libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.4)(64bit), libc.so.6(GLIBC_2.7)(64bit), libc.so.6(GLIBC_2.9)(64bit), libglib-2.0.so.0()(64bit) (>= set:og1iApFEKyGOlhYw2CO1IzPz6lIGxtXFFPC7EAoen1tF309v27m00gXLNt5cxinjgWHiuJ2Boe2L7x1l9EEwTZ8ZExpGS4EVSvurBtome2PJZsFTHYNBPrWZo6rom2cy2Rh5Ep4RB00bR8vHX9QY84OJFTZjqLZFesMFc9Mmn4Zd30VdfAIGkme136w5Bbm3PdaZdG6pGiNwyAPS8G7UU45M4ZKLBqILBN4AB4UZIxkxecEo6fn1ldK8ZjfWfaMELN3FphyTZatDO4pnoYPNoMyqxwr2JPgOsIZb5wz8X596kGzWr1LCxPO8SedrZlgOWx07vXhDXwqS4KXljm0HCONWn77), libgmodule-2.0.so.0()(64bit) (>= set:gdPHZ3amoXhu0), libm.so.6(GLIBC_2.2.5)(64bit), libpthread.so.0(GLIBC_2.12)(64bit), libpthread.so.0(GLIBC_2.2.5)(64bit), libpthread.so.0(GLIBC_2.3.2)(64bit), libpthread.so.0(GLIBC_2.3.3)(64bit), libudev.so.1()(64bit) (>= set:khT8l0GM7onyNGeKZb), libudev.so.1(LIBUDEV_183)(64bit), rtld(GNU_HASH), qemu-aux (= 4.2.1-alt4:p9+263856.100.2.1)
Provides: qemu-guest-agent (= 4.2.1-alt4:p9+263856.100.2.1)
Architecture: x86_64
Size: 162355
MD5Sum: 565d297cd42775899dc95763dc6d53da
Filename: qemu-guest-agent-4.2.1-alt4.x86_64.rpm
Comment 1 Repository Robot 2021-05-31 15:27:36 MSK
qemu-5.2.0-alt6 -> p9:

 Tue May 04 2021 Alexey Shabalin <shaba@altlinux> 5.2.0-alt6
 - backport to p9 (ALT #39996)
 - Fixed execute fsfreeze hook (ALT #37000)
 Mon Apr 12 2021 Ivan A. Melnikov <iv@altlinux> 5.2.0-alt5
 - Move qemu-user-static text segment to 0x60000000 (ALT #39178)
 - Drop qemu-aux dependency from qemu-user-static (ALT #39815)
 - Drop qemu-mipsn32*.conf from binfmt config packages (ALT #39619)
 Mon Feb 01 2021 Andrew A. Vasilyev <andy@altlinux> 5.2.0-alt4
 - Add the Kunpeng-920 CPU model.
 Sun Jan 17 2021 Alexey Shabalin <shaba@altlinux> 5.2.0-alt3
 - Switch bios-microvm.bin from qboot to seabios
 - Package /usr/share/qemu/firmware dir
 - Define firmware path as --firmwarepath for configure
 Thu Jan 14 2021 Ivan A. Melnikov <iv@altlinux> 5.2.0-alt2
 - fix elf loading in qemu-user (altbug #39141)
 - restore special CPU selection for ARM qemu-user-static
 Tue Dec 15 2020 Alexey Shabalin <shaba@altlinux> 5.2.0-alt1
 - 5.2.0 (Fixes: CVE-2020-14364)
 - Drop ivshmem-tools package
 - Drop lm32 and unicore32 arches
 - Add new packages:
   + qemu-audio-spice
   + qemu-char-spice
   + qemu-display-virtio-gpu-pci
   + qemu-display-virtio-vga
   + qemu-display-virtio-gpu
   + qemu-ui-spice-core
   + qemu-ui-opengl
   + qemu-ui-egl-headless
 Thu Aug 13 2020 Alexey Shabalin <shaba@altlinux> 5.1.0-alt1
 - 5.1.0 (Fixes: CVE-2020-13253, CVE-2020-13754, CVE-2020-10761, CVE-2020-13800, CVE-2020-10717)
 Thu Apr 30 2020 Alexey Shabalin <shaba@altlinux> 5.0.0-alt1
 - 5.0.0 (Fixes: VE-2018-12617, CVE-2020-1711)
 - drop bluez support
 - build emulator for RX