|
|
60a6c7 |
Summary: Capture sosreports from multiple nodes simultaneously
|
|
|
60a6c7 |
Name: sos-collector
|
|
|
60a6c7 |
Version: 1.7
|
|
|
60a6c7 |
Release: 5%{?dist}
|
|
|
60a6c7 |
Source0: http://people.redhat.com/jhunsake/sos-collector/%{name}-%{version}.tar.gz
|
|
|
60a6c7 |
License: GPLv2
|
|
|
60a6c7 |
BuildArch: noarch
|
|
|
60a6c7 |
Url: https://github.com/sosreport/sos-collector
|
|
|
60a6c7 |
Requires: sos >= 3.0
|
|
|
60a6c7 |
Obsoletes: clustersos < 1.2.2-2
|
|
|
60a6c7 |
Provides: clustersos = %{version}-%{release}
|
|
|
60a6c7 |
|
|
|
60a6c7 |
Patch0: sos-collector-setuptools.patch
|
|
|
60a6c7 |
Patch1: sos-collector-old-pexpect.patch
|
|
|
60a6c7 |
Patch2: sos-collector-none-cluster-fix.patch
|
|
|
60a6c7 |
Patch3: sos-collector-nested-container-fix.patch
|
|
|
60a6c7 |
Patch4: sos-collector-rhcos-image.patch
|
|
|
60a6c7 |
Patch5: sos-collector-rhhiv-profile.patch
|
|
|
60a6c7 |
|
|
|
60a6c7 |
%if 0%{?rhel} == 7
|
|
|
60a6c7 |
BuildRequires: python-devel
|
|
|
60a6c7 |
BuildRequires: python-setuptools
|
|
|
60a6c7 |
Requires: python2-futures
|
|
|
60a6c7 |
Requires: python-six
|
|
|
60a6c7 |
Requires: pexpect
|
|
|
60a6c7 |
%else
|
|
|
60a6c7 |
BuildRequires: python3-devel
|
|
|
60a6c7 |
Requires: python3-six
|
|
|
60a6c7 |
Requires: python3-pexpect
|
|
|
60a6c7 |
%endif
|
|
|
60a6c7 |
|
|
|
60a6c7 |
|
|
|
60a6c7 |
%description
|
|
|
60a6c7 |
sos-collector is a utility designed to capture sosreports from multiple nodes
|
|
|
60a6c7 |
at once and collect them into a single archive. If the nodes are part of
|
|
|
60a6c7 |
a cluster, profiles can be used to configure how the sosreport command
|
|
|
60a6c7 |
is run on the nodes.
|
|
|
60a6c7 |
|
|
|
60a6c7 |
%prep
|
|
|
60a6c7 |
%setup -q
|
|
|
60a6c7 |
%patch0 -p1
|
|
|
60a6c7 |
%patch1 -p1
|
|
|
60a6c7 |
%patch2 -p1
|
|
|
60a6c7 |
%patch3 -p1
|
|
|
60a6c7 |
%patch4 -p1
|
|
|
60a6c7 |
%patch5 -p1
|
|
|
60a6c7 |
|
|
|
60a6c7 |
%build
|
|
|
60a6c7 |
%if 0%{?rhel} == 7
|
|
|
60a6c7 |
%py2_build
|
|
|
60a6c7 |
%else
|
|
|
60a6c7 |
%py3_build
|
|
|
60a6c7 |
%endif
|
|
|
60a6c7 |
|
|
|
60a6c7 |
%install
|
|
|
60a6c7 |
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
|
|
|
60a6c7 |
install -p -m644 man/en/sos-collector.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/
|
|
|
60a6c7 |
%if 0%{?rhel} == 7
|
|
|
60a6c7 |
%py2_install
|
|
|
60a6c7 |
%else
|
|
|
60a6c7 |
%py3_install
|
|
|
60a6c7 |
%endif
|
|
|
60a6c7 |
|
|
|
60a6c7 |
|
|
|
60a6c7 |
|
|
|
60a6c7 |
%check
|
|
|
60a6c7 |
%if 0%{?rhel} == 7
|
|
|
60a6c7 |
%{__python2} setup.py test
|
|
|
60a6c7 |
%else
|
|
|
60a6c7 |
%{__python3} setup.py test
|
|
|
60a6c7 |
%endif
|
|
|
60a6c7 |
|
|
|
60a6c7 |
%files
|
|
|
60a6c7 |
%{_bindir}/sos-collector
|
|
|
60a6c7 |
%if 0%{?rhel} == 7
|
|
|
60a6c7 |
%{python2_sitelib}/*
|
|
|
60a6c7 |
%else
|
|
|
60a6c7 |
%{python3_sitelib}/*
|
|
|
60a6c7 |
%endif
|
|
|
60a6c7 |
%{_mandir}/man1/*
|
|
|
60a6c7 |
|
|
|
60a6c7 |
%doc LICENSE
|
|
|
60a6c7 |
|
|
|
60a6c7 |
%changelog
|
|
|
60a6c7 |
* Wed May 15 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-5
|
|
|
60a6c7 |
- Add missing local fixes for older pexpect versions
|
|
|
60a6c7 |
|
|
|
60a6c7 |
* Wed May 15 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-4
|
|
|
60a6c7 |
- Correct handling of older pexpect versions
|
|
|
60a6c7 |
|
|
|
60a6c7 |
* Tue Apr 23 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-3
|
|
|
60a6c7 |
- Added RHHI-V cluster profile
|
|
|
60a6c7 |
|
|
|
60a6c7 |
* Thu Apr 11 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-2
|
|
|
60a6c7 |
- Fix 'none' cluster type enablement
|
|
|
60a6c7 |
- Update RHCOS image to use RHEL 8 support-tools
|
|
|
60a6c7 |
- Fix execution from within a container
|
|
|
60a6c7 |
|
|
|
60a6c7 |
* Mon Apr 01 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-1
|
|
|
60a6c7 |
- New upstream release
|
|
|
60a6c7 |
- Enhance container execution
|
|
|
60a6c7 |
|
|
|
60a6c7 |
* Thu Mar 07 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.6-3
|
|
|
60a6c7 |
- Fix local command execution
|
|
|
60a6c7 |
- Fix quoting for non-root commands
|
|
|
60a6c7 |
- Backport Satellite support
|
|
|
60a6c7 |
- Backport RHCOS support
|
|
|
60a6c7 |
|
|
|
60a6c7 |
* Tue Dec 11 2018 Jake Hunsaker <jhunsake@redhat.com> - 1.6-2
|
|
|
60a6c7 |
- Handle older pexpect installations on RHEL 7
|
|
|
60a6c7 |
|
|
|
60a6c7 |
* Tue Dec 11 2018 Jake Hunsaker <jhunsake@redhat.com> - 1.6-1
|
|
|
60a6c7 |
- New upstream release
|
|
|
60a6c7 |
- Drop paramiko dependency, use OpenSSH ControlPersist instead.
|
|
|
60a6c7 |
|
|
|
60a6c7 |
* Wed Nov 07 2018 Jake Hunsaker <jhunsake@redhat.com> - 1.5-2
|
|
|
60a6c7 |
- Fix cluster option reporting
|
|
|
60a6c7 |
|
|
|
60a6c7 |
* Mon Oct 22 2018 Jake Hunsaker <jhunsake@redhat.com> - 1.5-1
|
|
|
60a6c7 |
- Update to version 1.5
|
|
|
60a6c7 |
- Resolves CVE-2018-14650
|
|
|
60a6c7 |
|
|
|
60a6c7 |
* Wed Aug 01 2018 Jake Hunsaker <jhunsake@redhat.com> 1.4-3
|
|
|
60a6c7 |
- Initial RHEL 7 release
|