Bug 2173634

Summary: The "hammer CLI" does not allows performing the Validate Content\Verify Checksum action on docker type repos but Satellite GUI
Product: Red Hat Satellite Reporter: Sayan Das <saydas>
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.13.0CC: iballou
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-12 19:25:51 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:

Description Sayan Das 2023-02-27 14:54:17 UTC
Description of problem:

The "hammer CLI" does not allows performing the Validate Content\Verify Checksum action on docker type repos but Satellite GUI allows doing so.


Version-Release number of selected component (if applicable):

satellite-6.13.0-6.el8sat.noarch
katello-4.7.0-1.el8sat.noarch
rubygem-hammer_cli_katello-1.7.2-1.el8sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. Install a Satellite 6.13 and import a manifest with some valid subs
2. Use the repo_discovery feature to discover the "ubi8/toolbox" repo and create it inside the Containers product
3. Sync the repo from Satellite UI
4. Use hammer command to run "Validate Content\Verify Checksum" on the repo
5. Go to Satellite UI Content --> Products --> Containers --> Repositories --> ubi8/toolbox --> Select Action dropdown --> Verify Content Checksum


Actual results:

Step 4:

# hammer repository list --fields Id,Name
---|--------------------------------------------------
ID | NAME                                             
---|--------------------------------------------------
1  | Red Hat Satellite Client 6 for RHEL 8 x86_64 RPMs
2  | ubi8/toolbox                                     
---|--------------------------------------------------

# hammer repository synchronize --id 2 --validate-contents true
Could not synchronize the repository:
  Cannot validate contents on non-yum/deb repositories.
  

Step 5: Success i.e. UI allows to perform the action on the same repo and initiates the task ( it does not matter for now if it fails )


Expected results:

hammer and UI behavior should remain consistent with each other. 


Additional info:

NA

Comment 2 Ian Ballou 2023-06-12 19:25:51 UTC
Marking as a duplicate.

*** This bug has been marked as a duplicate of bug 2161209 ***