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 1428376 - Hammer csv content-view-filters fails to export a date-based Erratum filter
Summary: Hammer csv content-view-filters fails to export a date-based Erratum filter
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer - Content
Version: 6.2.7
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Tom McKay
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-02 12:37 UTC by Francisco Garcia
Modified: 2021-03-11 15:00 UTC (History)
10 users (show)

Fixed In Version: hammer-cli-csv-2.3.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-04 18:06:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 18344 0 None None None 2017-03-10 13:29:12 UTC

Description Francisco Garcia 2017-03-02 12:37:25 UTC
Description of problem:


Hammer csv content-view-filters cannot properly handle CV Filters that use date-based Erratum. The export has the following output :

Name,Content View,Organization,Type,Description,Repositories,Rules
Errata until 2017-01-01,CV_RHEL72,MyOrg,Include unknown,,"","start = 2000-12-31,end = 2016-12-31,""types = security,enhancement,bugfix"""

The "Include unknown" field is wrong, and makes the import process fail:

Error: 500 Internal Server Error
Errata until 2017-01-01,CV_RHEL72,MyOrg,Include unknown,,"","start = 2000-12-31,end = 2016-12-31,""types = security,enhancement,bugfix"""

Excerpt from foreman/production.log :

2017-03-02 06:19:45 [app] [I] Started POST "/katello/api/content_views/9/filters" for 192.168.124.31 at 2017-03-02 06:19:45 -0500
2017-03-02 06:19:45 [app] [I] Processing by Katello::Api::V2::ContentViewFiltersController#create as JSON
2017-03-02 06:19:45 [app] [I]   Parameters: {"name"=>"Errata until 2017-01-01", "description"=>nil, "type"=>"unknown", "inclusion"=>true, "repository_ids"=>nil, "api_version
"=>"v2", "content_view_id"=>"9", "content_view_filter"=>{"name"=>"Errata until 2017-01-01", "type"=>"unknown", "inclusion"=>true, "description"=>nil, "repository_ids"=>nil}}
2017-03-02 06:19:45 [app] [I] Authorized user admin(Admin User)
2017-03-02 06:19:45 [app] [E] RuntimeError: Invalid content type 'unknown' provided. Content types can be one of rpm, package_group, erratum



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

Satellite 6.2.7
tfm-rubygem-hammer_cli-0.5.1.12-1.el7sat.noarch
tfm-rubygem-hammer_cli_csv-2.2.1.1-1.el7sat.noarch


How reproducible:
Always

Steps to Reproduce:
1. Generate a new CV Filter with the following options : 
      - Content type: by date and type
      - Inclusion type: Include
      - Errata type: security, enhancement, bugfix
      - Date type: "Updated on"
      - Start date: <blank>
      - End date:  eg: 2017-01-01
2. hammer csv content-view-filters --export 
3. Try to import the filter in another organization.

Comment 3 Tom McKay 2017-03-07 20:52:46 UTC
Created redmine issue http://projects.theforeman.org/issues/18829 from this bug

Comment 11 Bryan Kearney 2018-09-04 18:06:10 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.


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