Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1582318 - Unable to upload saved image to docker repository
Summary: Unable to upload saved image to docker repository
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.4.0
Assignee: Tom McKay
QA Contact: jcallaha
URL:
Whiteboard:
Depends On: 1578188 1600906
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-24 20:54 UTC by jcallaha
Modified: 2021-04-06 17:49 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:25:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 23696 0 Normal Resolved Unable to upload saved image to docker repository 2021-02-14 06:48:49 UTC
Pulp Redmine 3703 0 High CLOSED - CURRENTRELEASE Update image upload to be compatible with skopeo Directory Transport 1.1 2018-07-09 15:06:08 UTC
Red Hat Bugzilla 1578188 0 unspecified CLOSED [Satellite 6] Satellite 6.3/6.2.x no longer upload docker image 2021-02-22 00:41:40 UTC

Internal Links: 1578188

Description jcallaha 2018-05-24 20:54:15 UTC
Description of problem:
Attempts to upload an image to a docker repository, via hammer, fail with the following error.

warning: Overriding "Content-Type" header "multipart/form-data" with "multipart/form-data; boundary=----RubyFormBoundarydCoPATBR1CWd12eF" due to payload
Failed to upload file 'chd-sles12.tar' to repository. Please check the file and try again.

Version-Release number of selected component (if applicable):
Satellite 6.4 Snap 4

How reproducible:
Always

Steps to Reproduce:
1. Use skopeo copy to save an image to your local filesystem. This can be from any v2 registry.
  - skopeo copy docker://ibm-x3550m3-10.lab.eng.brq.redhat.com:5000/default_organization-docker-chd:sles12 dir:/root/images/

2. package those contents into a tar
  - tar -cvf ../chd-sles12.tar *

3. create a new docker type repository

4. upload the tar to the repository
  - hammer repository upload-content --path /root/chd-sles12.tar --id 41 --organization-id 1

Actual results:
The error above is shown.

Expected results:
The tar uploads successfully and all image details are shown in satellite.


Full Steps With Output
----------------------
-bash-4.2# skopeo copy docker://ibm-x3550m3-10.lab.eng.brq.redhat.com:5000/default_organization-docker-chd:sles12 dir:/root/images/ --dest-compress
Getting image source signatures
Copying blob sha256:15e57e8ae08d4063266dd6190e51d5f7c6a1ddac075a3b4cf03231aaadcf0706
 43.27 MB / 43.27 MB [======================================================] 0s
Copying blob sha256:44857127ee12372e7b85c7ae7e7e1ef0d834f01e12382da9600abb60896aff41
 92.68 MB / 92.68 MB [======================================================] 1s
Copying blob sha256:12a7da97e70b49a042123c35eeeb870d0be27353a0fa5b5a8ecdb0d39d8f1d3c
 26.12 MB / 26.12 MB [======================================================] 0s
Copying blob sha256:cc7814dc0e1e97f58b9f48b163943f74741af82df40e09096f3531be22532e16
 3.84 KB / 3.84 KB [========================================================] 0s
Copying blob sha256:89d826c2ce74d7df53f3e2240b06b05ad5577b95c86775e7665db9acddd116ba
 779 B / 779 B [============================================================] 0s
Copying blob sha256:8fa08ad64bf2d5890909d3420120cad8ee418352a8f7533828b38cfd3b7b5bb0
 459 B / 459 B [============================================================] 0s
Copying blob sha256:7b1329066df6ac615438ef54624ad791d449ffe269c521fd437b0c697b57cdb0
 779 B / 779 B [============================================================] 0s
Copying config sha256:41eb58b3e82267b834faa2586b6e2d55e850c8cc3e416bbee9b7049b0684a795
 3.93 KB / 3.93 KB [========================================================] 0s
Writing manifest to image destination
Storing signatures


-bash-4.2# ll
total 163M
-rw-r--r--. 1 root root  27M May 24 21:25 12a7da97e70b49a042123c35eeeb870d0be27353a0fa5b5a8ecdb0d39d8f1d3c
-rw-r--r--. 1 root root  44M May 24 21:25 15e57e8ae08d4063266dd6190e51d5f7c6a1ddac075a3b4cf03231aaadcf0706
-rw-r--r--. 1 root root 4.0K May 24 21:25 41eb58b3e82267b834faa2586b6e2d55e850c8cc3e416bbee9b7049b0684a795
-rw-r--r--. 1 root root  93M May 24 21:25 44857127ee12372e7b85c7ae7e7e1ef0d834f01e12382da9600abb60896aff41
-rw-r--r--. 1 root root  779 May 24 21:25 7b1329066df6ac615438ef54624ad791d449ffe269c521fd437b0c697b57cdb0
-rw-r--r--. 1 root root  779 May 24 21:25 89d826c2ce74d7df53f3e2240b06b05ad5577b95c86775e7665db9acddd116ba
-rw-r--r--. 1 root root  459 May 24 21:25 8fa08ad64bf2d5890909d3420120cad8ee418352a8f7533828b38cfd3b7b5bb0
-rw-r--r--. 1 root root 3.9K May 24 21:25 cc7814dc0e1e97f58b9f48b163943f74741af82df40e09096f3531be22532e16
-rw-r--r--. 1 root root 1.8K May 24 21:25 manifest.json
-rw-r--r--. 1 root root   33 May 24 21:25 version
 
 
-bash-4.2# tar -cvf ../chd-sles12.tar *
12a7da97e70b49a042123c35eeeb870d0be27353a0fa5b5a8ecdb0d39d8f1d3c
15e57e8ae08d4063266dd6190e51d5f7c6a1ddac075a3b4cf03231aaadcf0706
41eb58b3e82267b834faa2586b6e2d55e850c8cc3e416bbee9b7049b0684a795
44857127ee12372e7b85c7ae7e7e1ef0d834f01e12382da9600abb60896aff41
7b1329066df6ac615438ef54624ad791d449ffe269c521fd437b0c697b57cdb0
89d826c2ce74d7df53f3e2240b06b05ad5577b95c86775e7665db9acddd116ba
8fa08ad64bf2d5890909d3420120cad8ee418352a8f7533828b38cfd3b7b5bb0
cc7814dc0e1e97f58b9f48b163943f74741af82df40e09096f3531be22532e16
manifest.json
version
 
 
-bash-4.2# hammer repository create --name chd-sles12 --content-type docker --product-id 44 --organization-id 1
Repository created
 
 
-bash-4.2# hammer repository upload-content --path chd-sles12.tar --id 41 --organization-id 1
warning: Overriding "Content-Type" header "multipart/form-data" with "multipart/form-data; boundary=----RubyFormBoundaryzUNYGqCR1VAQAdUB" due to payload
Failed to upload file 'chd-sles12.tar' to repository. Please check the file and try again.

Comment 2 Tom McKay 2018-05-24 22:09:22 UTC
Created redmine issue http://projects.theforeman.org/issues/23696 from this bug

Comment 4 pulp-infra@redhat.com 2018-05-25 14:34:40 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 5 pulp-infra@redhat.com 2018-05-25 14:34:43 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2018-05-25 15:03:27 UTC
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.

Comment 8 pulp-infra@redhat.com 2018-05-31 16:33:07 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.

Comment 9 pulp-infra@redhat.com 2018-06-05 21:52:20 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.

Comment 10 pulp-infra@redhat.com 2018-06-12 18:57:25 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 11 Patrick Creech 2018-07-05 15:48:09 UTC
Per thomasmckay on irc, no fix is needed outside of pulp.

Comment 12 Brad Buckingham 2018-07-05 15:50:24 UTC
Moving to pulp component, since no katello change needed.

Comment 13 pulp-infra@redhat.com 2018-07-09 14:08:53 UTC
The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug.

Comment 14 pulp-infra@redhat.com 2018-07-09 15:06:09 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 17 pulp-infra@redhat.com 2018-07-23 10:34:10 UTC
Requesting needsinfo from upstream developer austin because the 'FailedQA' flag is set.

Comment 20 pulp-infra@redhat.com 2018-07-23 11:04:06 UTC
Requesting needsinfo from upstream developer austin because the 'FailedQA' flag is set.

Comment 23 pulp-infra@redhat.com 2018-07-23 15:34:10 UTC
Requesting needsinfo from upstream developer austin because the 'FailedQA' flag is set.

Comment 27 jcallaha 2018-07-24 19:04:24 UTC
Verified in Satellite 6.4 Snap 13.

I followed my initial reported steps and it worked well this time.

-bash-4.2# hammer repository upload-content --path /root/chd-sles12.tar --id 2 --organization-id 1
Successfully uploaded manifest file 'chd-sles12.tar' with digest 'sha256:2b02869c74a9b65b59caf2e4146151a07e62f932ff47ddba4266fd6f86cd22c7'

-bash-4.2# hammer repository info --id 2
ID:                        2
Name:                      test_upload
Label:                     test_upload
Organization:              Default Organization
Red Hat Repository:        no
Content Type:              docker
Mirror on Sync:            yes
URL:                       
Publish Via HTTP:          yes
Published At:              <sathost>:5000/default_organization-docker-test_upload
Relative Path:             default_organization-docker-test_upload
Download Policy:           
Container Repository Name: default_organization-docker-test_upload
Product:                   
    ID:   1
    Name: docker
GPG Key:                   

Sync:                      
    Status: Not Synced
Created:                   2018/07/24 18:30:48
Updated:                   2018/07/24 18:30:49
Content Counts:            
    Container Image Manifest Lists: 0
    Container Image Manifests:      1
    Container Image Tags:           0

Comment 28 Bryan Kearney 2018-10-16 19:25:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927


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