Bug 1440203
| Summary: | rhnpush doesn't work on RHEL 5 | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Pavel Studeník <pstudeni> |
| Component: | Client | Assignee: | Tomáš Kašpárek <tkasparek> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Radovan Drazny <rdrazny> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 580 | CC: | adujicek, galtukho, jhutar, rdrazny, tlestach |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | rhnpush-5.5.89-20-sat | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-06-21 12:12:54 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1397178, 1400201 | ||
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
|
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