Description of problem: I try to run rhnpush, but it doesn't work on RHEL 5. I receive following error. >> rhnpush --help Traceback (most recent call last): File "/usr/bin/rhnpush", line 9, in ? from rhnpush import rhnpush_main File "/usr/share/rhn/rhnpush/rhnpush_main.py", line 48, in ? from rhnpush_libs.rhn_pkg import InvalidPackageError, package_from_filename File "/usr/share/rhn/rhnpush_libs/rhn_pkg.py", line 124 ret = b'' ^ SyntaxError: invalid syntax Version-Release number of selected component (if applicable): rhnpush-5.5.89-18.el5sat How reproducible: always on RHEL5 Steps to Reproduce: 1. run rhnpush
I have still problem with pushing packages to Satellite 5. >> rhnpush zip-2.31-2.el5.x86_64.rpm --server satellite.example.com Username: admin Password: ERROR: unhandled exception occurred: ('tuple' object has no attribute 'args').
*** Bug 1395895 has been marked as a duplicate of this bug. ***
Tested with rhnpush from RHN-Tools-5.8-RHEL-7-20170504.n.0 compose, and some random rpm packages. # rpm -q rhnpush rhnpush-5.5.89-20.el5sat # rhnpush --help usage: rhnpush [OPTION] [<package>] options: -v, --verbose Increase verbosity -d DIR, --dir=DIR Process packages from this directory -c CHANNEL, --channel=CHANNEL Manage this channel (specified by label) -n COUNT, --count=COUNT Process this number of headers per call -l, --list Only list the specified channels -r RELDIR, --reldir=RELDIR Relative dir to associate with the file -o ORGID, --orgid=ORGID Org ID -u USERNAME, --username=USERNAME Use this username to connect to RHN/Satellite -p PASSWORD, --password=PASSWORD Use this password to connect to RHN/Satellite -s, --stdin Read the package names from stdin -X EXCLUDE, --exclude=EXCLUDE Exclude packages that match this glob expression --force Force the package upload (overwrites if already uploaded) --nosig Push unsigned packages --newest Only push the packages that are newer than the server ones --nullorg Use the null org id --header Upload only the header(s) --source Upload source package information --server=SERVER Push to this server (http[s]://<hostname>/APP) --proxy=PROXY Use proxy server (<server>:<port>) --test Only print the packages to be pushed -?, --usage Briefly describe the options -N, --new-cache Create a new username/password cache --extended-test Perform a more verbose test --no-session-caching Disables session-token authentication. --tolerant If rhnpush errors while uploading a package, continue uploading the rest of the packages. --ca-chain=CA_CHAIN alternative SSL CA Cert --timeout=SECONDS Change default connection timeout. -h, --help show this help message and exit # rhnpush -v --ca-chain=RHN-ORG-TRUSTED-SSL-CERT --server https://sat5server.example.com/APP -u admin -p password *.rpm -c pushchan --nosig Connecting to https://sat5server.example.com/APP Package rhn-check-1.0.0.1-38.el6.noarch.rpm Not Found on RHN Server -- Uploading Uploading package rhn-check-1.0.0.1-38.el6.noarch.rpm Using POST request Package rhn-client-tools-1.0.0.1-38.el6.noarch.rpm Not Found on RHN Server -- Uploading Uploading package rhn-client-tools-1.0.0.1-38.el6.noarch.rpm Using POST request Package rhn-setup-1.0.0.1-38.el6.noarch.rpm Not Found on RHN Server -- Uploading Uploading package rhn-setup-1.0.0.1-38.el6.noarch.rpm Using POST request Package rhn-setup-gnome-1.0.0.1-38.el6.noarch.rpm Not Found on RHN Server -- Uploading Uploading package rhn-setup-gnome-1.0.0.1-38.el6.noarch.rpm Using POST request Package yum-rhn-plugin-0.9.1-59.el6.noarch.rpm Not Found on RHN Server -- Uploading Uploading package yum-rhn-plugin-0.9.1-59.el6.noarch.rpm Using POST request # echo $? 0 Packages were successfully uploaded and linked to the selected channel. VERIFIED