Jira (FACT-718) Allow for disabling certain facts within Facter

6 views
Skip to first unread message

Robin Bowes (JIRA)

unread,
Dec 29, 2014, 3:40:26 PM12/29/14
to puppe...@googlegroups.com
Robin Bowes commented on New Feature FACT-718
 
Re: Allow for disabling certain facts within Facter

Additionally, I'd like to disable specific ec2 facts.

For example, ec2_iam* should not be reported as facts, and ec2_network_interface_macs* are just clutter in an environment with an high turnover of nodes.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a)
Atlassian logo

Rob Reynolds (JIRA)

unread,
Feb 9, 2015, 6:32:38 PM2/9/15
to puppe...@googlegroups.com
Rob Reynolds commented on New Feature FACT-718

Peter Huene Paul just pointed this out... is this on the radar at all? cc stack72

Peter Huene (JIRA)

unread,
Feb 9, 2015, 6:35:46 PM2/9/15
to puppe...@googlegroups.com
Peter Huene commented on New Feature FACT-718

This wasn't on the radar for Facter 3 at least. We should look into the best way of filtering out undesirable facts that just clutter things up.

Kylo Ginsberg (JIRA)

unread,
Feb 9, 2015, 6:50:39 PM2/9/15
to puppe...@googlegroups.com
Kylo Ginsberg assigned an issue to Unassigned
 
Facter / New Feature FACT-718
Change By: Kylo Ginsberg
Assignee: Eric Sorenson
Scrum Team: Client Platform

Kylo Ginsberg (JIRA)

unread,
Feb 9, 2015, 6:50:49 PM2/9/15
to puppe...@googlegroups.com
Kylo Ginsberg commented on New Feature FACT-718
 
Re: Allow for disabling certain facts within Facter

This needs some design/requirements work, but marking as "Ready for Engineering" so it shows up on our scrum boards

stack72 (JIRA)

unread,
Feb 9, 2015, 6:56:48 PM2/9/15
to puppe...@googlegroups.com
stack72 commented on New Feature FACT-718

Thanks for getting in touch about this. By solving this issue, we would avoid situations like this:

https://t.co/9oEwsMuMKG

By collecting all these facts (that I am personally not interested in), my puppetdb is working harder than it should be. This is a great article on why I started looking into this topic

https://t.co/DahIH9VeX6

Jon Bidinger (JIRA)

unread,
May 19, 2015, 2:34:22 PM5/19/15
to puppe...@googlegroups.com
Jon Bidinger commented on New Feature FACT-718

In addition to the large set of returned values, this can take a long time to complete.

fact='partitions', resolution='<anonymous>': 54852.08ms

This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d)
Atlassian logo

Jon McKenzie (JIRA)

unread,
Dec 3, 2015, 4:35:03 PM12/3/15
to puppe...@googlegroups.com
Jon McKenzie commented on New Feature FACT-718

I'm also having ENC issues due to the shear number of dynamically generate facts. In my specific case, it's EC2 interface facts (about 10 per mac address). With lots of interfaces and instances, this is causing some slowdowns

This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Atlassian logo

Arnaud Morin (JIRA)

unread,
Dec 22, 2015, 7:03:03 AM12/22/15
to puppe...@googlegroups.com
Arnaud Morin commented on New Feature FACT-718

Hi,

I have exactly the same issue, I definitely need a way to filter facts!

Adam Bottchen (JIRA)

unread,
Dec 22, 2015, 7:09:03 PM12/22/15
to puppe...@googlegroups.com
Adam Bottchen updated an issue
 
Change By: Adam Bottchen
CS Priority: Needs Priority

Kylo Ginsberg (JIRA)

unread,
Dec 22, 2015, 7:36:02 PM12/22/15
to puppe...@googlegroups.com
Kylo Ginsberg commented on New Feature FACT-718
 
Re: Allow for disabling certain facts within Facter

Hello watchers of this ticket,

This has come up more often of late, both in this ticket and anecdotally, so there's clearly a general need. There's also some need for discussion to make sure we come up with something usable and maintainable. So please do chime in with any design thoughts here.

For starters I want to test three assertions:

  1. there's value to reducing what facts are collected in at least two arenas: a) resource consumption on the agent, and b) resource consumption on the master (pdb, etc). I'm calling this out to highlight that a solution where, say, we collected all the facts but blacklisted what we report, would not be a good solution. We want to not even collect unwanted facts.
  2. we'd prefer a blacklist to a whitelist (all comments here have been for a blacklist, but one idea on the puppet-users thread mentioned a whitelist/blacklist hybrid).
  3. we could blacklist top-level structured facts (e.g. ec2, partitions, blockdevices) and don't need more fine-grained blacklisting (and a top-level structured fact being blacklisted should imply that any associated legacy flat facts are also blacklisted). I think this will be more practical to implement, esp if we want to honor the use case that we keep resource consumption on the agent low.

Jon Bidinger (JIRA)

unread,
Dec 22, 2015, 7:44:03 PM12/22/15
to puppe...@googlegroups.com
Jon Bidinger commented on New Feature FACT-718

For my use cases, I can agree with all three assertions.

Charlie Sharpsteen (JIRA)

unread,
Jan 5, 2016, 6:30:03 PM1/5/16
to puppe...@googlegroups.com
Charlie Sharpsteen updated an issue
 
Change By: Charlie Sharpsteen
CS Priority: Needs Priority Reviewed
CS Impact: In Facter 2.x, core facts could be disabled globally by removing the relevant .rb files. However, with Facter 3.x, this is no longer possible. Additionally, there are facts, such as network drives, which may be expensive to run on certain systems. The ability to conditionally disable core and custom facts would provide a workaround to both problems.

Michael Smith (JIRA)

unread,
Feb 17, 2016, 6:41:05 PM2/17/16
to puppe...@googlegroups.com
Michael Smith updated an issue
Change By: Michael Smith
Sprint: Client Triage

Steve Barlow (JIRA)

unread,
Mar 2, 2016, 6:38:04 PM3/2/16
to puppe...@googlegroups.com
Steve Barlow assigned an issue to Eric Sorenson
Change By: Steve Barlow
Assignee: Eric Sorenson

Eric Sorenson (JIRA)

unread,
Mar 2, 2016, 6:38:05 PM3/2/16
to puppe...@googlegroups.com
Eric Sorenson updated an issue
Change By: Eric Sorenson
Fix Version/s: FACT 3.2.0

Kylo Ginsberg (JIRA)

unread,
Mar 2, 2016, 6:53:04 PM3/2/16
to puppe...@googlegroups.com
Kylo Ginsberg updated an issue
Change By: Kylo Ginsberg
Sprint: Client Triage

Michael Smith (JIRA)

unread,
Apr 20, 2016, 1:17:03 AM4/20/16
to puppe...@googlegroups.com
Michael Smith updated an issue
Change By: Michael Smith
Discussed here: https://groups.google.com/forum/#!topic/puppet-users/SCfVE1kpTpk

With version 1.7 facts were added for each mounted volume.  When run on a server attached to a SAN with say 1,000 volumes mounted, end up with over 3,000 facts (and chocking our ENC).

Would like the ability to disable these facts via a configuration file.


----

A temporary work-around for this in Facter 3 (structured facts) is to declare a custom fact with the same name, which will mask default facts. I'm not sure how to apply that for dynamically-named facts.
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Corey Hickey (JIRA)

unread,
May 18, 2016, 1:25:03 PM5/18/16
to puppe...@googlegroups.com
Corey Hickey commented on New Feature FACT-718
 
Re: Allow for disabling certain facts within Facter

I agree as well. I found out about this ticket when tracking down "suspicious" connection attempts to 169.254.169.254 that turned out to be caused by EC2 detection. Being able to disable known-unwanted functionality would be useful.

Thanks,
Corey

Eric Sorenson (JIRA)

unread,
Jun 8, 2016, 6:27:08 PM6/8/16
to puppe...@googlegroups.com
Eric Sorenson commented on New Feature FACT-718

There's an ongoing thread on the puppet-dev list about this:

https://groups.google.com/d/topic/puppet-dev/bebmBUyRETg/discussion

Could the watchers on this ticket take a minute to read through that and chime in if there's anything that seems wrong and/or crazy there? Alternately, a +1 with info about your must-have use cases would be super helpful.

Branan Riley (JIRA)

unread,
Jul 11, 2016, 6:57:07 PM7/11/16
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
Jul 11, 2016, 6:57:08 PM7/11/16
to puppe...@googlegroups.com
Branan Riley assigned an issue to Unassigned
Change By: Branan Riley
Assignee: Eric Sorenson

Steve Barlow (JIRA)

unread,
Jul 18, 2016, 1:08:07 PM7/18/16
to puppe...@googlegroups.com
Steve Barlow updated an issue
Change By: Steve Barlow
Sprint: Client 2016-08-10

Branan Riley (JIRA)

unread,
Jul 27, 2016, 12:33:07 PM7/27/16
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Sprint: Client 2016-08- 10 24

David Kramer (JIRA)

unread,
Aug 1, 2016, 12:59:09 PM8/1/16
to puppe...@googlegroups.com
David Kramer updated an issue
Change By: David Kramer
Fix Version/s: FACT 3.4.0

Branan Riley (JIRA)

unread,
Aug 3, 2016, 12:18:05 PM8/3/16
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Fix Version/s: FACT 3.5.0

Steve Barlow (JIRA)

unread,
Aug 10, 2016, 12:28:12 PM8/10/16
to puppe...@googlegroups.com
Steve Barlow updated an issue
Change By: Steve Barlow
Sprint: Client 2016- 08 09 - 24 07

Maggie Dreyer (JIRA)

unread,
Aug 15, 2016, 12:20:04 PM8/15/16
to puppe...@googlegroups.com
Maggie Dreyer updated an issue
Change By: Maggie Dreyer
Sprint: Client 2016- 09 08 - 07 24

Maggie Dreyer (JIRA)

unread,
Aug 15, 2016, 12:21:12 PM8/15/16
to puppe...@googlegroups.com
Maggie Dreyer assigned an issue to Maggie Dreyer
Change By: Maggie Dreyer
Assignee: Maggie Dreyer

Phong Ly (JIRA)

unread,
Aug 17, 2016, 7:31:04 PM8/17/16
to puppe...@googlegroups.com
Phong Ly updated an issue
Change By: Phong Ly
QA Risk Assessment: High
QA Status: Reviewed

Maggie Dreyer (JIRA)

unread,
Aug 19, 2016, 1:37:05 PM8/19/16
to puppe...@googlegroups.com
Maggie Dreyer updated an issue
Change By: Maggie Dreyer
Sprint: Client 2016-08-24

Maggie Dreyer (JIRA)

unread,
Aug 19, 2016, 1:37:05 PM8/19/16
to puppe...@googlegroups.com
Maggie Dreyer updated an issue
Change By: Maggie Dreyer
Sprint: Client 2016-09-07

Geoff Nichols (JIRA)

unread,
Sep 6, 2016, 8:56:03 PM9/6/16
to puppe...@googlegroups.com
Geoff Nichols updated an issue
Change By: Geoff Nichols
Team: Agent & Platform Support
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

David Kramer (JIRA)

unread,
Sep 7, 2016, 12:10:08 PM9/7/16
to puppe...@googlegroups.com
David Kramer updated an issue
Change By: David Kramer
Sprint: Client 2016-09-07 , Client 2016-09-21

Geoff Nichols (JIRA)

unread,
Sep 8, 2016, 12:11:04 AM9/8/16
to puppe...@googlegroups.com
Geoff Nichols updated an issue
Change By: Geoff Nichols
Sprint: Client 2016-09-07,  Client  APS  2016-09-21

Glenn Sarti (JIRA)

unread,
Sep 13, 2016, 3:08:04 PM9/13/16
to puppe...@googlegroups.com
Glenn Sarti assigned an issue to Glenn Sarti
Change By: Glenn Sarti
Assignee: Glenn Sarti

Glenn Sarti (JIRA)

unread,
Sep 13, 2016, 6:57:04 PM9/13/16
to puppe...@googlegroups.com

Glenn Sarti (JIRA)

unread,
Sep 14, 2016, 4:27:07 PM9/14/16
to puppe...@googlegroups.com

Glenn Sarti (JIRA)

unread,
Sep 14, 2016, 4:27:08 PM9/14/16
to puppe...@googlegroups.com
Glenn Sarti commented on New Feature FACT-718

FACT-1507 has been raised to address acceptance tests.

Glenn Sarti (JIRA)

unread,
Sep 14, 2016, 4:34:09 PM9/14/16
to puppe...@googlegroups.com

Glenn Sarti (JIRA)

unread,
Sep 14, 2016, 5:57:07 PM9/14/16
to puppe...@googlegroups.com

Glenn Sarti (JIRA)

unread,
Sep 14, 2016, 5:58:04 PM9/14/16
to puppe...@googlegroups.com
Glenn Sarti assigned an issue to qa
 
Change By: Glenn Sarti
Status: Ready for  CI  Test
Assignee: Glenn Sarti qa

Glenn Sarti (JIRA)

unread,
Sep 19, 2016, 11:36:04 AM9/19/16
to puppe...@googlegroups.com
Glenn Sarti assigned an issue to Stan Duffy
Change By: Glenn Sarti
Assignee: qa Stan Duffy

Maggie Dreyer (JIRA)

unread,
Sep 20, 2016, 12:43:40 PM9/20/16
to puppe...@googlegroups.com
Maggie Dreyer updated an issue

Some facts are blockable in groups, as described in the fact schema. Adding one of these groups to the config file list element `blocklist` will not be resolved the next time Facter is run. This is useful to block facts that are very expensive to resolve, or even completely broken, if they are not needed by the user.

Example:

facts :

{ blocklist : [ "EC2", "file system" ] }

If this block is present in the config file, EC2 facts and file system facts (e.g. mountpoints, partitions) will not be resolved.

This feature is currently enabled for only a small subset of facts. If a fact has a `blockgroup` listed in its description, it can be blocked with this feature, along with all the other facts in that group. Blocking only subsets of groups is not supported.

Change By: Maggie Dreyer
Release Notes Summary: This allows the user to specify in the config file a list of fact groups that will be prevented from resolving the next time Facter runs.
Release Notes: New Feature

Maggie Dreyer (JIRA)

unread,
Sep 20, 2016, 12:49:12 PM9/20/16
to puppe...@googlegroups.com
Maggie Dreyer updated an issue
Change By: Maggie Dreyer
Comment: Some facts can now be blocked via a list in the config file:


facts : {
    blocklist : [ "EC2", "file system" ]
}

The above block would prevent the EC2 facts and the file system facts (e.g. mountpoints, partitions) from being resolved the next time Facter runs. This is useful for blocking facts which are either expensive to collect, or whose collection causes issues on a given system, if the user does not need to use the fact values.

This feature is not enabled for all facts. If a fact has a `blockgroup` field in its schema description, it can be blocked using the above list, along with all the other facts in that group. Blocking subsets of groups is not supported.

Maggie Dreyer (JIRA)

unread,
Sep 20, 2016, 12:49:16 PM9/20/16
to puppe...@googlegroups.com
Maggie Dreyer updated an issue

Some facts can now be blocked via a list in the config file:

facts :

{ blocklist : [ "EC2", "file system" ] }

The above block would prevent the EC2 facts and the file system facts (e.g. mountpoints, partitions) from being resolved the next time Facter runs. This is useful for blocking facts which are either expensive to collect, or whose collection causes issues on a given system, if the user does not need to use the fact values.

This feature is not enabled for all facts. If a fact has a `blockgroup` field in its schema description, it can be blocked using the above list, along with all the other facts in that group. Blocking subsets of groups is not supported.

Maggie Dreyer (JIRA)

unread,
Sep 20, 2016, 12:51:05 PM9/20/16
to puppe...@googlegroups.com
Maggie Dreyer updated an issue
Change By: Maggie Dreyer
Comment: Some facts are blockable in groups, as described in the fact schema. Adding one of these groups to the config file list element `blocklist` will not be resolved the next time Facter is run. This is useful to block facts that are very expensive to resolve, or even completely broken, if they are not needed by the user.

Example:

facts : {
    blocklist : [ "EC2", "file system" ]
}

If this block is present in the config file, EC2 facts and file system facts (e.g. mountpoints, partitions) will not be resolved.

This feature is currently enabled for only a small subset of facts. If a fact has a `blockgroup` listed in its description, it can be blocked with this feature, along with all the other facts in that group. Blocking only subsets of groups is not supported.

Maggie Dreyer (JIRA)

unread,
Sep 20, 2016, 12:51:05 PM9/20/16
to puppe...@googlegroups.com
Maggie Dreyer updated an issue
Change By: Maggie Dreyer
Release Notes Summary: This allows Some facts are blockable in groups, as described in  the  user  fact schema. Adding one of these groups  to  specify in  the config file  a  list  of fact groups that  element `blocklist`  will  not  be  prevented from resolving  resolved  the next time Facter  runs  is run .  This is useful to block facts that are very expensive to resolve, or even completely broken, if they are not needed by the user.

Example:
facts : { blocklist : [ "EC2", "file system" ] }
If this block is present in the config file, EC2 facts and file system facts (e.g. mountpoints, partitions) will not be resolved.
This feature is currently enabled for only a small subset of facts. If a fact has a `blockgroup` listed in its description, it can be blocked with this feature, along with all the other facts in that group. Blocking only subsets of groups is not supported.

Geoff Nichols (JIRA)

unread,
Oct 22, 2016, 12:03:05 AM10/22/16
to puppe...@googlegroups.com

Claudia Petty (Jira)

unread,
Jun 21, 2023, 8:43:04 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
Change By: Claudia Petty
Labels: new-feature redmine
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages