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 1079278 - undefined method error while publish a CV that includes errata filter
Summary: undefined method error while publish a CV that includes errata filter
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Brad Buckingham
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-21 10:53 UTC by Sachin Ghai
Modified: 2019-09-26 13:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-02 14:06:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
publishing a CV that includes errata filter, raises error (59.29 KB, image/png)
2014-03-21 10:53 UTC, Sachin Ghai
no flags Details
complete stacktrace/logs from production.log (46.93 KB, text/plain)
2014-03-27 16:12 UTC, Sachin Ghai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 4915 0 None None None 2016-04-22 15:45:11 UTC

Description Sachin Ghai 2014-03-21 10:53:01 UTC
Created attachment 877227 [details]
publishing a CV that includes errata filter, raises error

Description of problem:
I created a filter of content-type errata under CV. But while publishing, UI throws an error:

undefined method `list_by_filter_clauses' for Katello::Util::Errata:Module 

Version-Release number of selected component (if applicable):
rubygem-katello_api-0.0.8-2.el6sat.noarch
ruby193-rubygem-katello-1.5.0-22.el6sat.noarch
katello-repos-1.5.1-1.git.14.0868bd1.el6.noarch
rubygem-hammer_cli_katello-0.0.3-5.el6sat.noarch
katello-1.5.0-18.el6sat.noarch
katello-certs-tools-1.5.5-1.el6sat.noarch
katello-installer-0.0.28-1.el6sat.noarch
pulp-katello-plugins-0.2-1.el6sat.noarch
katello-ca-1.0-1.noarch
katello-apache-1.0-1.noarch
foreman-selinux-1.5.0-0.develop.el6sat.noarch
rubygem-hammer_cli_foreman-0.0.18-7.el6sat.noarch
foreman-proxy-1.5.3-1.el6sat.noarch
ruby193-rubygem-foreman-tasks-0.4.0-5.el6sat.noarch
rubygem-foreman_api-0.1.11-3.el6sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.1-4.el6sat.noarch
foreman-postgresql-1.5.0.9-1.el6sat.noarch
foreman-1.5.0.9-1.el6sat.noarch
foreman-release-1.5.0-0.develop.201403182248gitdf471c7.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. create a errata filter
2. publish it
3.

Actual results:
undefined method `list_by_filter_clauses' for Katello::Util::Errata:Module 


Expected results:
the view should be published with errata filter

Additional info:

Comment 1 RHEL Program Management 2014-03-21 11:14:39 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Brad Buckingham 2014-03-27 14:58:37 UTC
Can you provide more details on the scenario in which you get the above error as well as attach the stack trace information?

For example,
-what products / repos are associated with the view?
-what errata filter type was created? (e.g. by id or by type/date)
-what settings were applied on the filter rule?  (e.g. did it have any errata ids, start date, end date, types...etc)

Comment 4 Sachin Ghai 2014-03-27 16:11:19 UTC
First of all, I'm sorry, I should provider complete steps along with logs. 

1. Create product with any name, e.g. p1

2. Add two yum repos r1 and r1 using following two URLs:
r1 repo: http://inecas.fedorapeople.org/fakerepos/zoo/
r2 repo: http://hhovsepy.fedorapeople.org/fakerepos/zoo4/

3. sync these repo.
4. Now create a CV with name cv1
5. Add repo r2 to CV1
6. Create filter of content-type errata-ID and type: include
7. add any one errata id from populated list, without selecting start-end dates.
8. Now publish cv version1
9. Boom, you will get undefined error.

I'm attaching complete stack trace. Thank you for helping on this bz.

Comment 5 Sachin Ghai 2014-03-27 16:12:19 UTC
Created attachment 879533 [details]
complete stacktrace/logs from production.log

Comment 6 Brad Buckingham 2014-03-27 17:24:22 UTC
@Sachin, thanks for the additional details!

Comment 7 Brad Buckingham 2014-03-27 18:26:14 UTC
katello pull request : https://github.com/Katello/katello/pull/3905

Comment 9 Corey Welton 2014-04-14 16:16:39 UTC
Verified in Satellite-6.0.3-RHEL-6-20140404.0

Comment 10 Bryan Kearney 2014-07-02 14:06:34 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.


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