2020-10-15 16:47:45 +00:00
|
|
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
2021-04-01 10:59:45 +00:00
|
|
|
%global auditversion 0.3
|
|
|
|
|
2020-10-15 16:47:45 +00:00
|
|
|
Summary: A set of tools to gather troubleshooting information from a system
|
|
|
|
Name: sos
|
2023-05-04 13:10:07 +00:00
|
|
|
Version: 4.5.3
|
|
|
|
Release: 1%{?dist}
|
2021-04-01 10:59:45 +00:00
|
|
|
Group: Applications/System
|
|
|
|
Source0: https://github.com/sosreport/sos/archive/%{version}/sos-%{version}.tar.gz
|
|
|
|
Source1: sos-audit-%{auditversion}.tgz
|
2023-05-04 13:10:07 +00:00
|
|
|
License: GPL-2.0-or-later
|
2020-10-15 16:47:45 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
Url: https://github.com/sosreport/sos
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: gettext
|
2023-02-07 14:40:44 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2022-09-09 18:58:31 +00:00
|
|
|
Requires: python3-requests
|
2022-09-22 13:41:26 +00:00
|
|
|
Recommends: python3-magic
|
2021-04-01 10:59:45 +00:00
|
|
|
Recommends: python3-pexpect
|
2022-10-28 19:59:33 +00:00
|
|
|
Recommends: python3-pyyaml
|
2021-04-01 10:59:45 +00:00
|
|
|
Conflicts: vdsm < 4.40
|
2020-10-15 16:47:45 +00:00
|
|
|
Obsoletes: sos-collector <= 1.9
|
2022-06-16 21:09:06 +00:00
|
|
|
|
2020-10-15 16:47:45 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Sos is a set of tools that gathers information about system
|
|
|
|
hardware and configuration. The information can then be used for
|
|
|
|
diagnostic purposes and debugging. Sos is commonly used to help
|
|
|
|
support technicians and developers.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qn %{name}-%{version}
|
2021-04-01 10:59:45 +00:00
|
|
|
%setup -T -D -a1 -q
|
2023-03-08 19:22:15 +00:00
|
|
|
|
2020-10-15 16:47:45 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%py3_install '--install-scripts=%{_sbindir}'
|
|
|
|
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
|
|
|
|
install -d -m 700 %{buildroot}%{_sysconfdir}/%{name}/cleaner
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}/presets.d
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}/groups.d
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}/extras.d
|
2023-05-04 13:10:07 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/tmpfiles.d/
|
2020-10-15 16:47:45 +00:00
|
|
|
install -m 644 %{name}.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
|
2023-05-04 13:10:07 +00:00
|
|
|
install -m 644 tmpfiles/tmpfilesd-sos-rh.conf %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
|
2020-10-15 16:47:45 +00:00
|
|
|
|
2021-03-26 07:40:22 +00:00
|
|
|
rm -rf %{buildroot}/usr/config/
|
|
|
|
|
2020-10-15 16:47:45 +00:00
|
|
|
%find_lang %{name} || echo 0
|
|
|
|
|
2021-04-01 10:59:45 +00:00
|
|
|
cd %{name}-audit-%{auditversion}
|
|
|
|
DESTDIR=%{buildroot} ./install.sh
|
|
|
|
cd ..
|
|
|
|
|
2023-02-07 14:40:44 +00:00
|
|
|
# internationalization is currently broken. Uncomment this line once fixed.
|
|
|
|
# %%files -f %%{name}.lang
|
|
|
|
%files
|
2020-10-15 16:47:45 +00:00
|
|
|
%{_sbindir}/sos
|
|
|
|
%{_sbindir}/sosreport
|
|
|
|
%{_sbindir}/sos-collector
|
2021-04-01 10:59:45 +00:00
|
|
|
#%dir /etc/sos/cleaner
|
2020-10-15 16:47:45 +00:00
|
|
|
%dir /etc/sos/presets.d
|
|
|
|
%dir /etc/sos/extras.d
|
|
|
|
%dir /etc/sos/groups.d
|
2023-05-04 13:10:07 +00:00
|
|
|
%{_sysconfdir}/tmpfiles.d/%{name}.conf
|
2020-10-15 16:47:45 +00:00
|
|
|
%{python3_sitelib}/*
|
|
|
|
%{_mandir}/man1/*
|
2021-04-01 13:33:41 +00:00
|
|
|
%{_mandir}/man5/sos.conf.5.gz
|
2020-10-15 16:47:45 +00:00
|
|
|
%doc AUTHORS README.md
|
|
|
|
%license LICENSE
|
|
|
|
%config(noreplace) %{_sysconfdir}/sos/sos.conf
|
2021-04-01 10:59:45 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/sos/cleaner
|
2020-10-15 16:47:45 +00:00
|
|
|
|
|
|
|
|
2021-04-01 10:59:45 +00:00
|
|
|
%package audit
|
|
|
|
Summary: Audit use of some commands for support purposes
|
|
|
|
License: GPLv2+
|
|
|
|
Group: Application/System
|
2020-10-15 16:47:45 +00:00
|
|
|
|
2021-04-01 10:59:45 +00:00
|
|
|
%description audit
|
2020-10-15 16:47:45 +00:00
|
|
|
|
2021-04-01 10:59:45 +00:00
|
|
|
Sos-audit provides configuration files for the Linux Auditing System
|
|
|
|
to track the use of some commands capable of changing the configuration
|
|
|
|
of the system. Currently storage and filesystem commands are audited.
|
2020-10-15 16:47:45 +00:00
|
|
|
|
2021-04-01 10:59:45 +00:00
|
|
|
%post audit
|
|
|
|
%{_sbindir}/sos-audit.sh
|
2020-10-15 16:47:45 +00:00
|
|
|
|
2021-04-01 10:59:45 +00:00
|
|
|
%files audit
|
|
|
|
%defattr(755,root,root,-)
|
|
|
|
%{_sbindir}/sos-audit.sh
|
|
|
|
%defattr(644,root,root,-)
|
|
|
|
%config(noreplace) %{_sysconfdir}/sos/sos-audit.conf
|
|
|
|
%defattr(444,root,root,-)
|
|
|
|
%{_prefix}/lib/sos/audit/*
|
|
|
|
%{_mandir}/man5/sos-audit.conf.5.gz
|
|
|
|
%{_mandir}/man8/sos-audit.sh.8.gz
|
|
|
|
%ghost /etc/audit/rules.d/40-sos-filesystem.rules
|
|
|
|
%ghost /etc/audit/rules.d/40-sos-storage.rules
|
2020-10-15 16:47:45 +00:00
|
|
|
|
|
|
|
|
2021-04-01 10:59:45 +00:00
|
|
|
%changelog
|
2023-05-04 13:10:07 +00:00
|
|
|
* Thu May 04 2023 Jan Jansky <jjansky@redhat.com> = 4.5.3-1
|
|
|
|
- [unpackaged] Print unpackaged symlinks instead of targets
|
|
|
|
Resolves: bz2169684
|
|
|
|
- [report] Ignore case when scrubbing via do_file_sub
|
|
|
|
Resolves: bz2174254
|
|
|
|
- [powerpc]: To collect lparnumascore logs
|
|
|
|
Resolves: bz2177984
|
|
|
|
|
2023-03-08 20:55:36 +00:00
|
|
|
* Wed Mar 08 2023 Pavel Moravec <pmoravec@redhat.com> = 4.5.1-3
|
2023-03-08 19:22:15 +00:00
|
|
|
- Rebase on upstream 4.5.1
|
|
|
|
Resolves: bz2175808
|
|
|
|
- [microshift] Fix microshift get and add commands
|
|
|
|
Resolves: bz2175650
|
|
|
|
|
2023-02-07 14:40:44 +00:00
|
|
|
* Tue Feb 07 2023 Pavel Moravec <pmoravec@redhat.com> = 4.5.0-1
|
|
|
|
- Rebase on upstream 4.5.0
|
|
|
|
Resolves: bz2082615
|
|
|
|
|
2022-11-03 20:41:27 +00:00
|
|
|
* Thu Nov 03 2022 Pavel Moravec <pmoravec@redhat.com> = 4.4-4
|
|
|
|
- [ocp] Add newly required labels to temp OCP namespace
|
|
|
|
Resolves: bz2130976
|
|
|
|
|
2022-10-28 19:59:33 +00:00
|
|
|
* Fri Oct 28 2022 Pavel Moravec <pmoravec@redhat.com> = 4.4-3
|
|
|
|
- [cleaner] Apply compile_regexes after a regular parse line
|
|
|
|
Resolves: bz2138174
|
|
|
|
|
2022-09-22 13:41:26 +00:00
|
|
|
* Thu Sep 22 2022 Pavel Moravec <pmoravec@redhat.com> = 4.4-2
|
|
|
|
- [utilities] Relax from hard dependency of python3-magic
|
|
|
|
Resolves: bz2126089
|
|
|
|
- [dnf] Collect legacy yum config symlinks, properly obfuscate pwds
|
|
|
|
Resolves: bz2125499
|
|
|
|
|
2022-09-09 18:58:31 +00:00
|
|
|
* Fri Sep 09 2022 Pavel Moravec <pmoravec@redhat.com> = 4.4-1
|
|
|
|
- Rebase on upstream 4.4
|
|
|
|
Resolves: bz2082615
|
|
|
|
- [redhat] Honour credential-less --upload-url on RedHat distro properly
|
|
|
|
Resolves: bz2059573
|
|
|
|
- [md] Restrict data capture to raid members
|
|
|
|
Resolves: bz2062283
|
|
|
|
- [sos] Fix unhandled exception when concurrently removing temp dir
|
|
|
|
Resolves: bz2088440
|
|
|
|
|
2022-08-30 07:12:02 +00:00
|
|
|
* Mon Aug 29 2022 Pavel Moravec <pmoravec@redhat.com> = 4.3-3
|
|
|
|
- [vdsm] Set LVM option use_devicesfile=0
|
|
|
|
Resolves: bz2122355
|
|
|
|
- [Plugin] Make forbidden path checks more efficient
|
|
|
|
Resolves: bz2122354
|
|
|
|
|
2022-06-16 21:09:06 +00:00
|
|
|
* Thu Jun 16 2022 Pavel Moravec <pmoravec@redhat.com> = 4.3-2
|
|
|
|
- [ocp, openshift] Re-align API collection options and rename
|
|
|
|
Resolves: bz2065563
|
|
|
|
- [utilities] Close file only when storing to file
|
|
|
|
Resolves: bz2079492
|
|
|
|
- [report] --list-plugins should report used, not default,
|
|
|
|
Resolves: bz2079490
|
|
|
|
- [report] Honor plugins' hardcoded plugin_timeout
|
|
|
|
Resolves: bz2079188
|
|
|
|
- crio: switch from parsing output in table format to json
|
|
|
|
Resolves: bz2097674
|
|
|
|
- [pacemaker] Redesign node enumeration logic
|
|
|
|
Resolves: bz2082914
|
|
|
|
- [tigervnc] Update collections for newer versions of TigerVNC
|
|
|
|
Resolves: bz2066181
|
|
|
|
- [plugins] Allow 'str' PlugOpt type to accept any value
|
|
|
|
Resolves: bz2079491
|
|
|
|
- [ovirt] answer files: Filter out all password keys
|
|
|
|
Resolves: bz2095267
|
|
|
|
|
2022-03-24 07:57:19 +00:00
|
|
|
* Thu Mar 24 2022 Pavel Moravec <pmoravec@redhat.com> = 4.3-1
|
|
|
|
- Rebase on upstream 4.3
|
|
|
|
Resolves: 2055003
|
|
|
|
- [sapnw] Fix IndexError exception
|
|
|
|
Resolves: 2065551
|
|
|
|
- [subscription_manager] collect syspurpose data via sub-man
|
|
|
|
Resolves: 2002333
|
|
|
|
- [Plugin, utilities] Allow writing command output directly to disk
|
|
|
|
Resolves: 2065564
|
|
|
|
- [Ceph] Add support for containerized Ceph setup
|
|
|
|
Resolves: 2065562
|
|
|
|
- [unbound] Add new plugin for Unbound DNS resolver
|
|
|
|
Resolves: 2065560
|
|
|
|
- [discovery] Add new discovery plugin
|
|
|
|
Resolves: 2065558
|
|
|
|
- [system] Collect glibc tuning decisions
|
|
|
|
Resolves: 2032913
|
|
|
|
|
2022-02-23 15:11:11 +00:00
|
|
|
* Wed Feb 23 2022 Pavel Moravec <pmoravec@redhat.com> = 4.2-15
|
2022-02-23 08:44:51 +00:00
|
|
|
- [sosnode] Handle downstream versioning for runtime option
|
|
|
|
Resolves: bz2037350
|
|
|
|
- [options] Fix logging on plugopts in effective sos command
|
|
|
|
Resolves: bz2054883
|
|
|
|
- [report] Honor plugins' hardcoded plugin_timeout
|
|
|
|
Resolves: bz2055548
|
|
|
|
- [policies] Set fallback to None sysroot, don't chroot to '/'
|
|
|
|
Resolves: bz2011537
|
|
|
|
- [ovn_central] Rename container responsable of Red Hat
|
|
|
|
Resolves: bz2043488
|
|
|
|
|
2022-01-26 11:36:41 +00:00
|
|
|
* Wed Jan 26 2022 Pavel Moravec <pmoravec@redhat.com> = 4.2-13
|
|
|
|
- [virsh] Catch parsing exception
|
|
|
|
Resolves: bz2041855
|
|
|
|
|
2022-01-25 20:45:56 +00:00
|
|
|
* Tue Jan 25 2022 Pavel Moravec <pmoravec@redhat.com> = 4.2-12
|
|
|
|
- [foreman] Use psql-msgpack-decode wrapper for dynflow >= 1.6
|
|
|
|
Resolves: bz2043104
|
|
|
|
- [virsh] Call virsh commands in the foreground / with a TTY
|
|
|
|
Resolves: bz2041855
|
|
|
|
- [ovn_central] Account for Red Hat ovn package naming
|
|
|
|
Resolves: bz2043488
|
|
|
|
- [clean,parsers] Build regex lists for static items only once
|
|
|
|
Resolves: bz2037350
|
|
|
|
|
2022-01-10 18:49:39 +00:00
|
|
|
* Mon Jan 10 2022 Pavel Moravec <pmoravec@redhat.com> = 4.2-11
|
2022-01-25 20:45:56 +00:00
|
|
|
- [report] Add journal logs for NetworkManager plugin
|
2022-01-10 15:22:48 +00:00
|
|
|
Resolves: bz2037350
|
|
|
|
|
2022-01-07 17:16:05 +00:00
|
|
|
* Fri Jan 07 2022 Pavel Moravec <pmoravec@redhat.com> = 4.2-9
|
|
|
|
- add oc transport, backport various PRs for OCP
|
|
|
|
Resolves: bz2037350
|
|
|
|
- [report] Provide better warning about estimate-mode
|
|
|
|
Resolves: bz2011537
|
|
|
|
- [hostname] Fix loading and detection of long base domains
|
|
|
|
Resolves: bz2024893
|
|
|
|
|
2021-12-19 13:40:14 +00:00
|
|
|
* Sun Dec 19 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-8
|
|
|
|
- [rhui] New log folder
|
|
|
|
Resolves: bz2031777
|
|
|
|
- nvidia]:Patch to update nvidia plugin for GPU info
|
|
|
|
Resolves: bz2034001
|
|
|
|
- [hostname] Fix edge case for new hosts in a known subdomain
|
|
|
|
Resolves: bz2024893
|
|
|
|
|
2021-12-09 20:58:22 +00:00
|
|
|
* Wed Dec 08 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-7
|
|
|
|
- [hostname] Simplify case matching for domains
|
|
|
|
Resolves: bz2024893
|
|
|
|
|
2021-11-30 21:32:43 +00:00
|
|
|
* Tue Nov 30 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-6
|
|
|
|
- [redhat] Fix broken URI to upload to customer portal
|
|
|
|
Resolves: bz2025611
|
|
|
|
|
2021-11-22 20:53:28 +00:00
|
|
|
* Mon Nov 22 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-5
|
|
|
|
- [clean,hostname_parser] Source /etc/hosts for obfuscation
|
|
|
|
Resolves: bz2024893
|
|
|
|
- [clean, hostname] Fix unintentionally case sensitive
|
|
|
|
Resolves: bz2024892
|
|
|
|
- [redhat] update SFTP API version to v2
|
|
|
|
Resolves: bz2025611
|
|
|
|
|
2021-11-16 08:10:02 +00:00
|
|
|
* Tue Nov 16 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-4
|
2021-11-15 21:35:41 +00:00
|
|
|
- [report] Calculate sizes of dirs, symlinks and manifest in
|
|
|
|
Resolves: bz2011537
|
|
|
|
- [report] shutdown threads for timeouted plugins
|
|
|
|
Resolves: bz2012859
|
|
|
|
- [report] fix filter_namespace per pattern
|
|
|
|
Resolves: bz2020778
|
|
|
|
- Ensure specific plugin timeouts are only set
|
|
|
|
Resolves: bz2023481
|
|
|
|
|
2021-11-03 10:39:42 +00:00
|
|
|
* Wed Nov 03 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-2
|
|
|
|
- [firewall_tables] call iptables -t <table> based on nft
|
|
|
|
Resolves: bz2011536
|
|
|
|
- [report] Count with sos_logs and sos_reports in
|
|
|
|
Resolves: bz2011537
|
|
|
|
- [foreman] Collect puma status and stats
|
|
|
|
Resolves: bz2011507
|
|
|
|
- [report] Overwrite pred=None before refering predicate
|
|
|
|
Resolves: bz2012858
|
|
|
|
- [openvswitch] add commands for offline analysis
|
|
|
|
Resolves: bz2019697
|
|
|
|
|
2021-10-08 07:20:07 +00:00
|
|
|
* Wed Oct 06 2021 Pavel Moravec <pmoravec@redhat.com> = 4.2-1
|
|
|
|
- Rebase on upstream 4.2
|
|
|
|
Resolves: bz1998134
|
|
|
|
- [report] Implement --estimate-only
|
|
|
|
Resolves: bz2011537
|
|
|
|
- [omnipath_client] Opacapture to run only with allow changes
|
|
|
|
Resolves: bz2011534
|
|
|
|
- [unpackaged] deal with recursive loop of symlinks properly
|
|
|
|
Resolves: bz2011533
|
|
|
|
- [networking] prevent iptables-save commands to load nf_tables
|
|
|
|
Resolves: bz2011538
|
|
|
|
- [kernel] Capture Pressure Stall Information
|
|
|
|
Resolves: bz2011535
|
|
|
|
- [processor] Apply sizelimit to /sys/devices/system/cpu/cpuX
|
|
|
|
Resolves: bz1869561
|
|
|
|
|
2021-08-11 20:29:12 +00:00
|
|
|
* Wed Aug 11 2021 Pavel Moravec <pmoravec@redhat.com> = 4.1-8
|
|
|
|
- [report,collect] unify --map-file arguments
|
|
|
|
Resolves: bz1985985
|
|
|
|
- [rhui] add new plugin for RHUI 4
|
|
|
|
Resolves: bz1992859
|
|
|
|
- [username parser] Load usernames from `last` for LDAP users
|
|
|
|
Resolves: bz1992861
|
|
|
|
|
2021-08-10 00:55:20 +00:00
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 4.1-7
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
2021-07-27 09:00:18 +00:00
|
|
|
* Tue Jul 27 2021 Pavel Moravec <pmoravec@redhat.com> - 4.1-6
|
|
|
|
- [networking] collect also tc filter show ingress
|
|
|
|
Resolves: bz1985976
|
|
|
|
- [cleaner] Only skip packaging-based files for the IP parser
|
|
|
|
Resolves: bz1985982
|
|
|
|
- [sssd] sssd plugin when sssd-common
|
|
|
|
Resolves: bz1967718
|
|
|
|
- Various OCP/cluster/cleanup enhancements
|
|
|
|
Resolves: bz1985983
|
|
|
|
- [options] allow variant option names in config file
|
|
|
|
Resolves: bz1985985
|
|
|
|
- [plugins] Set default predicate instead of None
|
|
|
|
Resolves: bz1938874
|
|
|
|
- [MigrationResults] collect info about conversions and
|
|
|
|
Resolves: bz1959779
|
|
|
|
|
2021-06-02 12:30:00 +00:00
|
|
|
* Wed Jun 02 2021 Pavel Moravec <pmoravec@redhat.com> - 4.1-4
|
|
|
|
- [archive] skip copying SELinux context for /proc and /sys everytime
|
|
|
|
Resolves: bz1965002
|
|
|
|
- Load maps from all archives before obfuscation
|
|
|
|
Resolves: bz1967110
|
|
|
|
- Multiple fixes in man pages
|
|
|
|
Resolves: bz1967111
|
|
|
|
- [ds] Mask password and encryption keys in ldif files
|
|
|
|
Resolves: bz1967112
|
|
|
|
- [report] add --cmd-timeout option
|
|
|
|
Resolves: bz1967113
|
|
|
|
- [cups] Add gathering cups-browsed logs
|
|
|
|
Resolves: bz1967114
|
|
|
|
- [sssd] Collect memory cache / individual logfiles
|
|
|
|
Resolves: bz1967115
|
|
|
|
- Collect ibmvNIC dynamic_debugs
|
|
|
|
Resolves: bz1967116
|
|
|
|
- [pulpcore] add plugin for pulp-3
|
|
|
|
Resolves: bz1967117
|
|
|
|
- [saphana] remove redundant unused argument of get_inst_info
|
|
|
|
Resolves: bz1967118
|
|
|
|
- [networking] Add nstat command support
|
|
|
|
Resolves: bz1967119
|
|
|
|
- [snapper] add a new plugin
|
|
|
|
Resolves: bz1967120
|
|
|
|
|
2021-04-16 05:41:29 +00:00
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.1-4
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
2021-04-01 13:33:41 +00:00
|
|
|
* Thu Apr 01 2021 Pavel Moravec <pmoravec@redhat.com> - 4.1-3
|
|
|
|
- adding sos-audit
|
|
|
|
- [gluster] Add glusterd public keys and status files
|
|
|
|
Resolves: bz1925419
|
2020-10-15 16:47:45 +00:00
|
|
|
|
2021-04-01 10:59:45 +00:00
|
|
|
* Wed Mar 10 2021 Sandro Bonazzola <sbonazzo@redhat.com> - 4.1-1
|
|
|
|
- Rebase to 4.1
|
2020-10-15 16:47:45 +00:00
|
|
|
|