Bug 1018061

Summary: Failed to publish a CV that contains a errata filter using errata-id
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: David Davis <daviddavis>
Status: CLOSED CURRENTRELEASE QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.2CC: jmontleo, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-24 17:09: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:
Description Flags
publishing a cv including errata filter fails none

Description Sachin Ghai 2013-10-11 06:36:44 UTC
Created attachment 810877 [details]
publishing a cv including errata filter fails

Description of problem:
Create a content view filter of type "Errata" and choose errata-id. Once you publish the created CV with this filter, it fails with error:

--
Failed to publish content view 'publish-name-1011-114512-065' from definition 'con-def-1011-114512-065'.
undefined method `list_by_filter_clauses' for Util::Errata:Module (NoMethodError)
--

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

katello-1.4.6-21.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Create a CV definition
2. select the product/repo from content-tab
3. create a cv filter
4. select the repo from repo tab
5. Add rule and select filter type 'Errata'
6. select the 'Errata-id"..
7. Use auto-completion
8. save the rule
9. publish the cv

Actual results:
--
Failed to publish content view 'publish-name-1011-114512-065' from definition 'con-def-1011-114512-065'.
undefined method `list_by_filter_clauses' for Util::Errata:Module (NoMethodError)
--

Expected results:
CV should be successfully published.

Additional info:

Comment 2 Mike McCune 2013-10-15 16:02:54 UTC
reproduced this in MDP2 - SNAP5

Comment 3 David Davis 2013-10-15 16:44:49 UTC
https://github.com/Katello/katello/pull/3186

Comment 4 David Davis 2013-10-16 12:43:43 UTC
katello SHA d9dacc57278a66a2f6bb30917208e0f564fd93be

1018061: Fixing call to Errata class

Comment 7 Sachin Ghai 2013-10-17 12:45:47 UTC
Verified with MDP2 snap6.

katello-glue-pulp-1.4.6-39.el6sat.noarch
ruby193-rubygem-katello_api-0.0.3-4.el6sat.noarch
katello-glue-candlepin-1.4.6-39.el6sat.noarch
katello-configure-foreman-1.4.7-5.el6sat.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-common-1.4.3-24.el6sat.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
pulp-katello-plugins-0.2-1.el6sat.noarch
katello-selinux-1.4.4-4.el6sat.noarch
ruby193-rubygem-katello-foreman-engine-0.0.11-3.el6sat.noarch
katello-certs-tools-1.4.4-1.el6sat.noarch
signo-katello-0.0.22-2.el6sat.noarch
katello-cli-1.4.3-24.el6sat.noarch
katello-configure-foreman-proxy-1.4.7-5.el6sat.noarch
katello-1.4.6-39.el6sat.noarch
katello-foreman-all-1.4.6-39.el6sat.noarch
katello-common-1.4.6-39.el6sat.noarch
katello-glue-elasticsearch-1.4.6-39.el6sat.noarch
ruby193-rubygem-foreman-katello-engine-0.0.17-6.el6sat.noarch
katello-configure-1.4.7-5.el6sat.noarch
katello-all-1.4.6-39.el6sat.noarch
katello-qpid-client-key-pair-1.0-1.noarch

Reported issue has been fixed. I can publish the cv that contains a errata     filter with errata-id

Comment 8 Bryan Kearney 2014-04-24 17:09:34 UTC
This was verified and delivered with MDP2. Closing it out.

Comment 9 Bryan Kearney 2014-04-24 17:11:02 UTC
This was delivered and verified with MDP2. Closing the bug.