Bug 1873391 - No longer able to tag docker image using hammer after upgrading to Satellite 6.7/6.8
Summary: No longer able to tag docker image using hammer after upgrading to Satellite ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 6.9.0
Assignee: satellite6-bugs
QA Contact: Tasos Papaioannou
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-28 06:13 UTC by Hao Chang Yu
Modified: 2023-12-15 19:03 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1890912 (view as bug list)
Environment:
Last Closed: 2021-04-21 13:17:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
HOTFIX RPM for Satellite 6.7.4 (121.89 KB, application/x-rpm)
2020-10-12 00:32 UTC, wclark
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 30825 0 Normal Closed No longer able to tag docker image using hammer after upgrading to Satellite 6.7/6.8 2021-02-11 15:26:41 UTC
Red Hat Product Errata RHSA-2021:1313 0 None None None 2021-04-21 13:17:58 UTC

Description Hao Chang Yu 2020-08-28 06:13:31 UTC
Description of problem:
The hammer in Satellite 6.7 removed the "--docker-digest" and "--docker-tag" parameters. User can no longer tag the docker image which manually uploaded to the Satellite.

# Satellite 6.6 and earlier versions have the parameters
# hammer repository update --help
Usage:
    hammer repository update [OPTIONS]

Options:

 --docker-digest DIGEST                                    Container Image manifest digest
 --docker-tag TAG                                          Container Image tag


# Satellite 6.7
# hammer repository update --docker-tag latest --docker-digest sha256:<some_digest>  --name repo_name --organization RedHat --product my_product
Could not update the repository:
  Error: Unrecognised option '--docker-tag'.


The parameters were removed by the following pull request. Nothing mentioned in the pull request about why these parameters were removed.

https://github.com/Katello/hammer-cli-katello/pull/699/files#diff-e5e0e5d6b8dc7a2d91e2b54f479e2904L230

Comment 3 Samir Jha 2020-09-11 16:46:43 UTC
Created redmine issue http://projects.theforeman.org/issues/30825 from this bug

Comment 4 Bryan Kearney 2020-09-15 16:05:20 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30825 has been resolved.

Comment 9 wclark 2020-10-12 00:32:06 UTC
Created attachment 1720790 [details]
HOTFIX RPM for Satellite 6.7.4

Comment 10 wclark 2020-10-12 00:34:23 UTC
HOTFIX is available for Satellite 6.7.4

Installation Instructions:

1. Take a complete backup or snapshot of Satellite server before proceeding

2. Download the attached hotfix RPM and copy it to Satellite server

3. # yum install ./tfm-rubygem-hammer_cli_katello-0.20.2.3-2.HOTFIXRHBZ1873391.el7sat.noarch.rpm --disableplugin=foreman-protector

Since this is a patch to the hammer cli tool, the hotfix should take place immediately without requiring any service restart.

Comment 12 Tasos Papaioannou 2021-03-08 15:26:42 UTC
Verified on 6.9.0 snap 16.0.

Comment 15 errata-xmlrpc 2021-04-21 13:17:42 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 (Moderate: Satellite 6.9 Release), 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-2021:1313


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