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

Bug 577242

Summary: subscription-manager-cli: python traceback upon registration
Product: [Community] Candlepin (Migrated to Jira) Reporter: Steve Salevan <ssalevan>
Component: candlepinAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED DUPLICATE QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: low    
Version: 0.5Keywords: QA-Closed
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-26 14:48:04 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 Steve Salevan 2010-03-26 14:46:44 UTC
Description of problem:
If a user runs the following call, they will receive the following traceback:

[root@oldceremony i386]# subscription-manager-cli register --username=<username> --password=<password>
1a918422-32f2-4914-9da7-4fb91526f2eb admin <username>
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 126, 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

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

How reproducible:
Always

Steps to Reproduce:
1. Install the latest subscription-manager
2. Run subscription-manager-cli register --username=<username> --password=<password>, replacing these with values appropriate for your chosen Candlepin environment
  
Actual results:
As above

Expected results:
Registration succeeds

Additional info:

Comment 1 Pradeep Kilambi 2010-03-26 14:48:04 UTC

*** This bug has been marked as a duplicate of bug 577140 ***

Comment 2 Jeff Weiss 2010-10-14 20:00:17 UTC
This bug was legitimately closed, just double checking since Steve is gone.