Bug 1513487

Summary: Subscription-manager-gui - yum plugins are not automatically enabled and user is not informed
Product: Red Hat Enterprise Linux 7 Reporter: Shwetha Kallesh <skallesh>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED NOTABUG QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.5CC: csnyder, jhnidek, khowell
Target Milestone: rcKeywords: Triaged
Target Release: ---   
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: 2017-11-27 21:18:47 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:

Description Shwetha Kallesh 2017-11-15 14:09:39 UTC
Description of problem:

Subscription-manager-gui -  yum plugins are not automatically enabled and user is not informed

Version-Release number of selected component (if applicable):

[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

How reproducible:


Steps to Reproduce:
1.Launch GUI 

Disable yum plugin:
2.[root@dhcp35-121 ~]# sed -i s/enabled=./enabled=0/g /etc/yum/pluginconf.d/subscription-manager.conf

Verify if the plugin is disabled:
3.[root@dhcp35-121 ~]# grep enabled /etc/yum/pluginconf.d/subscription-manager.conf
enabled=0

4. Try to register the system via GUI

5.Verify if the plugin is enabled:
[root@dhcp35-121 ~]# grep enabled /etc/yum/pluginconf.d/subscription-manager.conf
enabled=0

Actual results:

[root@dhcp35-121 ~]# grep enabled /etc/yum/pluginconf.d/subscription-manager.conf
enabled=0


Expected results:

[root@dhcp35-121 ~]# grep enabled /etc/yum/pluginconf.d/subscription-manager.conf
enabled=1


Additional info:

rhsm log doesnot have any information about automatically enabling the yum plugin

2017-11-15 19:30:00,472 [INFO] subscription-manager-gui:19185:ValidateServerThread @connection.py:836 - Connection built: http_proxy=auto-services.usersys.redhat.com:3128 host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=none
2017-11-15 19:30:02,585 [INFO] subscription-manager-gui:19185:ValidateServerThread @connection.py:556 - Response: status=200, requestUuid=1f21fe7b-5da2-41aa-9bce-e0c1a15e2c6c, request="GET /subscription/status/"
2017-11-15 19:30:24,011 [INFO] subscription-manager-gui:19185:GetOwnerListThread @connection.py:836 - Connection built: http_proxy=auto-services.usersys.redhat.com:3128 host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=basic username=shwetha_tier1_test
2017-11-15 19:30:27,382 [INFO] subscription-manager-gui:19185:GetOwnerListThread @connection.py:556 - Response: status=200, requestUuid=dbd35a02-1cd6-4de5-9ed7-14de82213106, request="GET /subscription/users/shwetha_tier1_test/owners"
2017-11-15 19:30:29,461 [INFO] subscription-manager-gui:19185:GetEnvironmentListThread @connection.py:556 - Response: status=200, request="GET /subscription/"
2017-11-15 19:30:29,537 [INFO] subscription-manager-gui:19185:RegisterConsumerThread @dmiinfo.py:75 - Using dmidecode dump file: /dev/mem
2017-11-15 19:30:35,320 [INFO] subscription-manager-gui:19185:RegisterConsumerThread @connection.py:556 - Response: status=200, requestUuid=ef82b136-ee9e-4cdc-b1d2-158485559ab9, request="POST /subscription/consumers?owner=11343157"
2017-11-15 19:30:35,321 [ERROR] subscription-manager-gui:19185:RegisterConsumerThread @identity.py:145 - Reload of consumer identity cert /etc/pki/consumer/cert.pem raised an exception with msg: [Errno 2] No such file or directory: '/etc/pki/consumer/key.pem'
2017-11-15 19:30:35,324 [INFO] subscription-manager-gui:19185:RegisterConsumerThread @managerlib.py:71 - Consumer created: dhcp35-121.lab.eng.blr.redhat.com (e96dc450-996e-4cf9-9a44-bc28907b711e)
2017-11-15 19:30:35,326 [INFO] subscription-manager-gui:19185:RegisterConsumerThread @connection.py:836 - Connection built: http_proxy=auto-services.usersys.redhat.com:3128 host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=True
2017-11-15 19:30:37,487 [INFO] subscription-manager-gui:19185:RegisterConsumerThread @connection.py:556 - Response: status=200, requestUuid=5d6f7c2f-0e21-45f8-9365-47739f1d4919, request="GET /subscription/consumers/e96dc450-996e-4cf9-9a44-bc28907b711e/compliance"
2017-11-15 19:30:37,494 [INFO] subscription-manager-gui:19185:RegisterConsumerThread @cert_sorter.py:205 - Product status: valid_products= partial_products= expired_products= unentitled_producs=69 future_products= valid_until=None
2017-11-15 19:30:39,561 [INFO] subscription-manager-gui:19185:RegisterConsumerThread @connection.py:556 - Response: status=200, request="GET /subscription/"
2017-11-15 19:30:41,946 [INFO] subscription-manager-gui:19185:RegisterConsumerThread @connection.py:556 - Response: status=200, requestUuid=cf49137b-69d2-48bc-9127-a5ec792796f5, request="GET /subscription/consumers/e96dc450-996e-4cf9-9a44-bc28907b711e"
2017-11-15 19:30:44,321 [INFO] subscription-manager-gui:19185:RegisterConsumerThread @connection.py:556 - Response: status=200, requestUuid=ab8e1982-e9f1-4745-a31b-97843fa4b5d8, request="GET /subscription/consumers/e96dc450-996e-4cf9-9a44-bc28907b711e"
2017-11-15 19:30:46,725 [INFO] subscription-manager-gui:19185:RegisterConsumerThread @connection.py:556 - Response: status=200, requestUuid=a2826533-a785-45b0-a8b2-8c0a2163426c, request="GET /subscription/consumers/e96dc450-996e-4cf9-9a44-bc28907b711e"
2017-11-15 19:30:47,188 [INFO] rhsmd:20978:MainThread @rhsmd:279 - rhsmd started
2017-11-15 19:30:47,302 [INFO] rhsmd:20978:MainThread @connection.py:836 - Connection built: http_proxy=auto-services.usersys.redhat.com:3128 host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=True
2017-11-15 19:30:49,384 [INFO] rhsmd:20978:MainThread @connection.py:556 - Response: status=200, requestUuid=ed65bdb8-fe65-48fe-bbf4-bd43bea255d4, request="GET /subscription/consumers/e96dc450-996e-4cf9-9a44-bc28907b711e/compliance"
2017-11-15 19:30:49,395 [INFO] rhsmd:20978:MainThread @cert_sorter.py:205 - Product status: valid_products= partial_products= expired_products= unentitled_producs=69 future_products= valid_until=None
2017-11-15 19:30:50,085 [INFO] subscription-manager-gui:19185:UpdatePackageProfileThread @connection.py:556 - Response: status=204, request="PUT /subscription/consumers/e96dc450-996e-4cf9-9a44-bc28907b711e/packages"