Bug 578144 - Trace back error while execute with consume option
Summary: Trace back error while execute with consume option
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Mike Orazi
QA Contact: Katello QA List
URL:
Whiteboard:
: 577948 (view as bug list)
Depends On:
Blocks: ent2
TreeView+ depends on / blocked
 
Reported: 2010-03-30 12:03 UTC by spandey
Modified: 2019-09-24 14:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-24 14:17:29 UTC
Embargoed:


Attachments (Terms of Use)

Description spandey 2010-03-30 12:03:59 UTC
Description of problem:


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


How reproducible:
100%

Prerequisites 
Properly configured candlepin Host
subscription manager rpm version 26 on rhel6 Host

Steps to Repro :

1)Login to Rhel6 client with valid credentials.
2)Installed subscription manager RPM and edited rhsm.conf for candlepin Host
3)Subscribe for product using poolid using following command 

subscription-manager-cli subscribe –pool=1

4)Host has been subscribed for product pool 1
5)execute following command on host console to find  consumed list
subscription-manager-cli list –consumed


Expected Result : 
At step 5 command should display list of installed entitlement list .

Actual Result : 
At step 5 command displays following traceback error

[root@sachrhel6 product]# subscription-manager-cli list --consumed

Traceback (most recent call last):

  File "/usr/sbin/subscription-manager-cli", line 69, in <module>

    sys.exit(abs(main() or 0))

  File "/usr/sbin/subscription-manager-cli", line 60, in main

    return managercli.CLI().main()

  File "/usr/share/rhsm/managercli.py", line 357, in main

    cmd.main()

  File "/usr/share/rhsm/managercli.py", line 76, in main

    self._do_command()

  File "/usr/share/rhsm/managercli.py", line 276, in _do_command

    cpents = managerlib.getConsumedProductEntitlements()

  File "/usr/share/rhsm/managerlib.py", line 73, in getConsumedProductEntitlements

    data = (cert.getProduct().getName(), cert.valid(), cert.validRange().begin(), cert.validRange().end())

AttributeError: 'NoneType' object has no attribute 'getName'

[root@sachrhel6 product]#

Comment 2 RHEL Program Management 2010-03-30 13:22:29 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 4 Pradeep Kilambi 2010-04-01 15:33:35 UTC
*** Bug 577948 has been marked as a duplicate of this bug. ***

Comment 5 spandey 2010-04-06 11:41:48 UTC
As per Above Pradeep Kilambi comment i am reopening it for candlepin server

Comment 7 James Bowes 2010-05-12 15:10:07 UTC
should work on both standalone and it setups now.

Comment 8 spandey 2010-05-20 08:34:36 UTC
Verified with following setup

server : statler.usersys.redhat.com,cert-fte-candelpin.devlab.redhat.com
client : Rhel6
SM version : 60 

Working fine
No trace back has been recorded on console or rhsm.log using repro steps 

Moving defect status from MODIFIED to VERIFIED

Comment 9 John Sefler 2011-05-04 14:40:11 UTC
Group move of VERIFIED Candlepin component bugs to RELEASE_PENDING


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