819553
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
819553
819553
%global auditversion 0.3
819553
819553
Summary: A set of tools to gather troubleshooting information from a system
819553
Name: sos
819553
Version: 4.2
819553
Release: 15%{?dist}
819553
Group: Applications/System
819553
Source0: https://github.com/sosreport/sos/archive/%{version}/sos-%{version}.tar.gz
819553
Source1: sos-audit-%{auditversion}.tgz
819553
License: GPLv2+
819553
BuildArch: noarch
819553
Url: https://github.com/sosreport/sos
819553
BuildRequires: python3-devel
819553
BuildRequires: gettext
819553
Requires: libxml2-python3
819553
#Requires: python3-rpm
819553
Requires: tar
819553
Requires: bzip2
819553
Requires: xz
819553
Recommends: python3-pexpect
819553
Conflicts: vdsm < 4.40
819553
Obsoletes: sos-collector <= 1.9
819553
Recommends: python3-pexpect
819553
Recommends: python3-requests
819553
Patch1: sos-bz1869561-cpuX-individual-sizelimits.patch
819553
Patch2: sos-bz2011533-unpackaged-recursive-symlink.patch
819553
Patch3: sos-bz2011534-opacapture-under-allow-system-changes.patch
819553
Patch4: sos-bz2011535-kernel-psi.patch
819553
Patch5: sos-bz2011538-iptables-save-under-nf_tables-kmod.patch
819553
Patch6: sos-bz2011537-estimate-only-option.patch
819553
Patch7: sos-bz2011536-iptables-based-on-ntf.patch
819553
Patch8: sos-bz2011507-foreman-puma-status.patch
819553
Patch9: sos-bz2012858-dryrun-uncaught-exception.patch
819553
Patch10: sos-bz2019697-openvswitch-offline-analysis.patch
819553
Patch11: sos-bz2012859-plugin-timeout-unhandled-exception.patch
819553
Patch12: sos-bz2023481-plugin-timeouts-proper-handling.patch
819553
Patch13: sos-bz2020778-filter-namespace-per-pattern.patch
819553
Patch14: sos-bz2024893-cleaner-hostnames-improvements.patch
819553
Patch15: sos-bz2025611-RHTS-api-change.patch
819553
Patch16: sos-bz2034001-nvidia-GPU-info.patch
819553
Patch17: sos-bz2031777-rhui-logs.patch
819553
Patch18: sos-bz2037350-ocp-backports.patch
819553
Patch19: sos-bz2043104-foreman-tasks-msgpack.patch
819553
Patch20: sos-bz2041855-virsh-in-foreground.patch
819553
Patch21: sos-bz2043488-ovn-proper-package-enablement.patch
819553
Patch22: sos-bz2054883-plugopt-logging-effective-opts.patch
819553
Patch23: sos-bz2055548-honour-plugins-timeout-hardcoded.patch
819553
819553
%description
819553
Sos is a set of tools that gathers information about system
819553
hardware and configuration. The information can then be used for
819553
diagnostic purposes and debugging. Sos is commonly used to help
819553
support technicians and developers.
819553
819553
%prep
819553
%setup -qn %{name}-%{version}
819553
%setup -T -D -a1 -q
819553
%patch1 -p1
819553
%patch2 -p1
819553
%patch3 -p1
819553
%patch4 -p1
819553
%patch5 -p1
819553
%patch6 -p1
819553
%patch7 -p1
819553
%patch8 -p1
819553
%patch9 -p1
819553
%patch10 -p1
819553
%patch11 -p1
819553
%patch12 -p1
819553
%patch13 -p1
819553
%patch14 -p1
819553
%patch15 -p1
819553
%patch16 -p1
819553
%patch17 -p1
819553
%patch18 -p1
819553
%patch19 -p1
819553
%patch20 -p1
819553
%patch21 -p1
819553
%patch22 -p1
819553
%patch23 -p1
819553
819553
%build
819553
%py3_build
819553
819553
%install
819553
%py3_install '--install-scripts=%{_sbindir}'
819553
819553
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
819553
install -d -m 700 %{buildroot}%{_sysconfdir}/%{name}/cleaner
819553
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}/presets.d
819553
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}/groups.d
819553
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}/extras.d
819553
install -m 644 %{name}.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
819553
819553
rm -rf %{buildroot}/usr/config/
819553
819553
%find_lang %{name} || echo 0
819553
819553
cd %{name}-audit-%{auditversion}
819553
DESTDIR=%{buildroot} ./install.sh
819553
cd ..
819553
819553
%files -f %{name}.lang
819553
%{_sbindir}/sos
819553
%{_sbindir}/sosreport
819553
%{_sbindir}/sos-collector
819553
#%dir /etc/sos/cleaner
819553
%dir /etc/sos/presets.d
819553
%dir /etc/sos/extras.d
819553
%dir /etc/sos/groups.d
819553
%{python3_sitelib}/*
819553
%{_mandir}/man1/*
819553
%{_mandir}/man5/sos.conf.5.gz
819553
%doc AUTHORS README.md
819553
%license LICENSE
819553
%config(noreplace) %{_sysconfdir}/sos/sos.conf
819553
%config(noreplace) %{_sysconfdir}/sos/cleaner
819553
819553
819553
%package audit
819553
Summary: Audit use of some commands for support purposes
819553
License: GPLv2+
819553
Group: Application/System
819553
819553
%description audit
819553
819553
Sos-audit provides configuration files for the Linux Auditing System
819553
to track the use of some commands capable of changing the configuration
819553
of the system.  Currently storage and filesystem commands are audited.
819553
819553
%post audit
819553
%{_sbindir}/sos-audit.sh
819553
819553
%files audit
819553
%defattr(755,root,root,-)
819553
%{_sbindir}/sos-audit.sh
819553
%defattr(644,root,root,-)
819553
%config(noreplace) %{_sysconfdir}/sos/sos-audit.conf
819553
%defattr(444,root,root,-)
819553
%{_prefix}/lib/sos/audit/*
819553
%{_mandir}/man5/sos-audit.conf.5.gz
819553
%{_mandir}/man8/sos-audit.sh.8.gz
819553
%ghost /etc/audit/rules.d/40-sos-filesystem.rules
819553
%ghost /etc/audit/rules.d/40-sos-storage.rules
819553
819553
819553
%changelog
819553
* Wed Feb 23 2022 Pavel Moravec <pmoravec@redhat.com> = 4.2-15
819553
- [sosnode] Handle downstream versioning for runtime option
819553
  Resolves: bz2037350
819553
- [options] Fix logging on plugopts in effective sos command
819553
  Resolves: bz2054883
819553
- [report] Honor plugins' hardcoded plugin_timeout
819553
  Resolves: bz2055548
819553
- [policies] Set fallback to None sysroot, don't chroot to '/'
819553
  Resolves: bz2011537
819553
- [ovn_central] Rename container responsable of Red Hat
819553
  Resolves: bz2043488
819553
819553
* Wed Jan 26 2022 Pavel Moravec <pmoravec@redhat.com> = 4.2-13
819553
- [virsh] Catch parsing exception
819553
  Resolves: bz2041855
819553
819553
* Tue Jan 25 2022 Pavel Moravec <pmoravec@redhat.com> = 4.2-12
819553
- [foreman] Use psql-msgpack-decode wrapper for dynflow >= 1.6
819553
  Resolves: bz2043104
819553
- [virsh] Call virsh commands in the foreground / with a TTY
819553
  Resolves: bz2041855
819553
- [ovn_central] Account for Red Hat ovn package naming
819553
  Resolves: bz2043488
819553
- [clean,parsers] Build regex lists for static items only once
819553
  Resolves: bz2037350
819553
819553
* Mon Jan 10 2022 Pavel Moravec <pmoravec@redhat.com> = 4.2-11
819553
- [report] Add journal logs for NetworkManager plugin
819553
  Resolves: bz2037350
819553
819553
* Fri Jan 07 2022 Pavel Moravec <pmoravec@redhat.com> = 4.2-9
819553
- add oc transport, backport various PRs for OCP
819553
  Resolves: bz2037350
819553
- [report] Provide better warning about estimate-mode
819553
  Resolves: bz2011537
819553
- [hostname] Fix loading and detection of long base domains
819553
  Resolves: bz2024893
819553
819553
* Sun Dec 19 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-8
819553
- [rhui] New log folder
819553
  Resolves: bz2031777
819553
- nvidia]:Patch to update nvidia plugin for GPU info
819553
  Resolves: bz2034001
819553
- [hostname] Fix edge case for new hosts in a known subdomain
819553
  Resolves: bz2024893
819553
819553
* Wed Dec 08 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-7
819553
- [hostname] Simplify case matching for domains
819553
  Resolves: bz2024893
819553
819553
* Tue Nov 30 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-6
819553
- [redhat] Fix broken URI to upload to customer portal
819553
  Resolves: bz2025611
819553
819553
* Mon Nov 22 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-5
819553
- [clean,hostname_parser] Source /etc/hosts for obfuscation
819553
  Resolves: bz2024893
819553
- [clean, hostname] Fix unintentionally case sensitive
819553
  Resolves: bz2024892
819553
- [redhat] update SFTP API version to v2
819553
  Resolves: bz2025611
819553
819553
* Tue Nov 16 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-4
819553
- [report] Calculate sizes of dirs, symlinks and manifest in
819553
  Resolves: bz2011537
819553
- [report] shutdown threads for timeouted plugins
819553
  Resolves: bz2012859
819553
- [report] fix filter_namespace per pattern
819553
  Resolves: bz2020778
819553
- Ensure specific plugin timeouts are only set
819553
  Resolves: bz2023481
819553
819553
* Wed Nov 03 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-2
819553
- [firewall_tables] call iptables -t  based on nft
819553
  Resolves: bz2011536
819553
- [report] Count with sos_logs and sos_reports in
819553
  Resolves: bz2011537
819553
- [foreman] Collect puma status and stats
819553
  Resolves: bz2011507
819553
- [report] Overwrite pred=None before refering predicate
819553
  Resolves: bz2012858
819553
- [openvswitch] add commands for offline analysis
819553
  Resolves: bz2019697
819553
819553
* Wed Oct 06 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-1
819553
- Rebase on upstream 4.2
819553
  Resolves: bz1998134
819553
- [report] Implement --estimate-only
819553
  Resolves: bz2011537
819553
- [omnipath_client] Opacapture to run only with allow changes
819553
  Resolves: bz2011534
819553
- [unpackaged] deal with recursive loop of symlinks properly
819553
  Resolves: bz2011533
819553
- [networking] prevent iptables-save commands to load nf_tables
819553
  Resolves: bz2011538
819553
- [kernel] Capture Pressure Stall Information
819553
  Resolves: bz2011535
819553
- [processor] Apply sizelimit to /sys/devices/system/cpu/cpuX
819553
  Resolves: bz1869561
819553
819553
* Wed Aug 11 2021 Pavel Moravec <pmoravec@redhat.com> = 4.1-8
819553
- [report,collect] unify --map-file arguments
819553
  Resolves: bz1985985
819553
- [rhui] add new plugin for RHUI 4
819553
  Resolves: bz1992859
819553
- [username parser] Load usernames from `last` for LDAP users
819553
  Resolves: bz1992861
819553
819553
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 4.1-7
819553
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
819553
  Related: rhbz#1991688
819553
819553
* Tue Jul 27 2021 Pavel Moravec <pmoravec@redhat.com> - 4.1-6
819553
- [networking] collect also tc filter show ingress
819553
  Resolves: bz1985976
819553
- [cleaner] Only skip packaging-based files for the IP parser
819553
  Resolves: bz1985982
819553
- [sssd] sssd plugin when sssd-common
819553
  Resolves: bz1967718
819553
- Various OCP/cluster/cleanup enhancements
819553
  Resolves: bz1985983
819553
- [options] allow variant option names in config file
819553
  Resolves: bz1985985
819553
- [plugins] Set default predicate instead of None
819553
  Resolves: bz1938874
819553
- [MigrationResults] collect info about conversions and
819553
  Resolves: bz1959779
819553
819553
* Wed Jun 02 2021 Pavel Moravec <pmoravec@redhat.com> - 4.1-4
819553
- [archive] skip copying SELinux context for /proc and /sys everytime
819553
  Resolves: bz1965002
819553
- Load maps from all archives before obfuscation
819553
  Resolves: bz1967110
819553
- Multiple fixes in man pages
819553
  Resolves: bz1967111
819553
- [ds] Mask password and encryption keys in ldif files
819553
  Resolves: bz1967112
819553
- [report] add --cmd-timeout option
819553
  Resolves: bz1967113
819553
- [cups] Add gathering cups-browsed logs
819553
  Resolves: bz1967114
819553
- [sssd] Collect memory cache / individual logfiles
819553
  Resolves: bz1967115
819553
- Collect ibmvNIC dynamic_debugs
819553
  Resolves: bz1967116
819553
- [pulpcore] add plugin for pulp-3
819553
  Resolves: bz1967117
819553
- [saphana] remove redundant unused argument of get_inst_info
819553
  Resolves: bz1967118
819553
- [networking] Add nstat command support
819553
  Resolves: bz1967119
819553
- [snapper] add a new plugin
819553
  Resolves: bz1967120
819553
819553
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.1-4
819553
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
819553
819553
* Thu Apr 01 2021 Pavel Moravec <pmoravec@redhat.com> - 4.1-3
819553
- adding sos-audit
819553
- [gluster] Add glusterd public keys and status files
819553
  Resolves: bz1925419 
819553
819553
* Wed Mar 10 2021 Sandro Bonazzola <sbonazzo@redhat.com> - 4.1-1
819553
- Rebase to 4.1
819553