Bug 562187 - rhnpush doesn't work with sha256 files on hosted
Summary: rhnpush doesn't work with sha256 files on hosted
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 540
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714 sha256-feature 563609
TreeView+ depends on / blocked
 
Reported: 2010-02-05 14:54 UTC by Daniel Mach
Modified: 2014-07-04 13:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-04 13:27:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Daniel Mach 2010-02-05 14:54:09 UTC
I use this code to detect server features:

ping_status, errmsg, headerinfo = rhnpush.rhnpush_v2.PingPackageUpload(self.url_v2).ping()                            if headerinfo.getheader("X-RHN-Check-Package-Exists"):
        self.features.add("check-pkg-flag")
    if ping_status == 200:
        self.features.add("upload-v2")

I'd also like to have have information that the sha256 feature exists so client (rhnpush) can use it or fall back to md5 (compatibility with older spacewalk servers).

Can you add "X-RHN-New-Checksums" header to ping() headers, please?

Comment 1 Daniel Mach 2010-10-22 08:10:00 UTC
Pushes to hosted do not work:
rhnpush --server=scripts.rhn.webdev.redhat.com --nullorg /mnt/redhat/brewroot/packages/yum/3.2.27/14.el6_0.1/data/signed/fd431d51/src/yum-3.2.27-14.el6_0.1.src.rpm --source
Internal server error 500 Internal Server Error
Error pushing /mnt/redhat/brewroot/packages/yum/3.2.27/14.el6_0.1/data/signed/fd431d51/src/yum-3.2.27-14.el6_0.1.src.rpm:  Error Message:
File-MD5sum
Error Class Code: 500
Error Class Info: Missing HTTP header information (500)

Adding the requested header to spacewalk and fixing rhnpush accordingly would do the job.

Comment 2 Daniel Mach 2010-10-22 08:16:05 UTC
just couple more details:

- hosted always expects md5sum on upload
- rhnpush now automatically chooses checksum type according rpm checksum
- different headers are sent

I use a workaround in pub - I force md5 on hosted.
Checksum feature detection would be much better IMO.

Comment 4 Jan Pazdziora 2010-10-27 13:48:55 UTC
Moving to product Satellite.


Note You need to log in before you can comment on or make changes to this bug.