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 1637141 - [RFE] Hammer: Content-view package list export via CSV
Summary: [RFE] Hammer: Content-view package list export via CSV
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Reporting
Version: 6.3.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-08 17:51 UTC by Taft Sanders
Modified: 2021-12-10 18:04 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-15 20:30:51 UTC
Target Upstream Version:
Embargoed:
tasander: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 25612 0 Normal New Hammer: Content-view package list export via CSV 2020-06-17 05:48:24 UTC
Red Hat Issue Tracker SAT-7017 0 None None None 2021-12-10 18:04:00 UTC

Description Taft Sanders 2018-10-08 17:51:05 UTC
Description of problem:
No option to export all packages in a content view into a CSV list with hammer

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

How reproducible:
n/a

Steps to Reproduce:
1.
2.
3.

Actual results:
Only content view information is exported in the following format:
Name,Label,Organization,Composite,Repositories or Composites,Lifecycle Environments


Expected results:
The content of the content-view should be exportable in a csv format

Additional info:

Comment 2 Marek Hulan 2018-12-03 15:05:53 UTC
Make sense to create as a report. Hammer can generate any report, so that would address the CLI aspect too.

Comment 3 Marek Hulan 2018-12-03 15:06:42 UTC
Created redmine issue https://projects.theforeman.org/issues/25612 from this bug

Comment 4 Andrew Kofink 2018-12-05 19:02:22 UTC
Does this not do what you want?

hammer --csv package list --content-view-version-id 1 --page 1

Comment 5 Justin Sherrill 2019-02-06 18:40:08 UTC
question for you here: https://bugzilla.redhat.com/show_bug.cgi?id=1637141#c4

Comment 6 Bryan Kearney 2019-11-04 14:34:25 UTC
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Red Hat Technical Support or your account team. If we do not hear from you, we will close this bug out. Thank you.

Comment 7 Bryan Kearney 2019-12-03 16:35:00 UTC
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Red Hat Technical Support or your account team. If we do not hear from you, we will close this bug out. Thank you.

Comment 8 Waldirio M Pinheiro 2019-12-03 19:26:13 UTC
Hello Bryan,

I'm working on all reports BZ's just to check if will fit in Report template. This is one on my list.

Please, allow me some additional time to review and then we can move forward.


Thank you

Comment 9 Waldirio M Pinheiro 2019-12-10 08:13:27 UTC
Hello,

Also, we can see this output.

Taft, please let us know if this is the desired output. I'll be working to provide a similar via report template.

---
# hammer package list --content-view cv_rhel73_with_all_errata --content-view-version 2.0 --organization ACME --environment Library --per-page 5
------|-----------------------------------------|-------------------------------------
ID    | FILENAME                                | SOURCE RPM                          
------|-----------------------------------------|-------------------------------------
9891  | 389-ds-base-1.3.1.6-25.el7.x86_64.rpm   | 389-ds-base-1.3.1.6-25.el7.src.rpm  
8555  | 389-ds-base-1.3.1.6-26.el7_0.x86_64.rpm | 389-ds-base-1.3.1.6-26.el7_0.src.rpm
12671 | 389-ds-base-1.3.3.1-13.el7.x86_64.rpm   | 389-ds-base-1.3.3.1-13.el7.src.rpm  
6236  | 389-ds-base-1.3.3.1-16.el7_1.x86_64.rpm | 389-ds-base-1.3.3.1-16.el7_1.src.rpm
1322  | 389-ds-base-1.3.3.1-20.el7_1.x86_64.rpm | 389-ds-base-1.3.3.1-20.el7_1.src.rpm
------|-----------------------------------------|-------------------------------------
Page 1 of 2931 (use --page and --per-page for navigation).
---

Thank you.

Comment 10 Bryan Kearney 2020-01-15 20:30:51 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Red Hat Technical Support. Thank you.


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