Project

General

Profile

Actions

Bug #36970

closed

hammer repository info doesn't return content counts for AC repos

Added by Ian Ballou 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2251019

Description of problem:
`hammer repository info` command doesn't return content counts for ansible collection repos.

Version-Release number of selected component (if applicable):
Any Katello with ansible collections repos

How reproducible:
always

Steps to Reproduce:
1. Sync some AC repo (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@kat ~]# 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://katello.example.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

Actions #1

Updated by Ian Ballou 5 months ago

  • Subject changed from hammer repository info doesn't return content counts for AC repos to hammer repository info doesn't return content counts for AC repos
  • Category changed from Repositories to Hammer
Actions #2

Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ian Ballou
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/919 added
Actions #3

Updated by Partha Aji 5 months ago

  • Target version set to Katello 4.11.0
  • Triaged changed from No to Yes
Actions #4

Updated by Ian Ballou 5 months ago

  • Target version changed from Katello 4.11.0 to Katello 4.12.0
Actions #5

Updated by Ian Ballou 4 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF