Project

Profile

Help

Maintenance: Planio will be observing a scheduled maintenance window this Tuesday, November 5, 2024 from 03:00 UTC until 06:30 UTC to perform urgent network maintenance in our primary data center. Your Planio account will be unavailable during this maintenance window.

Issue #2774

closed

Inconsistent Checksum and Checksumtype when uploading with --checksum-type

Added by yuzheng over 7 years ago. Updated over 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

# rpm -qa pulp-server
pulp-server-2.13.0-1.el7.noarch

Reproducing steps:
1. Create a rpm repo

# pulp-admin rpm repo create --repo-id test-repo10
Successfully created repository [test-repo10]

2. Upload a drpm to the repo with --checksum-type=md5

# pulp-admin rpm repo uploads drpm --repo-id test-repo10 --file /root/test-alpha-1.1-2_1.1-3.noarch.drpm --checksum-type md5
+----------------------------------------------------------------------+
                              Unit Upload
+----------------------------------------------------------------------+

Extracting necessary metadata for each request...
[==================================================] 100%
Analyzing: test-alpha-1.1-2_1.1-3.noarch.drpm
... completed

Creating upload requests on the server...
[==================================================] 100%
Initializing: test-alpha-1.1-2_1.1-3.noarch.drpm
... completed

Starting upload of selected units. If this process is stopped through ctrl+c,
the uploads will be paused and may be resumed later using the resume command or
canceled entirely using the cancel command.

Uploading: test-alpha-1.1-2_1.1-3.noarch.drpm
[==================================================] 100%
3304/3304 bytes
... completed

Importing into the repository...
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Task Succeeded

Deleting the upload request...
... completed

3. Check uploaded drpm

# pulp-admin rpm repo content drpm --repo-id test-repo10
Arch:         noarch
Checksum:     f9476caa0f491dfa227a984b092e05f68b637471f7c7c2f648475f067f12fc2e
Checksumtype: md5
Epoch:        0
Filename:     drpms/test-alpha-1.1-2_1.1-3.noarch.drpm
Release:      3
Version:      1.1

Checksumtype is md5, but Checksum shows a value of sha256 checksum.

# sha256sum /root/test-alpha-1.1-2_1.1-3.noarch.drpm
f9476caa0f491dfa227a984b092e05f68b637471f7c7c2f648475f067f12fc2e  /root/test-alpha-1.1-2_1.1-3.noarch.drpm

Related issues

Related to RPM Support - Issue #2871: Old references to checksum_type need to be updated to checksumtypeCLOSED - WONTFIXActions
Actions #1

Updated by bmbouter over 7 years ago

  • Tags RCM added

yuzheng I'm adding the RCM flag since I think this is tracking something of interest to RCM. Consider setting it for any issues you file for RCM.

Actions #6

Updated by ttereshc over 7 years ago

  • Triaged changed from No to Yes
Actions #8

Updated by kdelee@redhat.com over 7 years ago

  • Related to Issue #2871: Old references to checksum_type need to be updated to checksumtype added
Actions #9

Updated by bmbouter over 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #10

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added
Actions #11

Updated by bmbouter over 5 years ago

  • Tags deleted (RCM)

Also available in: Atom PDF