Bug 1957871
| Summary: | [RFE} Client rpms created in RHUI don't prevent auto-enable of subscription manager plugins | ||
|---|---|---|---|
| Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | soham <smajumda> |
| Component: | RHUA | Assignee: | RHUI Bug List <rhui-bugs> |
| Status: | CLOSED ERRATA | QA Contact: | Radek Bíba <rbiba> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.1.9 - EOL | CC: | ahumbe, gtanzill, judd.obannon, mminar, troy.engel |
| Target Milestone: | 4.5.0 | Keywords: | Triaged |
| Target Release: | 4.x | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-08-09 14:18:02 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: RHUI 4.5.0 release - Security, Bug Fixes, and Enhancements), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:4591 |
Description of problem: Client rpms created in RHUI don't prevent auto-enable of subscription manager plugins Version-Release number of selected component (if applicable): RHUI 3.1 How reproducible: CLient rpms are intending to disable subscription manager plugins, but not to go so far as remove subscription-manager in case it's needed in the future if the machine is removed from rhui and placed elsewhere. However, as the rpm only disables the plugin any subsequent subscription-manager command being run, or more likely any other software running subscription-manager. At least one cloud agent runs this command, qualys-cloud-agent: 2021-05-04 06:52:10.740 [qualys-cloud-agent][65569]:[Debug]:[140432348211008]:Command: execution failed - table: UnixCommandOS, Mani fest ID: 8, <command>: subscription-manager list --consumed 2>&1 , <stdout>: No consumed subscription pools were found. Currently the rpm script has: if [ "$1" = "1" ]; then # 'install', not 'upgrade' # Disable RHN and subscription-manager plugin for f in /etc/yum/pluginconf.d/{subscription-manager.conf,rhnplugin.conf}; do if [ -f $f ]; then grep -iPq "enabled\s*=\s*(0|false|off)" $f || sed -i.save -e 's/^enabled.*/enabled = 0/g' $f || : fi done fi This script should be also disabling the auto_enable_yum_plugins in the /etc/rhsm/rhsm.conf. This could be accomplished with the addition of the following stanza: if exists file /etc/rhsm/rhsm.conf, then set auto_enable_yum_plugins = 0 fi The absence of this causes the auto-enable of the subscription manager plugin and output that is perceived as erroneous and create non-value added support load on any device running the qualsys-support-agent or any other software that runs a subscription-manager command: > This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Additional info: