Description of problem: rhn_package_manager throws an exception if the password is wrong. Version-Release number of selected component (if applicable): spacewalk-proxy-package-manager-1.2.2-6.el5sat How reproducible: Always Steps to Reproduce: 1.Install RHN Proxy 2.Install spacewalk-proxy-package-manager 3.Execute rhn_package_manager -s -c $CUSTOM_CHANNEL 4.Enter wrong password Actual results: Red Hat Network username: admin Red Hat Network password: Traceback (most recent call last): File "/usr/bin/rhn_package_manager", line 28, in ? rhn_package_manager.main() File "/usr/share/rhn/PackageManager/rhn_package_manager.py", line 100, in main upload.checkSync() File "/usr/share/rhn/PackageManager/rhn_package_manager.py", line 174, in checkSync list = uploadLib.listChannel(self.server, self.username, self.password, Expected results: No traceback. Additional info:
Even if the password is correct the result is the same (a "traceback").
Your traceback is missing last (but quite important line). That line usually state, which error occurred. Can you update it, please?
I am sorry. Sure, here it is: Traceback (most recent call last): File "/usr/bin/rhn_package_manager", line 28, in ? rhn_package_manager.main() File "/usr/share/rhn/PackageManager/rhn_package_manager.py", line 100, in main upload.checkSync() File "/usr/share/rhn/PackageManager/rhn_package_manager.py", line 174, in checkSync list = uploadLib.listChannel(self.server, self.username, self.password, AttributeError: 'module' object has no attribute 'listChannel' I have just found out that this is a regression. The problem does not appear on RHN Proxy 5.3 (spacewalk-proxy-package-manager-0.5.7-14.el5sat). Hope this will help. Dimi
This has been already fixed in spacewalk in commit c4cdd270c559ae9af9eaab49570810574f86e06d
cherry picked to satellite as fd3efd2255202589702eb450db11dab8579ba5ea
*** Bug 682887 has been marked as a duplicate of this bug. ***
# rhn_package_manager -s -c xcv Red Hat Network username: admin Red Hat Network password: Error Class Code: 2 Error Class Info: Invalid username and password combination. Explanation: An error has occurred while processing your request. If this problem persists please enter a bug report at bugzilla.redhat.com. If you choose to submit the bug report, please be sure to include details of what you were trying to do when this error occurred and details on how to reproduce this problem. # rpm -qf /usr/bin/rhn_package_manager spacewalk-proxy-package-manager-1.2.2-11.el5sat # Marking as RELEASE_PENDING.
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-0878.html