Bug 1873391

Summary: No longer able to tag docker image using hammer after upgrading to Satellite 6.7/6.8
Product: Red Hat Satellite Reporter: Hao Chang Yu <hyu>
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Tasos Papaioannou <tpapaioa>
Severity: high Docs Contact:
Priority: high    
Version: 6.7.0CC: ahumbe, akapse, apatel, kgaikwad, mmccune, mshira, ofedoren, rabajaj, rbertolj, wclark
Target Milestone: 6.9.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1890912 (view as bug list) Environment:
Last Closed: 2021-04-21 13:17:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
HOTFIX RPM for Satellite 6.7.4 none

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