[Katello] Content View filter rules - regex does not work

Hi

I am struggling a little bit with CV filter rules. I want to filter out
(exclude) all kernel modules. Kernel module packages are named like this:

kmod-bnx2x
kmod-oracleasm
kmod-megaraid_sas
kmod-qed-firmware

and so on. But there is also kmod and kmod-libs packages which are not
actually kernel modules but tools and binaries to manage kernel modules so
I want to leave these.

According to Red Hat Satellite 6 documentation:

Filters provide a mechanism to prevent packages from being promoted to
> subsequent environments. You can use package names or regular
> expressions
in the filter to create the rules to blacklist packages.
> Then you can associate the filter to entire products or individual
> repositories within any product.

filter rules can be created using regular expression. So I created this
exclude filter rule:

(?!kmod-libs)(kmod-.+)

This should match all kmod-* packages except kmod and kmod-libs.
Unfortunatelly this does not work and all kmod-* packages are included.

Does anyone has any idea why regex does not work? Or perhaps there is
another way to approach this issue?

Edgars

Hi

Should I fill bug ticket?

otrdiena, 2016. gada 6. decembris 11:26:19 UTC+1, Edgars M. rakstīja:

··· > > Hi > > I am struggling a little bit with CV filter rules. I want to filter out > (exclude) all kernel modules. Kernel module packages are named like this: > > kmod-bnx2x > kmod-oracleasm > kmod-megaraid_sas > kmod-qed-firmware > > and so on. But there is also kmod and kmod-libs packages which are not > actually kernel modules but tools and binaries to manage kernel modules so > I want to leave these. > > According to Red Hat Satellite 6 documentation: > > Filters provide a mechanism to prevent packages from being promoted to >> subsequent environments. You can use package names or *regular >> expressions* in the filter to create the rules to blacklist packages. >> Then you can associate the filter to entire products or individual >> repositories within any product. > > > filter rules can be created using regular expression. So I created this > exclude filter rule: > > > (?!kmod-libs)(kmod-.+) > > This should match all kmod-* packages except kmod and kmod-libs. > Unfortunatelly this does not work and all kmod-* packages are included. > > Does anyone has any idea why regex does not work? Or perhaps there is > another way to approach this issue? > > Edgars >