Hide Forgot
Description of problem: Customers have experienced an issue where setting 'subscription-manager release --set=<version>' did not update the EUS repo to the correct version due to the subscription-manager plugin not being enabled. We should have a check to see if the plugin is enabled. If it is not, then it should provide output stating so and recommend the plugin be enabled. Version-Release number of selected component (if applicable): current How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
When setting the release, sub-man should validate that the yum plugin is enabled. There will be no further check after the release has been set.
Suggestion: The logic to check if the plugin (read from "/etc/yum/pluginconf.d/subscription-manager.conf") is enabled should be run on subman startup. To be clear this means the warning message should be output on any subman command AND on GUI start up.
Verification : Case 1. Verify yum plugins are automatically enabled and user is informed when subscription-manager commands are run on CLI: [root@dhcp35-121 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 2.0.43-1 subscription management rules: 5.26 subscription-manager: 1.20.5-1.el7 Disable the subscription-manager yum plugin: [root@dhcp35-121 ~]# sed -i s/enabled=./enabled=0/g /etc/yum/pluginconf.d/subscription-manager.conf Verify if the plugin is disabled: [root@dhcp35-121 ~]# grep enabled /etc/yum/pluginconf.d/subscription-manager.conf enabled=0 Now execute the sub-man command on CLI and observe the warning message conveying user that the plugin is enabled automatically: [root@dhcp35-121 ~]# subscription-manager register Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: shwetha_tier1_test Password: The system has been registered with ID: 9f559a08-bb1a-49ca-a060-02cc66eba5c0 The registered system name is: dhcp35-121.lab.eng.blr.redhat.com WARNING The yum plugins: /etc/yum/pluginconf.d/subscription-manager.conf were automatically enabled for the benefit of Red Hat Subscription Management. If not desired, use "subscription-manager config --rhsm.auto_enable_yum_plugins=0" to block this behavior. Verify if the plugin is enabled: [root@dhcp35-121 ~]# grep enabled /etc/yum/pluginconf.d/subscription-manager.conf enabled=1
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, 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/RHBA-2018:0681