-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
None
Description of problem:
The cron job rubygem-smart_proxy_openscap is always failing with the following error 'Unable to get file status /etc/scl/conf/tfm: No such file or directory'
This is triggered that the 'scl' command is installed and then the script wants to enable the 'tfm' scl that is not applicable anymore.
The rpm scl-utils should not be part of Satellite with RHEL8, but looks a dependency of bcc. So the command -v scl since scl_tool is installed return a value and go inside if block that give to you the error message.
How reproducible:
Is this issue a regression from an earlier version:
Steps to Reproduce:
1. The cron job rubygem-smart_proxy_openscap is always failing with the following error 'Unable to get file status /etc/scl/conf/tfm: No such file or directory'
2.
[root@client.example.com:~# rpm -qf /etc/cron.d/rubygem-smart_proxy_openscap
rubygem-smart_proxy_openscap-0.9.2-1.el8sat.noarch
[root@client.example.com:~# cat /etc/cron.d/rubygem-smart_proxy_openscap
- Send all collected OpenSCAP reports once every 30 minutes
*/30 * * * * foreman-proxy smart-proxy-openscap-send >> /var/log/foreman-proxy/cron.log
[root@client.example.com:~# sudo -u foreman-proxy smart-proxy-openscap-send
Unable to get file status /etc/scl/conf/tfm: No such file or directory
[root@client.example.com:~# cat /bin/smart-proxy-openscap-send
#!/bin/bash
if command -v scl &>/dev/null;then
scl enable tfm smart-proxy-openscap-send-inner
else
smart-proxy-openscap-send-inner
fi
[ root@client.example.com:~# rpm -qa | grep '^scl'
scl-utils-2.0.2-16.el8.x86_64
[root@client.example.com:~# yum remove scl-utils
Updating Subscription Management repositories.
Dependencies resolved.
==============================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================
Removing:
scl-utils x86_64 1:2.0.2-16.el8 @rhel-8-for-x86_64-appstream-rpms 62 k
Removing dependent packages:
bcc x86_64 0.25.0-7.el8 @rhel-8-for-x86_64-appstream-rpms 3.5 M
clang-libs x86_64 17.0.6-1.module+el8.10.0+20808+e12784c0 @rhel-8-for-x86_64-appstream-rpms 108 M
gcc-toolset-13-binutils x86_64 2.40-21.el8 @rhel-8-for-x86_64-appstream-rpms 27 M
gcc-toolset-13-binutils-gold x86_64 2.40-21.el8 @rhel-8-for-x86_64-appstream-rpms 2.6 M
gcc-toolset-13-gcc x86_64 13.2.1-6.2.el8 @rhel-8-for-x86_64-appstream-rpms 118 M
gcc-toolset-13-gcc-c++ x86_64 13.2.1-6.2.el8 @rhel-8-for-x86_64-appstream-rpms 36 M
gcc-toolset-13-libstdc++-devel x86_64 13.2.1-6.2.el8 @rhel-8-for-x86_64-appstream-rpms 22 M
gcc-toolset-13-runtime x86_64 13.0-2.el8 @rhel-8-for-x86_64-appstream-rpms 11 k
pcp-pmda-bcc x86_64 5.3.7-22.el8_10 @rhel-8-for-x86_64-appstream-rpms 291 k
python3-bcc x86_64 0.25.0-7.el8 @rhel-8-for-x86_64-appstream-rpms 391 k
Transaction Summary
==============================================================================================================================================================================================
Remove 11 Packages
Freed space: 319 M
Is this ok [y/N]:
The scl-utils are installed as part of the gcc-toolset-13 that is used by the bcc compiler that is used by pcp.
3.
Actual behavior:
Expected behavior:
The rpm scl-utils should not be part of Satellite with RHEL8, but looks a dependency of bcc.
Business Impact / Additional info:
A upstream fix has been proposed as per this link.
https://github.com/theforeman/smart_proxy_openscap/commit/7f1fe8d5449042c6a41995545ecc1ac9ad6f6b5d
The end user wants its fix in the upcoming release version 6.16.
I tested the same on my test satellite 6.16, it seems this rpm is still present on the test 6.16 version
- yum list scl-utils
Updating Subscription Management repositories.
Satellite 6.16 RHEL9 3.1 kB/s | 2.3 kB 00:00
Satellite Maintenance 6.16 RHEL9 3.5 kB/s | 1.8 kB 00:00
Available Packages
scl-utils.x86_64 1:2.0.3-4.el9 rhel-9-for-x86_64-appstream-rpms