Bug 608651 - “rulefailed.consumer.type.mismatch” displayed while subscribe pool not displayed in available list
“rulefailed.consumer.type.mismatch” displayed while subscribe pool not displa...
Status: CLOSED UPSTREAM
Product: Candlepin
Classification: Community
Component: candlepin (Show other bugs)
0.5
All Linux
low Severity medium
: ---
: ---
Assigned To: Adrian Likins
wes hayutin
:
Depends On:
Blocks: 636830
  Show dependency treegraph
 
Reported: 2010-06-28 07:47 EDT by spandey
Modified: 2015-05-14 11:22 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-09-23 14:19:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description spandey 2010-06-28 07:47:32 EDT
Description of problem:


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


How reproducible:
100%

Prerequisite : 
Candlepin : standalone candlepin (10.16.120.139) configured via fog machine
Client : RHEL6 client with SM version 66 

Steps to repro : 

1) Login to client console with valid credentials 
2) execute following command on console to find pool list 

[root@sachrhel6 ~]# subscription-manager-cli list --available | grep Pool

PoolId:                 4                        

PoolId:                 9                        

PoolId:                 6                        

PoolId:                 2                        

PoolId:                 5                        

PoolId:                 1                        

PoolId:                 7                        

PoolId:                 10                       


Note : pool id 3 and 8 is not available 

subscribe for pool id 3 & 8  with following command 

subscription-manager-cli subscribe –pool=3
subscription-manager-cli subscribe –pool=8

Expected Result : 
Proper Message should display invalid pool id 

Actual Result : 
Following message getting displayed while subscribe pool = 3
rulefailed.consumer.type.mismatch

cert is downloaded in rhsm.log file while subscribe pool=8 

Find the attached rhsm.log
Comment 1 Adrian Likins 2010-07-12 13:41:07 EDT
Looking at the rules, consumer type is an error, while wrong arch is just a warning. So I think it's doing the right thing as per the rules. Not sure if arch mismatch should be en error or a warning. 

I've got a patch to change it to something like:

[adrian@alikins subscription-manager]$ PYTHONPATH=src/ sudo python src/managercli.py subscribe --pool 3
Unable to subscribe to pool 3: rulefailed.consumer.type.mismatch

Is that close enough?  To get much more info, we need to return more info about why the rules failed in the entitlement exception from the server.

Note You need to log in before you can comment on or make changes to this bug.