Bug 1034574

Summary: Display appropriate message in "Repositories" (GUI) when the system have no entitlements attached
Product: Red Hat Enterprise Linux 7 Reporter: Rehana <redakkan>
Component: subscription-managerAssignee: Michael Stead <mstead>
Status: CLOSED CURRENTRELEASE QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: ckozak, mreid, mstead
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 11:26:44 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:
Bug Depends On:    
Bug Blocks: 863175    

Description Rehana 2013-11-26 06:34:35 UTC
Description of problem:
Currently "Attached subscriptions do not provide any repositories" is displayed for both the scenarios when the system have no subscription and when the system have entitlements with out repositories

Version-Release number of selected component (if applicable):
subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.33-1
subscription-manager: 1.10.7-1.git.0.15d737b.el7
python-rhsm: 1.10.7-1.git.0.b7645ce.el7


How reproducible:
3/3

Steps to Reproduce:
1.Register the client
2.Go to System --> repositories
3.

Actual results:
Displayed "Attached subscriptions do not provide any repositories" when the system didnt have any subscriptions

Expected results:
Should will be good to display  "No repositories available, please attach subscriptions first" 
or "No repositories available without an attached subscription.".


Additional info:
post office discussion thread http://post-office.corp.redhat.com/archives/chainsaw/2013-November/msg00226.html

Comment 1 Michael Stead 2013-11-27 15:04:23 UTC
Patch awaiting review:

https://github.com/candlepin/subscription-manager/pull/833

Comment 2 Michael Stead 2013-11-28 13:45:53 UTC
Available in:

subscription-manager-1.10.8-1+

Comment 4 Rehana 2013-12-09 08:32:49 UTC
Retested on,

subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.33-1
subscription-manager: 1.10.8-1.el7
python-rhsm: 1.10.8-1.el7

Observed that 
Scenario 1

when no subscription is attached "No repositories are available without an attached subscription." message is displayed in the "Manager Repositories" window

Scenario 2

when attached subscription doesnot provide any repositories  "Attached subscriptions do not provide any repositories" message is displayed in the "Manager Repositories" window

Hence moving this bug to "Verified"

Comment 5 Ludek Smid 2014-06-13 11:26:44 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.