Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 577147

Summary: Traceback displayed while subscribe for product
Product: [Community] Candlepin (Migrated to Jira) Reporter: spandey
Component: candlepinAssignee: Jeff Ortel <jortel>
Status: CLOSED NOTABUG QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: low    
Version: 0.5CC: kbanerje, spandey
Target Milestone: ---Keywords: QA-Closed
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-01 15:38:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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