|
|
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
|
|
|
bbe98b |
Version: 4.5.0
|
|
|
bbe98b |
Release: 1%{?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
|
|
|
bbe98b |
BuildRequires: python3-setuptools
|
|
|
819553 |
Requires: tar
|
|
|
819553 |
Requires: bzip2
|
|
|
819553 |
Requires: xz
|
|
|
bbe98b |
Requires: python3-requests
|
|
|
bbe98b |
Recommends: python3-magic
|
|
|
819553 |
Recommends: python3-pexpect
|
|
|
bbe98b |
Recommends: python3-pyyaml
|
|
|
819553 |
Conflicts: vdsm < 4.40
|
|
|
819553 |
Obsoletes: sos-collector <= 1.9
|
|
|
4b82b4 |
|
|
|
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 |
|
|
|
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 |
|
|
|
bbe98b |
# internationalization is currently broken. Uncomment this line once fixed.
|
|
|
bbe98b |
# %%files -f %%{name}.lang
|
|
|
bbe98b |
%files
|
|
|
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
|
|
|
5d7bdb |
* Thu Mar 16 2023 CentOS Sources <bugs@centos.org> - 4.5.0-1.el9.centos
|
|
|
5d7bdb |
- Apply debranding changes
|
|
|
5d7bdb |
|
|
|
bbe98b |
* Tue Feb 07 2023 Pavel Moravec <pmoravec@redhat.com> = 4.5.0-1
|
|
|
bbe98b |
- Rebase on upstream 4.5.0
|
|
|
bbe98b |
Resolves: bz2082615
|
|
|
4b82b4 |
|
|
|
bbe98b |
* Thu Nov 03 2022 Pavel Moravec <pmoravec@redhat.com> = 4.4-4
|
|
|
4b82b4 |
- [ocp] Add newly required labels to temp OCP namespace
|
|
|
bbe98b |
Resolves: bz2130976
|
|
|
bbe98b |
|
|
|
bbe98b |
* Fri Oct 28 2022 Pavel Moravec <pmoravec@redhat.com> = 4.4-3
|
|
|
bbe98b |
- [cleaner] Apply compile_regexes after a regular parse line
|
|
|
bbe98b |
Resolves: bz2138174
|
|
|
bbe98b |
|
|
|
bbe98b |
* Thu Sep 22 2022 Pavel Moravec <pmoravec@redhat.com> = 4.4-2
|
|
|
bbe98b |
- [utilities] Relax from hard dependency of python3-magic
|
|
|
bbe98b |
Resolves: bz2126089
|
|
|
bbe98b |
- [dnf] Collect legacy yum config symlinks, properly obfuscate pwds
|
|
|
bbe98b |
Resolves: bz2125499
|
|
|
bbe98b |
|
|
|
bbe98b |
* Fri Sep 09 2022 Pavel Moravec <pmoravec@redhat.com> = 4.4-1
|
|
|
bbe98b |
- Rebase on upstream 4.4
|
|
|
bbe98b |
Resolves: bz2082615
|
|
|
bbe98b |
- [redhat] Honour credential-less --upload-url on RedHat distro properly
|
|
|
bbe98b |
Resolves: bz2059573
|
|
|
bbe98b |
- [md] Restrict data capture to raid members
|
|
|
bbe98b |
Resolves: bz2062283
|
|
|
bbe98b |
- [sos] Fix unhandled exception when concurrently removing temp dir
|
|
|
bbe98b |
Resolves: bz2088440
|
|
|
4b82b4 |
|
|
|
4b82b4 |
* Mon Aug 29 2022 Pavel Moravec <pmoravec@redhat.com> = 4.3-3
|
|
|
4b82b4 |
- [vdsm] Set LVM option use_devicesfile=0
|
|
|
4b82b4 |
Resolves: bz2122355
|
|
|
4b82b4 |
- [Plugin] Make forbidden path checks more efficient
|
|
|
4b82b4 |
Resolves: bz2122354
|
|
|
4b82b4 |
|
|
|
4b82b4 |
* Thu Jun 16 2022 Pavel Moravec <pmoravec@redhat.com> = 4.3-2
|
|
|
4b82b4 |
- [ocp, openshift] Re-align API collection options and rename
|
|
|
4b82b4 |
Resolves: bz2065563
|
|
|
4b82b4 |
- [utilities] Close file only when storing to file
|
|
|
4b82b4 |
Resolves: bz2079492
|
|
|
4b82b4 |
- [report] --list-plugins should report used, not default,
|
|
|
4b82b4 |
Resolves: bz2079490
|
|
|
4b82b4 |
- [report] Honor plugins' hardcoded plugin_timeout
|
|
|
4b82b4 |
Resolves: bz2079188
|
|
|
4b82b4 |
- crio: switch from parsing output in table format to json
|
|
|
4b82b4 |
Resolves: bz2097674
|
|
|
4b82b4 |
- [pacemaker] Redesign node enumeration logic
|
|
|
4b82b4 |
Resolves: bz2082914
|
|
|
4b82b4 |
- [tigervnc] Update collections for newer versions of TigerVNC
|
|
|
4b82b4 |
Resolves: bz2066181
|
|
|
4b82b4 |
- [plugins] Allow 'str' PlugOpt type to accept any value
|
|
|
4b82b4 |
Resolves: bz2079491
|
|
|
4b82b4 |
- [ovirt] answer files: Filter out all password keys
|
|
|
4b82b4 |
Resolves: bz2095267
|
|
|
4b82b4 |
|
|
|
4b82b4 |
* Thu Mar 24 2022 Pavel Moravec <pmoravec@redhat.com> = 4.3-1
|
|
|
4b82b4 |
- Rebase on upstream 4.3
|
|
|
4b82b4 |
Resolves: 2055003
|
|
|
4b82b4 |
- [sapnw] Fix IndexError exception
|
|
|
4b82b4 |
Resolves: 2065551
|
|
|
4b82b4 |
- [subscription_manager] collect syspurpose data via sub-man
|
|
|
4b82b4 |
Resolves: 2002333
|
|
|
4b82b4 |
- [Plugin, utilities] Allow writing command output directly to disk
|
|
|
4b82b4 |
Resolves: 2065564
|
|
|
4b82b4 |
- [Ceph] Add support for containerized Ceph setup
|
|
|
4b82b4 |
Resolves: 2065562
|
|
|
4b82b4 |
- [unbound] Add new plugin for Unbound DNS resolver
|
|
|
4b82b4 |
Resolves: 2065560
|
|
|
4b82b4 |
- [discovery] Add new discovery plugin
|
|
|
4b82b4 |
Resolves: 2065558
|
|
|
4b82b4 |
- [system] Collect glibc tuning decisions
|
|
|
4b82b4 |
Resolves: 2032913
|
|
|
4b82b4 |
|
|
|
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 |
|