|
|
8f0bb7 |
Summary: Capture sosreports from multiple nodes simultaneously
|
|
|
8f0bb7 |
Name: sos-collector
|
|
|
8f0bb7 |
Version: 1.7
|
|
|
8f0bb7 |
Release: 4%{?dist}
|
|
|
8f0bb7 |
Source0: http://people.redhat.com/jhunsake/sos-collector/%{name}-%{version}.tar.gz
|
|
|
8f0bb7 |
License: GPLv2
|
|
|
8f0bb7 |
BuildArch: noarch
|
|
|
8f0bb7 |
Url: https://github.com/sosreport/sos-collector
|
|
|
8f0bb7 |
Requires: sos >= 3.0
|
|
|
8f0bb7 |
Obsoletes: clustersos < 1.2.2-2
|
|
|
8f0bb7 |
Provides: clustersos = %{version}-%{release}
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
Patch0: sos-collector-none-cluster-fix.patch
|
|
|
8f0bb7 |
Patch1: sos-collector-nested-container-fix.patch
|
|
|
8f0bb7 |
Patch2: sos-collector-rhcos-image.patch
|
|
|
8f0bb7 |
Patch3: sos-collector-pexpect.patch
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
%if 0%{?rhel} == 7
|
|
|
8f0bb7 |
BuildRequires: python-devel
|
|
|
8f0bb7 |
Requires: python-futures
|
|
|
8f0bb7 |
Requires: python-six
|
|
|
8f0bb7 |
Requires: python-pexpect
|
|
|
8f0bb7 |
%else
|
|
|
8f0bb7 |
BuildRequires: python3-devel
|
|
|
8f0bb7 |
BuildRequires: python3-six
|
|
|
8f0bb7 |
BuildRequires: python3-pexpect
|
|
|
8f0bb7 |
Requires: python3-six
|
|
|
8f0bb7 |
Requires: python3-pexpect
|
|
|
8f0bb7 |
%endif
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
%description
|
|
|
8f0bb7 |
sos-collector is a utility designed to capture sosreports from multiple nodes
|
|
|
8f0bb7 |
at once and collect them into a single archive. If the nodes are part of
|
|
|
8f0bb7 |
a cluster, profiles can be used to configure how the sosreport command
|
|
|
8f0bb7 |
is run on the nodes.
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
%prep
|
|
|
8f0bb7 |
%setup -q
|
|
|
8f0bb7 |
%patch0 -p1
|
|
|
8f0bb7 |
%patch1 -p1
|
|
|
8f0bb7 |
%patch2 -p1
|
|
|
8f0bb7 |
%patch3 -p1
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
%build
|
|
|
8f0bb7 |
%if 0%{?rhel} == 7
|
|
|
8f0bb7 |
%py2_build
|
|
|
8f0bb7 |
%else
|
|
|
8f0bb7 |
%py3_build
|
|
|
8f0bb7 |
%endif
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
%install
|
|
|
8f0bb7 |
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
|
|
|
8f0bb7 |
install -p -m644 man/en/sos-collector.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/
|
|
|
8f0bb7 |
%if 0%{?rhel} == 7
|
|
|
8f0bb7 |
%py2_install
|
|
|
8f0bb7 |
%else
|
|
|
8f0bb7 |
%py3_install
|
|
|
8f0bb7 |
%endif
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
%check
|
|
|
8f0bb7 |
%if 0%{?rhel} == 7
|
|
|
8f0bb7 |
%{__python2} setup.py test
|
|
|
8f0bb7 |
%else
|
|
|
8f0bb7 |
%{__python3} setup.py test
|
|
|
8f0bb7 |
%endif
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
%files
|
|
|
8f0bb7 |
%{_bindir}/sos-collector
|
|
|
8f0bb7 |
%if 0%{?rhel} == 7
|
|
|
8f0bb7 |
%{python2_sitelib}/*
|
|
|
8f0bb7 |
%else
|
|
|
8f0bb7 |
%{python3_sitelib}/*
|
|
|
8f0bb7 |
%endif
|
|
|
8f0bb7 |
%{_mandir}/man1/*
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
%license LICENSE
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
%changelog
|
|
|
8f0bb7 |
* Fri May 24 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-4
|
|
|
8f0bb7 |
- Fix local execution with pexpect
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
* Thu May 02 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-3
|
|
|
8f0bb7 |
- Backport RHHI-V cluster profile
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
* Thu Apr 11 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-2
|
|
|
8f0bb7 |
- Fix 'none' cluster type enablement
|
|
|
8f0bb7 |
- Update RHCOS image to RHEL 8 version
|
|
|
8f0bb7 |
- Fix execution from within a container
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
* Mon Apr 01 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-1
|
|
|
8f0bb7 |
- New upstream release
|
|
|
8f0bb7 |
- Overhaul mechanism of execution of sosreport in containers
|
|
|
8f0bb7 |
- Added RHCOS support
|
|
|
8f0bb7 |
- Added a 'none' cluster type
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
* Tue Dec 11 2018 Jake Hunsaker <jhunsake@redhat.com> - 1.6-1
|
|
|
8f0bb7 |
- Drop paramiko dependency, use OpenSSH ControlPersist instead
|
|
|
8f0bb7 |
- Layered cluster profiles can now accept base profile options
|
|
|
8f0bb7 |
- Debian/Ubuntu hosts now supported
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
* Thu Oct 11 2018 Jake Hunsaker <jhunsake@redhat.com> - 1.5-1
|
|
|
8f0bb7 |
- New upstream release
|
|
|
8f0bb7 |
- Resolves CVE-2018-14650
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
* Fri Jun 22 2018 Jake Hunsaker <jhunsake@redhat.com> 1.4-1
|
|
|
8f0bb7 |
- New upstream release
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
* Thu May 24 2018 Jake Hunsaker <jhunsake@redhat.com> 1.3-3
|
|
|
8f0bb7 |
- Fix sos-collector archive organization
|
|
|
8f0bb7 |
- Fix cluster option validation
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
* Mon May 07 2018 Jake Hunsaker <jhunsake@redhat.com> 1.3-2
|
|
|
8f0bb7 |
- Fix collection of sosreport tarballs
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
* Fri Apr 27 2018 Jake Hunsaker <jhunsake@redhat.com> 1.3-1
|
|
|
8f0bb7 |
- Reset versioning to continue from clustersos
|
|
|
8f0bb7 |
|
|
|
8f0bb7 |
* Thu Apr 26 2018 Jake Hunsaker <jhunsake@redhat.com> 1.0-1
|
|
|
8f0bb7 |
- Renamed project to sos-collector
|
|
|
8f0bb7 |
- Moved github repo to sosreport org
|