Description of problem: rhn_package_manager with option --newest fails. How reproducible: Always Steps to Reproduce: 1.Install RHN-Proxy 5.4 2.Create $CUSTOM_CHANNEL on the Satellite to which RHN Proxy is registered to. 2.excute: rhn_package_manager -c $CUSTOM_CHANNEL some.x86_64.rpm --username=${RHN_USER} --password=${RHN_PASS} --nosig --newest Actual results: 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 116, in main upload.newest() File "/usr/share/rhn/PackageManager/uploadLib.py", line 66, in newest return self.get_newest_binary_packages() File "/usr/share/rhn/rhnpush/uploadLib.py", line 264, in get_newest_binary_packages if self.new_sat_test(): File "/usr/share/rhn/rhnpush/uploadLib.py", line 479, in new_sat_test if self.options.no_session_caching: AttributeError: Values instance has no attribute 'no_session_caching' Expected results: The RPM processed correctly. Additional info:
This seems like a regression. For RHN Proxy 5.3 (spacewalk-proxy-package-manager-0.5.7-14.el5sat) the problem does not appear. The problem is present on RHN Proxy 5.4 (spacewalk-proxy-package-manager-1.2.2-6.el5sat) Dimi
Added option --no-session-caching to rhn_package_manager. Commited to spacewalk.git as 775c73607c6908bac95b0a41c6a9e91faeecc0fa
cherry-picked to satellite.git as 7e4d7c0318c82a2897fa19b3e17f81faf1ea30e6git
VERIFIED
I hit bug 711805 when I try to stage validate this bug.
But when running against Satellite 5.4.1 on RHEL 5, the command passes # rhn_package_manager -c ad-custom-1 jpam-0.4-19.el5.x86_64.rpm --username name --password password --nosig --newest Moving to 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