mbox series

[SRU,H,0/1] install kvm_stat systemd service

Message ID 20210602160759.85769-1-krzysztof.kozlowski@canonical.com
Headers show
Series install kvm_stat systemd service | expand

Message

Krzysztof Kozlowski June 2, 2021, 4:07 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1921870

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-host_5.11.0-18.19_all.deb
  ./lib/systemd/system/kvm_stat.service
* Install the package and reboot
* Check if kvm_stat is present and not active after reboot:
  ls -l /lib/systemd/system/kvm_stat.service
  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/kvm_stat.csv (not journal!) and package does
  not provide logrotate by default, thus the logging could eat entire
  disk space.

Best regards,
Krzysztof

Krzysztof Kozlowski (1):
  UBUNTU: [Debian] install kvm_stat systemd service

 debian/rules.d/3-binary-indep.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Guilherme G. Piccoli June 2, 2021, 4:14 p.m. UTC | #1
On Wed, Jun 2, 2021 at 1:08 PM Krzysztof Kozlowski
<krzysztof.kozlowski@canonical.com> wrote:
>
> BugLink: https://bugs.launchpad.net/bugs/1921870
>
> 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-host_5.11.0-18.19_all.deb
>   ./lib/systemd/system/kvm_stat.service
> * Install the package and reboot
> * Check if kvm_stat is present and not active after reboot:
>   ls -l /lib/systemd/system/kvm_stat.service
>   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/kvm_stat.csv (not journal!) and package does
>   not provide logrotate by default, thus the logging could eat entire
>   disk space.
>
> Best regards,
> Krzysztof
>
> Krzysztof Kozlowski (1):
>   UBUNTU: [Debian] install kvm_stat systemd service
>
>  debian/rules.d/3-binary-indep.mk | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>

Thank you Krzysztof, LGTM:
Acked-by: Guilherme G. Piccoli <gpiccoli@canonical.com>
Tim Gardner June 3, 2021, 12:05 p.m. UTC | #2
Acked-by: Tim Gardner <tim.gardner@canonical.com>

On 6/2/21 10:07 AM, Krzysztof Kozlowski wrote:
> BugLink: https://bugs.launchpad.net/bugs/1921870
> 
> 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-host_5.11.0-18.19_all.deb
>    ./lib/systemd/system/kvm_stat.service
> * Install the package and reboot
> * Check if kvm_stat is present and not active after reboot:
>    ls -l /lib/systemd/system/kvm_stat.service
>    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/kvm_stat.csv (not journal!) and package does
>    not provide logrotate by default, thus the logging could eat entire
>    disk space.
> 
> Best regards,
> Krzysztof
> 
> Krzysztof Kozlowski (1):
>    UBUNTU: [Debian] install kvm_stat systemd service
> 
>   debian/rules.d/3-binary-indep.mk | 10 ++++++++++
>   1 file changed, 10 insertions(+)
>
Stefan Bader June 10, 2021, 8:38 a.m. UTC | #3
On 02.06.21 18:07, Krzysztof Kozlowski wrote:
> 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-host_5.11.0-18.19_all.deb
>    ./lib/systemd/system/kvm_stat.service
> * Install the package and reboot
> * Check if kvm_stat is present and not active after reboot:
>    ls -l /lib/systemd/system/kvm_stat.service
>    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/kvm_stat.csv (not journal!) and package does
>    not provide logrotate by default, thus the logging could eat entire
>    disk space.

Applied to hirsute:linux/master-next with slight modification of the commit 
message. I replaced [Debian] with [Packaging] since I believe that is more in 
line with other things. I also added the SRU justification to the bug report. 
Thanks.

-Stefan