Bug 2251019
| Summary: | hammer repository info doesn't return content counts for AC repos | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Vladimír Sedmík <vsedmik> |
| Component: | Repositories | Assignee: | Ian Ballou <iballou> |
| Status: | CLOSED ERRATA | QA Contact: | Vladimír Sedmík <vsedmik> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.14.0 | CC: | iballou, rlavi, zhunting |
| Target Milestone: | 6.15.0 | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | tfm-rubygem-hammer_cli_katello-1.11.1.2-1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-04-23 17:15: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: | |||
Created redmine issue https://projects.theforeman.org/issues/36970 from this bug Upstream bug assigned to iballou Upstream bug assigned to iballou Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36970 has been resolved. 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
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 |
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