Bug 1909607 - hammer content-view component list does not list content-view ID
Summary: hammer content-view component list does not list content-view ID
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.8.0
Hardware: All
OS: All
medium
medium
Target Milestone: 6.12.0
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-21 07:32 UTC by Steffen Froemer
Modified: 2024-02-08 19:40 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-24 18:36:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 34174 0 Normal Closed hammer content-view component list does not list content-view ID 2023-03-24 18:33:33 UTC
Github Katello hammer-cli-katello pull 831 0 None Merged Fixes #34174 - Add content view ID to content-view component list 2023-03-24 18:32:43 UTC
Red Hat Issue Tracker SAT-23135 0 None None None 2024-02-08 19:40:51 UTC

Description Steffen Froemer 2020-12-21 07:32:26 UTC
Description of problem:
When listing information from content-view component list, the propagated ID is irritating for further usage.
Getting further information of shown content-views using ID is impossible. You have to use name instead.

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


How reproducible:
always

Steps to Reproduce:
1. create CCV 
2. show content of CCV using hammer content-view component list command
3. get information from listed CV by using ID

Actual results:
[root@satellite ~]# hammer content-view component list --composite-content-view ccv-rhel7-x86_64-generic
---|---------------------------------------|---------|-----------------|-------------
ID | NAME                                  | VERSION | CURRENT VERSION | VERSION ID   
---|---------------------------------------|---------|-----------------|------------- 
5  | cv-rhel7-x86_64                       | Latest  | 15.0            | 104 (Latest) 


[root@satellite ~]# hammer content-view info --id=5 --fields name
Name: ccv-rhel7-x86_64-capsule   


Expected results:
The shown ID should be named as something like `component ID` and the appropriate ID should be listed separately


[root@satellite ~]# hammer content-view info --id=5 --fields name
Name: cv-rhel7-x86_64   


[root@satellite ~]# hammer content-view component list --composite-content-view ccv-rhel7-x86_64-generic
-------------|---------------------------------------|---------|------|----------------|-------------
COMPONENT ID | NAME                                  | VERSION |  ID  |CURRENT VERSION | VERSION ID   
-------------|---------------------------------------|---------|------|----------------|------------- 
5            | cv-rhel7-x86_64                       | Latest  |  10  |  15.0          | 104 (Latest) 

Additional info:

Comment 6 Samir Jha 2023-03-24 18:36:46 UTC
Marking as closed current-release. The fix for this landed in Satellite 6.12 as part of hammer.

Comment 7 Red Hat Bugzilla 2023-09-18 00:24:00 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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