Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira ( 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 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 "", 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 1759111 - Puppet facts exclude filter star wildcard not working as expected
Summary: Puppet facts exclude filter star wildcard not working as expected
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Fact
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: 6.10.0
Assignee: Dominik Matoulek
QA Contact: Radek Mynar
Depends On:
TreeView+ depends on / blocked
Reported: 2019-10-07 12:38 UTC by Roman Bobek
Modified: 2023-03-24 15:37 UTC (History)
8 users (show)

Fixed In Version: foreman-
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-11-16 14:08:51 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 29681 0 Normal New puppet facts exclude filter star wildcard not working as expected 2020-10-07 13:02:12 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:08:59 UTC

Description Roman Bobek 2019-10-07 12:38:51 UTC
Description of problem:
When we set an exclude filter in Administer > Settings > Provisioning > 'Exclude pattern for facts stored in satellite' and use the star wildcard, the filter is not working as expected. For example filter set as:


will also exclude facts like:


i.e. facts where the string is included in the middle of the fact and not only on the beginning. I would expect that the filter to exclude docker in the middle of the string should be written like:


How reproducible:

Steps to Reproduce:
1. On a system create custom Puppet Fact called blah_docker_blah
2. Run 'puppet agent -t' on the client to propagate the fact to Satellite
3. Navigate to Hosts > All Hosts, choose the host and click the Facts button
4. Filter the facts for docker - no result will be shown
5. Check the exclude filter in Administer > Settings > Provisioning > 'Exclude pattern for facts stored in satellite'
6. The exclude filter docker* is present there by default

Actual results:
Facts with the docker string included in the middle are filtered out.

Expected results:
Facts with the docker string included in the middle will remain reported.

Comment 5 Peter Vreman 2019-10-28 10:51:05 UTC
Part of the root cause is the fuzzy documentation/explaination how the matching is really done.

In the list is also 'lo'. But my custom facts with _localdisk_ are not filtered.

This is all vague for my as an user why are the '_docker_' fitlered but '_localdisk_' not. There must be addiational logic behind the filtering that is not explained to the user.

Comment 7 Vladimír Sedmík 2019-11-01 21:40:01 UTC
Hello Peter,
the 'lo' seems to be without any wildcard (in my default case), so perhaps that's why _localdisk_ is not filtered. But you are right some improvement in documentation should be done, for example here:

Opened new docs BZ here:

Comment 8 Melanie Corr 2019-11-07 12:32:57 UTC
hi all

I have updated the docs to reflect this bug:

I will monitor and update accordingly. 



Comment 16 Shira Maximov 2020-05-03 14:47:39 UTC
Created redmine issue from this bug

Comment 17 Brad Buckingham 2020-07-06 21:15:17 UTC
Clearing needinfo as bug 1766952 has provided modifications to the documentation to help address the observations.  That said, this bugzilla remains to provide improved behavior when wildcard characters are used.

Comment 19 Bryan Kearney 2021-05-28 10:18:30 UTC
Upstream bug assigned to dmatoule

Comment 20 Bryan Kearney 2021-05-28 10:18:33 UTC
Upstream bug assigned to dmatoule

Comment 21 Bryan Kearney 2021-07-30 12:03:14 UTC
Moving this bug to POST for triage into Satellite since the upstream issue has been resolved.

Comment 23 Radek Mynar 2021-09-27 14:11:25 UTC
I created following custom facts in /opt/puppetlabs/facter/facts.d/

#!/usr/bin/env python
data = { "abc_def_ghi" : "abcdefghi", # !
         "aaa_def_ghi" : "aaadefghi", # 1
         "abc_aab_ghi" : "abcaabghi", # 2
         "aab_def_ghi" : "aabdefghi", # 2
         "abc_def_aab" : "abcdefaab", # 2
         "abc_def_aac" : "abcdefaac", # 3
         "aaa_aab_ghi" : "aaaaabghi", # 1+2
         "abc_aab_aac" : "abcaabaac", # 2+3
         "abc_aaa_ghi" : "abcaaaghi", # !1
         "aac_def_ghi" : "aacdefghi", # !3
#filter: 1: aaa* 2: *aab* 3: *aac
for k in data:
    print "%s=%s" % (k,data[k])

Exclude filters "aaa*,*aab*,*aac" were applied correctly.

VERIFIED with Satallite 6.10 SNAP 20.0

Comment 26 errata-xmlrpc 2021-11-16 14:08:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.10 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

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