Sync from SUSE:ALP:Source:Standard:1.0 health-checker revision a239e045142525a34c25cab321386c0a
This commit is contained in:
commit
4feea9ff2d
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
14
_service
Normal file
14
_service
Normal file
@ -0,0 +1,14 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="version">1.10</param>
|
||||
<param name="versionformat">1.10+git%cd.%h</param>
|
||||
<param name="url">https://github.com/openSUSE/health-checker.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="compression">xz</param>
|
||||
<param name="file">*.tar</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled"/>
|
||||
</services>
|
5
_servicedata
Normal file
5
_servicedata
Normal file
@ -0,0 +1,5 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/openSUSE/health-checker.git</param>
|
||||
<param name="changesrevision">cb84209fd0bc4a9e05d96b85e0a60f90209f3e06</param></service>
|
||||
</servicedata>
|
BIN
health-checker-1.10+git20240111.cb84209.tar.xz
(Stored with Git LFS)
Normal file
BIN
health-checker-1.10+git20240111.cb84209.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
193
health-checker.changes
Normal file
193
health-checker.changes
Normal file
@ -0,0 +1,193 @@
|
||||
-------------------------------------------------------------------
|
||||
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 <iforster@suse.com>
|
||||
|
||||
- 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 <iforster@suse.com>
|
||||
|
||||
- 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 <iforster@suse.com>
|
||||
|
||||
- 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 <iforster@suse.com>
|
||||
|
||||
- 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 <iforster@suse.com>
|
||||
|
||||
- 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 <schubi@suse.com
|
||||
|
||||
- Added /usr/local/libexec/health-checker for user defined plugins.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 19 14:39:29 UTC 2020 - Ignaz Forster <iforster@suse.com>
|
||||
|
||||
- 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 <dimstar@opensuse.org>
|
||||
|
||||
- Use the right variables for systemd unitdir and dracut modules
|
||||
directory.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 12 15:49:31 UTC 2020 - Ignaz Forster <iforster@suse.com>
|
||||
|
||||
- Update to version 1.3.4
|
||||
* Really fix plugindir replacement in configure.ac script
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 8 15:51:03 UTC 2020 - Ignaz Forster <iforster@suse.com>
|
||||
|
||||
- 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 <iforster@suse.com>
|
||||
|
||||
- Use pkgconfig macro instead of package dependencies
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 6 10:00:20 UTC 2020 - Ignaz Forster <iforster@suse.com>
|
||||
|
||||
- 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 <iforster@suse.com>
|
||||
|
||||
- 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 <iforster@suse.com>
|
||||
|
||||
- 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
|
||||
|
147
health-checker.spec
Normal file
147
health-checker.spec
Normal file
@ -0,0 +1,147 @@
|
||||
#
|
||||
# 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.10+git20240111.cb84209
|
||||
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 plugins-kubic
|
||||
Summary: Health-checker plugins for openSUSE Kubic
|
||||
Group: System/Base
|
||||
Requires: %{name} >= %{version}
|
||||
Provides: health-checker-plugins = 1.0
|
||||
|
||||
%description plugins-kubic
|
||||
This package contains health-checker plugins for testing that
|
||||
the openSUSE Kubic did boot correctly.
|
||||
|
||||
%package plugins-caasp
|
||||
Summary: Health-checker plugins for SUSE CaaS Platform
|
||||
Group: System/Base
|
||||
Requires: %{name} >= %{version}
|
||||
Provides: health-checker-plugins = 1.0
|
||||
|
||||
%description plugins-caasp
|
||||
This package contains health-checker plugins for testing that
|
||||
the SUSE CaaS Platform 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
|
||||
ln -sf service %{buildroot}%{_sbindir}/rchealth-checker
|
||||
%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/tmp.sh
|
||||
%{_sbindir}/health-checker
|
||||
%{_sbindir}/rchealth-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/crio.sh
|
||||
%{_libexecdir}/health-checker/etc-overlayfs.sh
|
||||
%{_libexecdir}/health-checker/rebootmgr.sh
|
||||
|
||||
%files plugins-caasp
|
||||
%{_libexecdir}/health-checker/etcd.sh
|
||||
|
||||
%files plugins-kubic
|
||||
%{_libexecdir}/health-checker/kubelet.sh
|
||||
|
||||
%files testing
|
||||
%{_libexecdir}/health-checker/health-check-tester.sh
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user