Bug 812834

Summary: Subscription-manager not able to filter SLA for candlepin type consumer.
Product: Red Hat Enterprise Linux 5 Reporter: spandey
Component: subscription-managerAssignee: William Poteat <wpoteat>
Status: CLOSED NOTABUG QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.9CC: bkearney, dgoodwin, jmolet, jsefler, kbanerje, skallesh, spandey
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: 2012-05-24 16:17:30 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: 771748    
Attachments:
Description Flags
error screenshot none

Description spandey 2012-04-16 11:48:45 UTC
Description of problem:


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


How reproducible:
3/3

Prerequisites:
Rhel6.3 with following subscription-manager rpm 
subscription-manager-0.99.14-1.git.2.cf76d8e.el6_2.x86_64
subscription-manager-migration-data-1.12.1.3-1.git.0.1b05607.el6_2.noarch
subscription-manager-migration-0.99.14-1.git.2.cf76d8e.el6_2.x86_64
subscription-manager-gnome-0.99.14-1.git.2.cf76d8e.el6_2.x86_64
subscription-manager-firstboot-0.99.14-1.git.2.cf76d8e.el6_2.x86_64

Steps to Repro : 
Client with 37060.pem 
register client to candlepin using cnsumer type candlepin via cli (no autosubscribe) 
set SLA preference premium in guiĀ  and press "autosubscribe" button. 

Expected REsult : 
It should display only premium SLA subscription to subscribe. 

Actual REsult : 
Autosubscribe subscribe Standard SLA subscription with preference Premium in gui . 

Attached error screenshot.

Comment 1 spandey 2012-04-16 11:50:41 UTC
Created attachment 577687 [details]
error screenshot

Comment 3 Devan Goodwin 2012-04-17 13:43:33 UTC
Because candlepin consumers are used to transfer subscriptions to downstream candlepin's via the manifest, they are exempt from JS rule checks so they can transfer anything.

Indeed this is where the SLA filtering happens, so that explains why Candlepin consumers are not seeing this.

However the use case of using subscription manager to register as a Candlepin consumer is not something any end user should actually do. (that functionality is purely for dev/QE purposes)

Similarly I don't think a Candlepin consumer with an SLA assigned to it is something that should actually be done either. (they also would never use autosubscribe)

As such I propose this is definitely not something to worry about for 6.3, it may not be something worth fixing at all, as I don't think there's an actual use case here.

Comment 4 Devan Goodwin 2012-04-17 13:48:48 UTC
Moving to 5.9.

Comment 5 RHEL Program Management 2012-04-17 14:07:15 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 6 James Bowes 2012-05-24 16:17:30 UTC
As per comment 3 I'm going to close this as notabug.