Bug 577147 - Traceback displayed while subscribe for product
Summary: Traceback displayed while subscribe for product
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Jeff Ortel
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-26 10:39 UTC by spandey
Modified: 2015-05-14 15:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-01 15:38:03 UTC
Embargoed:


Attachments (Terms of Use)

Description spandey 2010-03-26 10:39:12 UTC
Description of problem:


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


How reproducible:
100%

Prerequisites 
1)Properly configured candlepin Host
2)client with subscription manager version 22

Steps to Repro : 
1)Login to client host with valid credentials
2)edit /etc/rhsm/rhsm.conf for candlepin Host
3)Register the client with candlepin host 
4)execute following command on client console for subscribe product.
subscription-manager-cli subscribe –product=monitoring

expected Result :
Client should subscribe for product monitoring

Actual Result : 

Subscription process displays following  Trace back error 

[root@fedoraclient /]# subscription-manager-cli subscribe --product=monitoring

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 345, in main

    cmd.main()

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

    self._do_command()

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

    self.certlib.update()

  File "/usr/share/rhsm/certlib.py", line 42, in update

    return update.perform()

  File "/usr/share/rhsm/certlib.py", line 116, in perform

    expected = uep.getCertificateSerials()

  File "/usr/share/rhsm/certlib.py", line 205, in getCertificateSerials

    reply = reply['serials']

TypeError: list indices must be integers, not str





not able to find subscribed certificate at location "/etc/pki/entitlement/product"

Comment 1 wes hayutin 2010-03-26 11:39:23 UTC
Sachin,
do you get the error even if you have deployed the certs in
https://engineering.redhat.com/trac/IntegratedMgmtQE/wiki/ent_local_key

Comment 2 spandey 2010-03-26 13:37:59 UTC
(In reply to comment #1)
> Sachin,
> do you get the error even if you have deployed the certs in
> https://engineering.redhat.com/trac/IntegratedMgmtQE/wiki/ent_local_key    

No i did not display any error 
subscription-manager-cli list --consumed command run successfully 
No error message displayed on console


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