[UBUNTU 21.04] tools/kvm_stat: Add restart delay
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
Medium
|
Skipper Bug Screeners | ||
linux (Ubuntu) |
Fix Released
|
Medium
|
Canonical Kernel Team | ||
Hirsute |
Fix Released
|
Medium
|
Canonical Kernel Team | ||
Impish |
Fix Released
|
Medium
|
Canonical Kernel Team |
Bug Description
SRU Justification:
[Impact]
* Nice to have feature requested by IBM - a systemd service monitoring
KVM guests.
* Adds a new systemd service, not enabled by default.
[Fix]
* Install the systemd .service file when installing linux-tools-host
[Test Plan]
* dpkg -c linux-tools-
./lib/
* Install the package and reboot
* Check if kvm_stat is present and not active after reboot:
ls -l /lib/systemd/
systemctl -a | grep kvm_stat
[Where problems could occur]
* Service can be enabled and started by mistake or by any further future
Makefile change (enabling all services installed by linux-tools-host).
* The service logs into /var/log/
not provide logrotate by default, thus the logging could eat entire
disk space.
-- Original Description --
Description: tools/kvm_stat: Add restart delay
Symptom: If the kvm service is enabled and the system rebooted,
fail in case the kvm module is not loaded. However, once the
kvm module is loaded, the service is _not_ started.
Problem: Since the unit file does not specify a delay for the retries,
Solution: Add an appropriate delay in the unit file.
Reproduction: (1) Enable the kvm service via systemctl
(2) Reboot
(3) Verify that the kvm module is not loaded & kvm service
(4) Load the kvm module via 'modprobe kvm'
(5) Verify that the kvm service came up within the next
Preventive: yes
Just use the attached patch and you're good!
CVE References
Changed in linux (Ubuntu Hirsute): | |
assignee: | nobody → Canonical Kernel Team (canonical-kernel-team) |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Impish): | |
importance: | Undecided → Medium |
Changed in ubuntu-z-systems: | |
status: | Triaged → In Progress |
Changed in linux (Ubuntu Impish): | |
status: | New → In Progress |
Changed in ubuntu-z-systems: | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Impish): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Hirsute): | |
status: | New → Fix Committed |
description: | updated |
Changed in ubuntu-z-systems: | |
status: | Fix Committed → Fix Released |
Default Comment by Bridge