Installing the OpenSCAP plug-in and content on the Satellite server gives "Execution of '/bin/yum -d 0 -e 0 -y list rubygem-smart_proxy_openscap' returned 1: Error: No matching Packages to list" error message.
Environment
- Red Hat Satellite 6.2
Issue
-
Installing the OpenSCAP plug-in and content on the Satellite server gives the below error.
[ERROR 2018-02-28 07:55:47 main] Execution of '/bin/yum -d 0 -e 0 -y list rubygem-smart_proxy_openscap' returned 1: Error: No matching Packages to list [ERROR 2018-02-28 07:55:47 main] /Stage[main]/Foreman_proxy::Plugin::Openscap/Foreman_proxy::Plugin[openscap]/Package[rubygem-smart_proxy_openscap]/ensure: change from absent to present failed: Execution of '/bin/yum -d 0 -e 0 -y list rubygem-smart_proxy_openscap' returned 1: Error: No matching Packages to list
Resolution
-
Ensure that
rhel-7-server-satellite-6.2-rpmsrepository is enabled on to the Satellite server.# subscription-manager repos --enable=rhel-7-server-satellite-6.2-rpms -
Execute the below commands to check if
yumis able to fetchrubygem-smart_proxy_openscappackage.# yum clean all # rm -rf /var/cache/yum/ # yum repolist # yum list rubygem-smart_proxy_openscap -
Once the package
rubygem-smart_proxy_openscapis listed/verified, execute the below command to install the OpenSCAP plug-in and content on the Satellite server.# satellite-installer --enable-foreman-plugin-openscap
For more KB articles/solutions related to Red Hat Satellite 6.x OpenSCAP Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x OpenSCAP Issues
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.