foreman-ansible-modules icon indicating copy to clipboard operation
foreman-ansible-modules copied to clipboard

Add module stream filter_type to katello_content_view_filter

Open ich199 opened this issue 4 years ago • 8 comments

SUMMARY

From both the Katello UI and via hammer, you are able to add a content view filter rule to filter module streams from Yum content. This is not currently possible using the katello_content_view_filter module.

screenshot_2020-06-24-10:13:08

ISSUE TYPE
  • Feature Idea

ich199 avatar Jun 24 '20 09:06 ich199

I might take it in a week if no one does before.

nesanton avatar Aug 25 '20 12:08 nesanton

So I had a brief look at the API for that and I fear it's non-trivial to add right now.

The CV Filter Rule API expects a ModuleStream ID, which is just the numerical ID in the DB, so if we add a module_streams parameter, we'll have to do a search on the modulestream API endpoint to find the right stream id, and the API allows searching for the following terms: name, uuid, stream, version, context, arch, host, module_spec. the spec is the most verbose (it's NAME:STREAM:VERSION:CONTEXT:ARCH/PROFILE essentially) but we should allow the user to do any of these (well, maybe not host, that's IMHO not too useful in this context)

I vote we implement that when we have split the module into content_view_filter and content_view_filter_rule.

evgeni avatar Sep 04 '20 12:09 evgeni

It would also be nice to be able to filter out all module streams (exclude all) if possible.

Blackmoresknight avatar Feb 16 '21 13:02 Blackmoresknight

any update on the split of the module ? Would be nice to be able to use ansible module to create a filter like "Include all Module Streams with no errata."

tinsjourney avatar Aug 20 '21 15:08 tinsjourney

Any update on this?

RJBJongejan avatar Nov 05 '21 08:11 RJBJongejan

Please split the module into content_view_filter and content_view_filter_rule. Soonest. And implement modulemd. I need this functionality badly. You can't create content views with filters on anything with modules without this. My tests in Satellite show that you need both All RPMS no errata + All Streams no errata + your date based erratum filter or your content view is missing components and installs and patching fails. If we can at least support an include filter of type modulemd with original_packages=true that gets many content views over the hump.

parmstro avatar Nov 24 '21 04:11 parmstro

Any update on this?

Fabian1976 avatar Jun 14 '22 13:06 Fabian1976

Not yet, my day job is getting in my way. :-) I have started working on it.

Paul Armstrong Principal Technical Specialist Red Hat Technical Sales Organization 647-285-0044

On Tue, Jun 14, 2022 at 9:53 AM Fabian van der Hoeven < @.***> wrote:

Any update on this?

— Reply to this email directly, view it on GitHub https://github.com/theforeman/foreman-ansible-modules/issues/854#issuecomment-1155217873, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMAI2LPP2NDENHACRKTZNDVPCFF7ANCNFSM4OGPACJQ . You are receiving this because you commented.Message ID: @.***>

parmstro avatar Jun 14 '22 15:06 parmstro

Can you give an update on this? I would very much like to automate my rhel8/rhel9 content views with this.

RJBJongejan avatar Oct 21 '22 12:10 RJBJongejan

I also really want this. My ugly workaround hack consists of 4 tasks and the module stream filters is deleted and created every time:

  • lookup content view id
  • lookup filter id in content view
  • delete module stream filter in content view through api
  • create module stream filter in content view through api

fltux avatar Nov 01 '22 17:11 fltux

done in https://github.com/theforeman/foreman-ansible-modules/pull/1558

evgeni avatar Nov 15 '23 08:11 evgeni