Actions
Issue #2774
closedInconsistent Checksum and Checksumtype when uploading with --checksum-type
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
Actions