RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 651857 - rhn-channel: tracebacks at various options combination
Summary: rhn-channel: tracebacks at various options combination
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rhn-client-tools
Version: 6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Miroslav Suchý
QA Contact: Martin Minar
URL:
Whiteboard:
: 656840 666410 671052 (view as bug list)
Depends On:
Blocks: 582655 651858
TreeView+ depends on / blocked
 
Reported: 2010-11-10 13:38 UTC by Petr Sklenar
Modified: 2016-07-04 00:55 UTC (History)
8 users (show)

Fixed In Version: rhn-client-tools-1.0.0-50
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 651858 (view as bug list)
Environment:
Last Closed: 2011-05-19 13:05:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0565 0 normal SHIPPED_LIVE rhn-client-tools and yum-rhn-plugin bug fix and ehnancement update 2011-05-18 17:57:10 UTC

Description Petr Sklenar 2010-11-10 13:38:12 UTC
Description of problem:
rhn-channel: tracebacks at various options combination


Version-Release number of selected component (if applicable):
rhel5: rhn-setup-0.4.20-45.el5
rhel6: rhn-setup-1.0.0-38.el6.noarch


How reproducible:
always

Steps to Reproduce:
1. `rhn-channel -u username -p password -c my-child-channel`

Actual results:

Traceback (most recent call last):
  File "/usr/sbin/rhn-channel", line 92, in ?
    main()
  File "/usr/sbin/rhn-channel", line 86, in main
    s = rhnserver.RhnServer()
NameError: global name 'rhnserver' is not defined

Expected results:
it should write smth like: "specify --add or --remove"


2. missing channel name after options -a and -r
`rhn-channel -u username -p password -a`
OR
`rhn-channel -u username -p password -r`

actual result:
Traceback (most recent call last):
  File "/usr/sbin/rhn-channel", line 92, in ?
    main()
  File "/usr/sbin/rhn-channel", line 74, in main
    subscribeChannels(OPTIONS.channel, OPTIONS.user, OPTIONS.password)
  File "/usr/share/rhn/up2date_client/rhnChannel.py", line 143, in subscribeChannels
    passwd)
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 50, in __call__
    return rpcServer.doCall(method, *args, **kwargs)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 204, in doCall
    ret = method(*args, **kwargs)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 38, in _request1
    ret = self._request(methodname, params)
  File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 350, in _request
    request = self._req_body(params, methodname)
  File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 231, in _req_body
    return xmlrpclib.dumps(params, methodname, encoding=self._encoding)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1029, in dumps
    data = m.dumps(params)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 603, in dumps
    dump(v, write)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 615, in __dump
    f(self, value, write)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 619, in dump_nil
    raise TypeError, "cannot marshal None unless allow_none is enabled"
TypeError: cannot marshal None unless allow_none is enabled

Expected results:
nice message, smth like:
ERROR: these arguments make no sense in this context (try --help)




Additional info:

Comment 1 Milan Zázrivec 2010-11-24 10:48:38 UTC
*** Bug 656840 has been marked as a duplicate of this bug. ***

Comment 2 Milan Zázrivec 2011-01-02 11:45:52 UTC
*** Bug 666410 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Suchý 2011-01-14 13:43:13 UTC
first problem fixed in commit c4713ec3aa8d03c0a2a22cd3bbe21c3d89022499
second in commit 539f6518d36303a69360aa7a3b98372eaa3a1a3e
both in spacewalk.git

Comment 4 Miroslav Suchý 2011-01-14 13:46:54 UTC
cherry picked to satellite.git as commits:
b75f83700baf43d08eb95b9a6b4ad87d50c0f287
364e4dff1fc411138781b765f1e595288d4e5275

Comment 6 Milan Zázrivec 2011-01-20 09:16:21 UTC
*** Bug 671052 has been marked as a duplicate of this bug. ***

Comment 8 Miroslav Suchý 2011-02-23 15:56:00 UTC
There was typo in variable name. Fixed in spacewalk.git in commit f332b95f360a59ab2bc4f2300d13c44741930b81
Cherrypicked to satellite.git as commit c2046c15d67772064172f00fa628e18b8848f3ad

Comment 10 errata-xmlrpc 2011-05-19 13:05:19 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0565.html


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