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 1557101 - Fails to upload custom docker image into Satellite 6.3 repository using hammer CLI.
Summary: Fails to upload custom docker image into Satellite 6.3 repository using hamme...
Keywords:
Status: CLOSED DUPLICATE of bug 1313502
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.3.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-16 02:30 UTC by Amit Kumar Das
Modified: 2023-09-14 04:36 UTC (History)
4 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-20068 0 None None None 2023-09-14 04:36:15 UTC
Red Hat Knowledge Base (Solution) 3376451 0 None None None 2018-03-16 02:47:13 UTC

Description Amit Kumar Das 2018-03-16 02:30:30 UTC
Description of problem:

Docker customer image fails to upload in Satellite 6.3 repository using Hammer CLI.

# hammer repository upload-content --product 'containers' --organization 'REDHAT' --name 'rhel-custom' --path /root/my_httpd_rhel.tar
Failed to upload file '' to repository. Please check the file and try again.
Could not upload the content:
  Error: repository not found
 
Version-Release number of selected component (if applicable):
Satellite 6.3

How reproducible:
1) Satellite GUI > Content > Product >
Create Product "containers"
Create Repositories "rhel" 
Content Type "docker" 
Registry url "https://registry.access.redhat.com"
Sync Now

2) Content > Docker Tag > rhel:latest > LifeCycle Environment > Publish At > Copy "my.satellite.com:5000/redhat-dev-containers-containers-rhel:latest"

3) In host
# docker pull my.satellite.com:5000/redhat-dev-containers-containers-rhel:latest
# docker images
# docker run --name my_rhel -it my.satellite.com:5000/redhat-dev-containers-containers-rhel /bin/bash
# docker container attach my_rhel
# yum install httpd
# exit
# docker save -o my_httpd_rhel.tar my.satellite.com:5000/redhat-dev-containers-containers-rhel:latest

Now upload it custom image "my_httpd_rhel.tar" using hammer CLI.

Actual results:

# hammer repository upload-content --product 'containers' --organization 'REDHAT' --name 'rhel-custom' --path /root/my_httpd_rhel.tar
Failed to upload file '' to repository. Please check the file and try again.
Could not upload the content:
  Error: repository not found
 
If I create repository 'rhel-custom' in satellite and try to upload, it gives error:

# hammer repository upload-content --product 'containers' --organization 'REDHAT' --name 'rhel-custom' --path /root/my_httpd_rhel.tar
Failed to upload file 'my_httpd_rhel.tar' to repository. Please check the file and try again

Expected results:
"my_httpd_rhel.tar" should be uploaded in product "containers" as content type "docker" and should list tags successfully.

Additional Info:
Find similar issue when try to upload in Satellite 6.2.14 version.

Comment 5 Red Hat Bugzilla 2023-09-14 04:25:33 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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