Bug 470557

Summary: No "signature error" feedback on failed rhnpush
Product: [Community] Spacewalk Reporter: Aidan Delaney <a.j.delaney>
Component: ClientsAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Jesus M. Rodriguez <jesusr>
Severity: low Docs Contact:
Priority: medium    
Version: 0.2CC: bperkins
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-17 07:08:34 UTC Type: ---
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: 456553    

Description Aidan Delaney 2008-11-07 17:16:55 UTC
Description of problem:
When rhnpush'ing a package without a signature to a spacewalk server the parameter "--nosig" is required.  However if you do push a package without a signature you are not informed of this and the push fails giving no reason.

Example:
rhnpush signed-fedora-9-package.rpm
Connecting to http://localhost/APP
Package signed-fedora-9-package.rpm Not Found on RHN Server -- Uploading
Uploading package signed-fedora-9-package.rpm

rhnpush unsigned-fedora-9-package.rpm
Connecting to http://localhost/APP
Package unsigned-fedora-9-package.rpm Not Found on RHN Server -- Uploading
Package unsigned-fedora-9-package.rpm Not Found on RHN Server -- Uploading
Package unsigned-fedora-9-package.rpm Not Found on RHN Server -- Uploading
Giving up after 3 attempts and continuing on...

Running rhnpush -v reveals the issue:
rhnpush -v unsigned-fedora-9-package.rpm
Connecting to http://localhost/APP
url is http://localhost/PACKAGE-PUSH
Result codes: 200 OK
Computing md5sum and package Info .This may take sometime ...
Package unsigned-fedora-9-package.rpm Not Found on RHN Server -- Uploading
Uploading package unsigned-fedora-9-package.rpm
ERROR: unsigned-fedora-9-package.rpm: unsigned rpm (use --nosig to force)
Uploading package unsigned-fedora-9-package.rpm
ERROR: unsigned-fedora-9-package.rpm: unsigned rpm (use --nosig to force)
Uploading package unsigned-fedora-9-package.rpm
ERROR: unsigned-fedora-9-package.rpm: unsigned rpm (use --nosig to force)
Giving up after 3 attempts and continuing on...

I would have expected the stderr message "ERROR: unsigned-fedora-9-package.rpm: unsigned rpm (use --nosig to force)" to have appeared without using -v flag.

Comment 1 Pradeep Kilambi 2009-02-19 20:13:09 UTC
# rhnpush -c test-channel -u admin -p xxxx rhnsd-4.6.1-1.el5.i386.rpm
ERROR: rhnsd-4.6.1-1.el5.i386.rpm: unsigned rpm (use --nosig to force)

Comment 2 Jesus M. Rodriguez 2009-04-14 14:11:45 UTC
Spacewalk 0.5 released.

Comment 3 Miroslav Suchý 2009-09-17 07:08:34 UTC
Spacewalk 0.5 has been released for long time ago.