Bug 1079278
Summary: | undefined method error while publish a CV that includes errata filter | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> | ||||||
Component: | WebUI | Assignee: | Brad Buckingham <bbuckingham> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 6.0.3 | CC: | bbuckingham, cwelton, sghai | ||||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||||
Target Release: | Unused | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
URL: | http://projects.theforeman.org/issues/4915 | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2014-07-02 14:06:34 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
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. 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) 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. Created attachment 879533 [details]
complete stacktrace/logs from production.log
@Sachin, thanks for the additional details! katello pull request : https://github.com/Katello/katello/pull/3905 Verified in Satellite-6.0.3-RHEL-6-20140404.0 This was delivered with 6.0.3, which is the Satellite 6 Beta. |
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: