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 2251019 - hammer repository info doesn't return content counts for AC repos
Summary: hammer repository info doesn't return content counts for AC repos
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.14.0
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: 6.15.0
Assignee: Ian Ballou
QA Contact: Vladimír Sedmík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-22 11:04 UTC by Vladimír Sedmík
Modified: 2024-04-23 17:15 UTC (History)
3 users (show)

Fixed In Version: tfm-rubygem-hammer_cli_katello-1.11.1.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-23 17:15:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36970 0 Normal Ready For Testing hammer repository info doesn't return content counts for AC repos 2023-12-12 22:40:38 UTC
Red Hat Issue Tracker SAT-21458 0 None None None 2023-11-22 11:08:04 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:15:52 UTC

Description Vladimír Sedmík 2023-11-22 11:04:56 UTC
Description of problem:
`hammer repository info` command doesn't return content counts for ansible collection repos.


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


How reproducible:
always


Steps to Reproduce:
1. Sync some AC repo to the Satellite (I used galaxy.ansible.com and this requirement: {collections: [{'name': 'theforeman.foreman', 'version': '2.1.0'}, {'name': 'theforeman.operations', 'version': '0.1.0'}]} )
2. run hammer repository info --id <repo-id>


Actual results:

[root@sat ~]# hammer repository info --id 87
Id:                 87
Name:               AC repo
Label:              AC_repo
Description:        
Organization:       Default Organization
Red Hat Repository: no
Content Type:       ansible_collection
Content Label:      Default_Organization_AC_prod_AC_repo
Mirroring Policy:   Content Only
Url:                https://galaxy.ansible.com/
Publish Via HTTP:   yes
Published At:       https://satellite.redhat.com/pulp_ansible/galaxy/Default_Organization/Library/custom/AC_prod/AC_repo/api/
Relative Path:      Default_Organization/Library/custom/AC_prod/AC_repo
Download Policy:    
HTTP Proxy:         
    HTTP Proxy Policy: global_default_http_proxy
Product:            
    Id:   307
    Name: AC prod
GPG Key:            

Sync:               
    Status:         Success
    Last Sync Date: 2 minutes
Created:            2023/11/22 10:44:39
Updated:            2023/11/22 10:44:40
Content Counts:
                    <----------- nothing to see here


Expected results:
...
Sync:               
    Status:         Success
    Last Sync Date: 2 minutes
Created:            2023/11/22 10:44:39
Updated:            2023/11/22 10:44:40
Content Counts:
    Ansible Collections: 2   <---------------


Additional info:
Other content-types work just fine:

Content Counts:     
    Packages:       32842
    Source RPMS:    0
    Package Groups: 59
    Errata:         3191
    Module Streams: 716

Content Counts:     
    Files: 3

Content Counts:              
    Container Image Manifest Lists: 32
    Container Image Manifests:      214
    Container Image Tags:           53

Comment 2 Ian Ballou 2023-12-07 17:10:17 UTC
Created redmine issue https://projects.theforeman.org/issues/36970 from this bug

Comment 3 Bryan Kearney 2023-12-07 20:02:37 UTC
Upstream bug assigned to iballou

Comment 4 Bryan Kearney 2023-12-07 20:02:40 UTC
Upstream bug assigned to iballou

Comment 5 Bryan Kearney 2024-01-10 16:02:43 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36970 has been resolved.

Comment 7 Vladimír Sedmík 2024-01-25 13:27:42 UTC
Verified in 6.15.0 snap 8.0

1) Ansible Collection repos now report their content counts

[root@satellite ~]# hammer repository info --id 1456
Id:                 1456
Name:               AC repo
Label:              AC_repo
Description:        
Organization:       OWCA
Red Hat Repository: no
Content Type:       ansible_collection
Content Label:      OWCA_Test_Prod_AC_repo
...
Content Counts:     
    Ansible Collections: 2    <-----------

2) Docker repo content counts tags now match those from the capsule content counts

[root@satellite ~]# hammer repository info --id 1457
Id:                        1457
Name:                      Docker
Label:                     Docker
Description:               
Organization:              OWCA
Red Hat Repository:        no
Content Type:              docker
Content Label:             OWCA_Test_Prod_Docker
...
Content Counts:            
    Container Tags:           1    <-----------
    Container Manifests:      1
    Container Manifest Lists: 0

Comment 10 errata-xmlrpc 2024-04-23 17:15:51 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 (Important: Satellite 6.15.0 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-2024:2010


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