Bug 752854 - ValueError: too many values to unpack
Summary: ValueError: too many values to unpack
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Alex Wood
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: 715031 754378
TreeView+ depends on / blocked
 
Reported: 2011-11-10 15:52 UTC by John Sefler
Modified: 2012-02-21 06:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2012-02-21 06:42:41 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 753891 0 unspecified CLOSED python-iniparse's defaults() function results in "ValueError: too many values to unpack" 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2012:0154 0 normal SHIPPED_LIVE subscription-manager bug fix update 2012-02-20 15:06:04 UTC

Internal Links: 753891

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


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