Bug 752854

Summary: ValueError: too many values to unpack
Product: Red Hat Enterprise Linux 5 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Alex Wood <awood>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.8CC: awood, cduryee, skallesh, spandey, wpoteat
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No description necessary
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 06:42:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 715031, 754378    

Description John Sefler 2011-11-10 15:52:34 UTC
Description of problem:
I am getting "ValueError: too many values to unpack" when running "subscription-manager config --list"


Version-Release number of selected component (if applicable):
[root@jsefler-onprem-5server ~]# rpm -q subscription-manager
subscription-manager-0.98.2-1.git.12.99fdffb.el5_7


How reproducible:


Steps to Reproduce:
[root@jsefler-onprem-5server ~]# subscription-manager config --list
[server]
too many values to unpack

^^^^ EXPECTED A LIST OF CONFIG VALUE SETTINGS


Additional info:
[root@jsefler-onprem-5server ~]# tail -f /var/log/rhsm/rhsm.log 
2011-11-10 10:48:10,383 [INFO]  @connection.py:350 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False
2011-11-10 10:48:10,383 [INFO]  @connection.py:363 - Connection Built: host: jsefler-f14-5candlepin.usersys.redhat.com, port: 8443, handler: /candlepin
2011-11-10 10:48:10,386 [ERROR]  @managercli.py:95 - exception caught in subscription-manager
2011-11-10 10:48:10,386 [ERROR]  @managercli.py:96 - too many values to unpack
Traceback (most recent call last):
  File "/usr/sbin/subscription-manager", line 78, in ?
    sys.exit(abs(main() or 0))
  File "/usr/sbin/subscription-manager", line 69, in main
    return managercli.CLI().main()
  File "/usr/share/rhsm/subscription_manager/managercli.py", line 1459, in main
    cmd.main()
  File "/usr/share/rhsm/subscription_manager/managercli.py", line 263, in main
    self._do_command()
  File "/usr/share/rhsm/subscription_manager/managercli.py", line 1186, in _do_command
    if (value == cfg.defaults().get(name)):
  File "/usr/lib/python2.4/site-packages/iniparse/compat.py", line 38, in defaults
    for name, lineobj in self.data._defaults._options:
ValueError: too many values to unpack

Comment 1 Alex Wood 2011-11-14 16:31:55 UTC
This is an issue in iniparser.  See the bug report at http://code.google.com/p/iniparse/issues/detail?id=9

Comment 2 Alex Wood 2011-11-14 18:08:18 UTC
committed 52ac150215063e548d0eaf8f88aab665c733d02f

Available in 0.98.2+

Comment 3 Shwetha Kallesh 2011-11-28 09:14:17 UTC
Moving the bug to verified.

RPM used:

[root@tiger ~]# rpm -qa |grep subscription-manager
subscription-manager-firstboot-0.98.3-1.el5
subscription-manager-0.98.3-1.el5
subscription-manager-gnome-0.98.3-1.el5
subscription-manager-debuginfo-0.98.3-1.el5
subscription-manager-migration-0.98.3-1.el5


[root@tiger ~]# subscription-manager config --list
[server]
   ca_cert_dir = [/etc/rhsm/ca/]
   hostname = 10.65.193.169
   insecure = [0]
   port = [8443]

Comment 4 William Poteat 2012-01-23 14:34:38 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description necessary

Comment 5 errata-xmlrpc 2012-02-21 06:42:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0154.html