Univention Bugzilla – Bug 22695
VM gets paused on disk full ENOSPC
Last modified: 2018-12-05 14:38:53 CET
Aufgetreten in der internen Umgebung: Die Festplatte des lokalen Speicherbereichs was "vollgelaufen". Qemu pausiert dann die Vms intern, in UVMM werden sie aber weiterhin als "laufend" angezeigt. Philipp sagte, dass man den Qemu-internen Zustand mit sudo virsh qemu-monitor-command "$VM" "info status" abfragen kann. Dort steht nach dem Volllaufen einer Festplatte dann "paused". Mit sudo virsh qemu-monitor-command "$VM" "c" kann eine VM dann erneut gestartet werden. Der Qemu-Pausenzustand sollte mit dem UVMM-Zustand der VM abgeglichen werden (oder UVMM sollte den Qemu-Zustand regelmässig pollen), in der aktuellen Version wirkt das, als ob die virtualisierte Maschine gecrasht sei.
Das ist jetzt schon mehrfach intern aufgetreten. Hier sollte entweder ein Skript vor dem Vollaufen warnen oder gar in UVMM der Host als problembehaftet angezeigt werden. Hilfreich wäre auch eine Anzeige der Storage-Pool-Auslastungen (Plural!) in der Übersichtsseite der Hosts.
*** This bug has been marked as a duplicate of bug 22714 ***
Nowadays libvirt-python/examples/event-test.py provides more events and reports ENOSPC if a VM gets paused due to out-of-disk-space. The error condition is not logged otherwise by QEMU or libvirt; the management system (UVMM) must register a call-back to get libvirt.VIR_DOMAIN_EVENT_ID_IO_ERROR and libvirt.VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON or libvirt.VIR_DOMAIN_EVENT_ID_LIFECYCLE events and handle them: - show the VM as paused by error - probably log an event or escalate through some monitoring system Monitoring free space like Bug #22714 would also be good, but is no suitable replacement for active notification.
<https://git.knut.univention.de/univention/ucs/commits/phahn/22695-uvmm-enospc>
Merged into 4.3-2: [4.3-2] 6bcb71e282 Bug #47956 uvmm: Fix ucslint.overrides .../debian/ucslint.overrides | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) [4.3-2] 59932f67f3 Bug #22695: Merge branch 'phahn/22695-uvmm-enospc' into 4.3-2 [4.3-2] dcad512392 Bug #22695 uvmm: Add IO error message to frontend .../icons/scalable/uvmm-domain-paused-error.svg | 882 +++++++++++++++++++++ .../umc/js/uvmm.js | 17 +- .../umc/python/uvmm/domains.py | 1 + 3 files changed, 899 insertions(+), 1 deletion(-) [4.3-2] 75bf8e5572 Bug #22695 uvmm: Report IO errors .../univention-virtual-machine-manager-daemon.yaml | 5 +-- .../debian/changelog | 1 + .../src/univention/uvmm/node.py | 38 +++++++++++++++++++++- .../src/univention/uvmm/protocol.py | 1 + 4 files changed, 42 insertions(+), 3 deletions(-) [4.3-2] 1f83a0d908 Bug #22695 uvmm: Switch to SVG images .../Makefile | 19 ------------------- .../umc/icons/16x16/udm-uvmm-cloudconnection.png | Bin 642 -> 0 bytes .../umc/icons/16x16/udm-uvmm-cloudtype.png | Bin 642 -> 0 bytes .../umc/icons/16x16/udm-uvmm-profile.png | Bin 390 -> 0 bytes .../umc/icons/16x16/uvmm-cloud-off.png | Bin 778 -> 0 bytes .../umc/icons/16x16/uvmm-cloud.png | Bin 642 -> 0 bytes .../umc/icons/16x16/uvmm-domain-off.png | Bin 940 -> 0 bytes .../umc/icons/16x16/uvmm-domain-on.png | Bin 742 -> 0 bytes .../umc/icons/16x16/uvmm-domain-paused.png | Bin 713 -> 0 bytes .../umc/icons/16x16/uvmm-domain.png | Bin 532 -> 0 bytes .../umc/icons/16x16/uvmm-group.png | Bin 429 -> 0 bytes .../umc/icons/16x16/uvmm-instance-off.png | Bin 940 -> 0 bytes .../umc/icons/16x16/uvmm-instance-on.png | Bin 742 -> 0 bytes .../umc/icons/16x16/uvmm-instance-paused.png | Bin 713 -> 0 bytes .../umc/icons/16x16/uvmm-instance-pending.png | Bin 808 -> 0 bytes .../umc/icons/16x16/uvmm-instance-terminated.png | Bin 751 -> 0 bytes .../umc/icons/16x16/uvmm-instance.png | Bin 532 -> 0 bytes .../umc/icons/16x16/uvmm-node-off.png | Bin 898 -> 0 bytes .../umc/icons/16x16/uvmm-node-qemu-off.png | Bin 901 -> 0 bytes .../umc/icons/16x16/uvmm-node-qemu.png | Bin 494 -> 0 bytes .../umc/icons/16x16/uvmm-node.png | Bin 586 -> 0 bytes .../umc/icons/16x16/uvmm-warn.png | Bin 576 -> 0 bytes .../umc/icons/50x50/udm-uvmm-cloudconnection.png | Bin 2368 -> 0 bytes .../umc/icons/50x50/udm-uvmm-cloudtype.png | Bin 2368 -> 0 bytes .../umc/icons/50x50/udm-uvmm-profile.png | Bin 1151 -> 0 bytes .../umc/icons/50x50/uvmm-cloud-off.png | Bin 3686 -> 0 bytes .../umc/icons/50x50/uvmm-cloud.png | Bin 2368 -> 0 bytes .../umc/icons/50x50/uvmm-domain-on.png | Bin 2740 -> 0 bytes .../umc/icons/50x50/uvmm-domain-paused.png | Bin 2338 -> 0 bytes .../umc/icons/50x50/uvmm-domain.png | Bin 1469 -> 0 bytes .../umc/icons/50x50/uvmm-group.png | Bin 1126 -> 0 bytes .../umc/icons/50x50/uvmm-node-off.png | Bin 3914 -> 0 bytes .../umc/icons/50x50/uvmm-node-qemu-off.png | Bin 3968 -> 0 bytes .../umc/icons/50x50/uvmm-node-qemu.png | Bin 1390 -> 0 bytes .../umc/icons/50x50/uvmm-node.png | Bin 1656 -> 0 bytes .../umc/icons/50x50/uvmm-warn.png | Bin 2597 -> 0 bytes .../umc/js/uvmm.js | 4 ++-- .../umc/js/uvmm/DriveWizard.js | 2 +- Package: univention-virtual-machine-manager-daemon Version: 7.0.0-14A~4.3.0.201811281123 Version: 7.0.0-14A~4.3.0.201811281129 Branch: ucs_4.3-0 Scope: errata4.3-2 [4.3-2] 2cc8ae5f13 Bug #47956: univention-virtual-machine-manager-daemon 7.0.0-14A~4.3.0.201811281129 doc/errata/staging/univention-virtual-machine-manager-daemon.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Verified: Warning and separate icon shown in UMC UVMM module when the 'outside' storage has no space left
<http://errata.software-univention.de/ucs/4.3/346.html>