From 5a62d2e4925fb8372e0b2adb374d8c98ce01a2d717bf681749315f4546243f5e Mon Sep 17 00:00:00 2001 From: Ignaz Forster Date: Wed, 25 Sep 2024 13:53:27 +0000 Subject: [PATCH 1/2] - Update to version 1.12+git20240925.08fb1bc: * Release version 1.12 * Fix typos: replaced `health-checker.state` occurances with `health-check.state` (#23) * Improve rpmdb consistency check (#21) * Drop crio, etcd and kubelet * Implement missing stop argument - Remove plugins-kubic and plugins-caasp packages - the tests were removed upstream because the products were EOL OBS-URL: https://build.opensuse.org/package/show/devel:microos/health-checker?expand=0&rev=17 --- .gitattributes | 23 ++ .gitignore | 1 + _service | 14 ++ _servicedata | 5 + ...th-checker-1.10+git20240111.cb84209.tar.xz | 3 + ...th-checker-1.11+git20240730.5dafd6a.tar.xz | 3 + ...th-checker-1.12+git20240925.08fb1bc.tar.xz | 3 + health-checker.changes | 217 ++++++++++++++++++ health-checker.spec | 119 ++++++++++ 9 files changed, 388 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 health-checker-1.10+git20240111.cb84209.tar.xz create mode 100644 health-checker-1.11+git20240730.5dafd6a.tar.xz create mode 100644 health-checker-1.12+git20240925.08fb1bc.tar.xz create mode 100644 health-checker.changes create mode 100644 health-checker.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..66c643a --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + 1.12 + 1.12+git%cd.%h + https://github.com/openSUSE/health-checker.git + git + enable + + + xz + *.tar + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..e34bf93 --- /dev/null +++ b/_servicedata @@ -0,0 +1,5 @@ + + + https://github.com/openSUSE/health-checker.git + 08fb1bc259a11683fb34b56956f5fd26c092b71f + \ No newline at end of file diff --git a/health-checker-1.10+git20240111.cb84209.tar.xz b/health-checker-1.10+git20240111.cb84209.tar.xz new file mode 100644 index 0000000..e28db36 --- /dev/null +++ b/health-checker-1.10+git20240111.cb84209.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc6962c6001caa70f28e8ed243b3d6d54040c4f044f8c6f8c77293603c592616 +size 20940 diff --git a/health-checker-1.11+git20240730.5dafd6a.tar.xz b/health-checker-1.11+git20240730.5dafd6a.tar.xz new file mode 100644 index 0000000..8cb0497 --- /dev/null +++ b/health-checker-1.11+git20240730.5dafd6a.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67f7c3a3d6f26758a1511f16e1c5e61c153e532a8d2439ee16c6537b747d7170 +size 21120 diff --git a/health-checker-1.12+git20240925.08fb1bc.tar.xz b/health-checker-1.12+git20240925.08fb1bc.tar.xz new file mode 100644 index 0000000..2972d36 --- /dev/null +++ b/health-checker-1.12+git20240925.08fb1bc.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:324ade71af2374146a096b658934a90cc02c9958b8af5721b3aedff41589d35c +size 21116 diff --git a/health-checker.changes b/health-checker.changes new file mode 100644 index 0000000..cb70d36 --- /dev/null +++ b/health-checker.changes @@ -0,0 +1,217 @@ +------------------------------------------------------------------- +Wed Sep 25 13:49:49 UTC 2024 - iforster@suse.com + +- Update to version 1.12+git20240925.08fb1bc: + * Release version 1.12 + * Fix typos: replaced `health-checker.state` occurances with + `health-check.state` (#23) + * Improve rpmdb consistency check (#21) + * Drop crio, etcd and kubelet + * Implement missing stop argument +- Remove plugins-kubic and plugins-caasp packages - the tests were + removed upstream because the products were EOL + +------------------------------------------------------------------- +Tue Jul 30 09:58:30 UTC 2024 - iforster@suse.com + +- Update to version 1.11+git20240730.5dafd6a: + * Add rpm db consistency plugin + +------------------------------------------------------------------- +Thu Jun 20 12:01:36 UTC 2024 - Thorsten Kukuk + +- Remove rchealth-checker symlink [jsc#PED-264] + +------------------------------------------------------------------- +Thu Jan 11 16:11:56 UTC 2024 - kukuk@suse.com + +- Update to version 1.10+git20240111.cb84209: + * Add missing rule for health-checker.service.8 + * Don't generate html documentation + * Fixing some typo's and improving the UX of the health-checker output + * Fix a typo in README.md + +------------------------------------------------------------------- +Fri Sep 15 12:19:21 UTC 2023 - Ignaz Forster + +- Update to version 1.10 + * Fix Btrfs subvolume check if subvol starts with '-' + [boo#1215368]. + +------------------------------------------------------------------- +Thu Jun 22 16:04:47 UTC 2023 - Ignaz Forster + +- Update to version 1.9 + * Fix failing subvolume mount checks with certain characters in + mount point [gh#openSUSE/health-checker#14]. + +------------------------------------------------------------------- +Mon May 8 22:12:48 UTC 2023 - Ignaz Forster + +- Update to version 1.8 + * Don't rely on t-u's good states in GRUB + With the introduction of the "apply" command in + transactional-update the snapshots don't require a reboot any + more to be registered as a "good" snapshot. Due to + [boo#1048088] the GRUB part of health-checker was using the t-u + file as a workaround which cannot be done any more now, so + store the last good snapshot path from a health-checker + perspective independently now. + +------------------------------------------------------------------- +Tue Sep 6 09:39:18 UTC 2022 - Ignaz Forster + +- Update to version 1.7 + * Before rollback make sure /.snapshots is mounted rw + * Fix typos and spelling errors. Note: in case an application is + parsing the output it will need to adopt to the new strings. + +------------------------------------------------------------------- +Fri Nov 12 19:15:34 UTC 2021 - Ignaz Forster + +- Update to version 1.6 + * Adapt rd.retry to also trigger initqueue timeout tasks + [gh#kubic-project/health-checker#11] + * Reboot system and let the GRUB health-checker part try to find + a working initrd if root file system could not be mounted - + instead of ending up in an emergency shell + * Correctly declare Bash scripts as such + +------------------------------------------------------------------- +Tue Jul 13 10:23:39 UTC 2021 - Stefan Schubert + +- Update to version 1.4 + * Add checks for /tmp and systemd-logind + * Build system cleanup + +------------------------------------------------------------------- +Tue May 19 12:06:30 UTC 2020 - Dominique Leuenberger + +- Use the right variables for systemd unitdir and dracut modules + directory. + +------------------------------------------------------------------- +Tue May 12 15:49:31 UTC 2020 - Ignaz Forster + +- Update to version 1.3.4 + * Really fix plugindir replacement in configure.ac script + +------------------------------------------------------------------- +Fri May 8 15:51:03 UTC 2020 - Ignaz Forster + +- Update to version 1.3.3 + * Fix plugindir replacement in configure.ac script + * Use Python 3 for building documentation + +------------------------------------------------------------------- +Wed May 6 14:26:27 UTC 2020 - Ignaz Forster + +- Use pkgconfig macro instead of package dependencies + +------------------------------------------------------------------- +Wed May 6 10:00:20 UTC 2020 - Ignaz Forster + +- Update to version 1.3.2 + * Use pkgconf to determine installation directories instead of + guessing + +------------------------------------------------------------------- +Thu Jan 30 13:33:49 UTC 2020 - Ignaz Forster + +- Update to version 1.3.1 + * Support multiple menuentries in GRUB configuration + [gh#kubic-project/health-checker#5] + +------------------------------------------------------------------- +Mon Dec 16 16:37:07 UTC 2019 - Ignaz Forster + +- Update to version 1.3 + * Support /var on non-root device for reading health data + * Avoid GRUB error message if env_block is not set [boo#1151072] + * Don't show message on manual emergency shell invocation + * Fix handling when booting a non-default snapshot + +------------------------------------------------------------------- +Mon May 6 15:57:27 CEST 2019 - kukuk@suse.de + +- Update to version 1.2.3 + * Fix crio RPM name + +------------------------------------------------------------------- +Wed Mar 20 13:17:09 CET 2019 - kukuk@suse.de + +- Update to version 1.2.2 + * Fix product namings + +------------------------------------------------------------------- +Thu Mar 14 09:03:32 CET 2019 - kukuk@suse.de + +- Update to version 1.2.1 + * Make sure telmetrics payload is not empty in success case + +------------------------------------------------------------------- +Wed Feb 27 15:20:11 CET 2019 - kukuk@suse.de + +- Update to version 1.2 + * Add hooks to send telemetrics events + +------------------------------------------------------------------- +Mon Feb 4 10:57:58 CET 2019 - kukuk@suse.de + +- Update to version 1.1 + * new plugins for crio and kubelet +- Add new sub-package with test cases for openSUSE Kubic + +------------------------------------------------------------------- +Wed Dec 19 14:15:00 CET 2018 - kukuk@suse.de + +- Split the CaaSP plugin into a MicroOS and CaaSP part + +------------------------------------------------------------------- +Wed Aug 8 17:07:38 UTC 2018 - jengelh@inai.de + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Wed May 23 13:05:39 CEST 2018 - kukuk@suse.de + +- Update to version 1.0 + * Skip health checker if emergency shell started by user + * Add GRUB2 fallback handling + * Adapt to new unified /var directory. + * Get basic version of rollback from initrd working + +------------------------------------------------------------------- +Wed Aug 23 10:47:58 CEST 2017 - kukuk@suse.de + +- Update to version 0.5 + - Fix logger arguments + +------------------------------------------------------------------- +Thu May 25 07:36:23 UTC 2017 - jengelh@inai.de + +- Resolve orthographical issues in descriptions. + +------------------------------------------------------------------- +Thu May 18 13:51:44 CEST 2017 - kukuk@suse.de + +- Update to version 0.4 +- Rename package to health-checker +- Create new sub-package for CaaSP plugins + +------------------------------------------------------------------- +Fri Mar 24 15:44:23 CET 2017 - kukuk@suse.de + +- Update to version 0.2 + - Add plugins for etcd, etc-overlayfs and rebootmgr + +------------------------------------------------------------------- +Thu Mar 23 16:03:14 CET 2017 - kukuk@suse.de + +- Initial version + diff --git a/health-checker.spec b/health-checker.spec new file mode 100644 index 0000000..d14a106 --- /dev/null +++ b/health-checker.spec @@ -0,0 +1,119 @@ +# +# spec file for package health-checker +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define _dracutmoduledir %(pkg-config --variable=dracutmodulesdir dracut) + +Name: health-checker +Version: 1.12+git20240925.08fb1bc +Release: 0 +Summary: Service for verifying that important services are running +License: GPL-2.0-only +Group: System/Base +URL: https://github.com/kubic-project/health-checker +Source: health-checker-%{version}.tar.xz +BuildRequires: automake +BuildRequires: docbook-xsl-stylesheets +BuildRequires: fdupes +BuildRequires: suse-module-tools +BuildRequires: pkgconfig(dracut) +BuildRequires: pkgconfig(systemd) +Requires: health-checker-plugins = 1.0 +BuildArch: noarch + +%description +health-checker is a service running once at every reboot to verify +that all important services are running. If it is the first reboot after +an update, an automatic rollback to the last working snapshot is made. +If this is not after an update, a reboot is made. If this does not help, +the services will be disabled. +This package does not contain any checks. For this, additional +plugins for different products are needed. + +%package plugins-MicroOS +Summary: Health-checker plugins for openSUSE MicroOS +Group: System/Base +Requires: %{name} >= %{version} +Provides: health-checker-plugins = 1.0 + +%description plugins-MicroOS +This package contains health-checker plugins for testing that +the openSUSE MicroOS did boot correctly. + +%package testing +Summary: Test plugin for health-checker +Group: System/Base +Requires: %{name} >= %{version} +Provides: health-checker-plugins = 1.0 + +%description testing +This package contains a script for testing the CaaSP health checker. +It will report success or failures depending on previous states. + +%prep +%setup -q -n health-checker-%{version} + +%build +./autogen.sh +%configure +make %{?_smp_mflags} + +%install +%make_install +%fdupes %{buildroot}%{_mandir} + +%pre +%service_add_pre health-checker.service + +%post +%service_add_post health-checker.service +%regenerate_initrd_post + +%preun +%service_del_preun health-checker.service + +%postun +%service_del_postun health-checker.service +%regenerate_initrd_post + +%posttrans +%regenerate_initrd_posttrans + +%files +%license COPYING +%doc NEWS README.md +%{_unitdir}/health-checker.service +%dir %{_libexecdir}/health-checker/ +%{_libexecdir}/health-checker/btrfs-subvolumes-mounted.sh +%{_libexecdir}/health-checker/logind.sh +%{_libexecdir}/health-checker/rpmdb-consistency.sh +%{_libexecdir}/health-checker/tmp.sh +%{_sbindir}/health-checker +%{_mandir}/man8/health-checker.8%{?ext_man} +%{_mandir}/man8/health-checker.service.8%{?ext_man} +%dir %{_sysconfdir}/grub.d +%{_sysconfdir}/grub.d/*_health_check* +%{_dracutmoduledir}/50health-checker + +%files plugins-MicroOS +%{_libexecdir}/health-checker/etc-overlayfs.sh +%{_libexecdir}/health-checker/rebootmgr.sh + +%files testing +%{_libexecdir}/health-checker/health-check-tester.sh + +%changelog From 35d32641e17432114b5ec7ae6ac08da1a172197d6edbeb98424300962568121a Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Tue, 5 Nov 2024 10:17:15 +0000 Subject: [PATCH 2/2] Accepting request 1221385 from home:favogt:branches:devel:microos - Update to version 1.12+git20241105.2e2832f15742: * Set RemainAfterExit=yes * Fix header of NEWS file - Switch _service over to obs_scm and type="manual" OBS-URL: https://build.opensuse.org/request/show/1221385 OBS-URL: https://build.opensuse.org/package/show/devel:microos/health-checker?expand=0&rev=18 --- _service | 7 ++++--- _servicedata | 2 +- health-checker-1.12+git20240925.08fb1bc.tar.xz | 3 --- health-checker-1.12+git20241105.2e2832f15742.obscpio | 3 +++ health-checker.changes | 8 ++++++++ health-checker.obsinfo | 4 ++++ health-checker.spec | 2 +- 7 files changed, 21 insertions(+), 8 deletions(-) delete mode 100644 health-checker-1.12+git20240925.08fb1bc.tar.xz create mode 100644 health-checker-1.12+git20241105.2e2832f15742.obscpio create mode 100644 health-checker.obsinfo diff --git a/_service b/_service index 66c643a..2f6aaf3 100644 --- a/_service +++ b/_service @@ -1,14 +1,15 @@ - + 1.12 1.12+git%cd.%h https://github.com/openSUSE/health-checker.git git enable - + + + xz *.tar - diff --git a/_servicedata b/_servicedata index e34bf93..22e8965 100644 --- a/_servicedata +++ b/_servicedata @@ -1,5 +1,5 @@ https://github.com/openSUSE/health-checker.git - 08fb1bc259a11683fb34b56956f5fd26c092b71f + 2e2832f157429be17ddf7bb21976eee2cda251d6 \ No newline at end of file diff --git a/health-checker-1.12+git20240925.08fb1bc.tar.xz b/health-checker-1.12+git20240925.08fb1bc.tar.xz deleted file mode 100644 index 2972d36..0000000 --- a/health-checker-1.12+git20240925.08fb1bc.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:324ade71af2374146a096b658934a90cc02c9958b8af5721b3aedff41589d35c -size 21116 diff --git a/health-checker-1.12+git20241105.2e2832f15742.obscpio b/health-checker-1.12+git20241105.2e2832f15742.obscpio new file mode 100644 index 0000000..322bb94 --- /dev/null +++ b/health-checker-1.12+git20241105.2e2832f15742.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44a94b27bcfaeeaf139073a165202bfd9e9d79828a99d0b49ad82e95dfefc857 +size 70155 diff --git a/health-checker.changes b/health-checker.changes index cb70d36..cea5a00 100644 --- a/health-checker.changes +++ b/health-checker.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Nov 05 10:07:57 UTC 2024 - Fabian Vogt + +- Update to version 1.12+git20241105.2e2832f15742: + * Set RemainAfterExit=yes + * Fix header of NEWS file +- Switch _service over to obs_scm and type="manual" + ------------------------------------------------------------------- Wed Sep 25 13:49:49 UTC 2024 - iforster@suse.com diff --git a/health-checker.obsinfo b/health-checker.obsinfo new file mode 100644 index 0000000..70dd8fb --- /dev/null +++ b/health-checker.obsinfo @@ -0,0 +1,4 @@ +name: health-checker +version: 1.12+git20241105.2e2832f15742 +mtime: 1730793604 +commit: 2e2832f157429be17ddf7bb21976eee2cda251d6 diff --git a/health-checker.spec b/health-checker.spec index d14a106..72f0527 100644 --- a/health-checker.spec +++ b/health-checker.spec @@ -19,7 +19,7 @@ %define _dracutmoduledir %(pkg-config --variable=dracutmodulesdir dracut) Name: health-checker -Version: 1.12+git20240925.08fb1bc +Version: 1.12+git20241105.2e2832f15742 Release: 0 Summary: Service for verifying that important services are running License: GPL-2.0-only