Puppet: System Administration Automated

Support

Ticket #569 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

Dynamic facts always force a recompile

Reported by: luke Assigned to: luke
Priority: highest Milestone: elmo
Component: library Version: 0.22.3
Severity: critical Keywords: facter puppetd
Cc: Triage Stage: Needs design decision
Attached Patches: None Complexity: Medium

Description

puppetd now checks to see if facts have changed, and if they have, it recompiles without checking if the server-side configuration has changed.

This works fine in theory, except that Facter now includes multiple dynamic facts, including information about memory and swap, which are always going to change. This means that for those platforms that support these facts, the configuration will get recompiled every time.

Change History

(in reply to: ↑ description ) 03/31/07 22:48:13 changed by steven.jenkins

Replying to luke:

puppetd now checks to see if facts have changed, and if they have, it recompiles without checking if the server-side configuration has changed. This works fine in theory, except that Facter now includes multiple dynamic facts, including information about memory and swap, which are always going to change. This means that for those platforms that support these facts, the configuration will get recompiled every time.

It isn't clear to me that this is a defect vs an enhancement request. Dynamic facts might actual kick off an actual change in a configuration (e.g., if memory utilization crosses a certain threshold, then I don't want the 'super-sized' version of 'big-fat-memory-hog' to run; instead, I want the 'diet-right' version of 'slim-and-trim' to run instead). Being able to specify this type of difference is a feature enhancement, I suspect.

In the meantime, you could add a 'ignore dynamic facts' flag or some such and specifically list the properties that would not kick off a recompile (e.g., '--ignore-dynamic-facts=memory,swap').

04/03/07 19:25:09 changed by luke

  • status changed from new to assigned.

Testing the new bugs list.

04/05/07 03:24:21 changed by luke

  • specification set to Unnecessary.
  • patch set to None.
  • complexity set to Medium.
  • approval set to Unnecessary.
  • compatibility set to Limited.
  • stage set to Needs design decision.

05/09/07 23:02:26 changed by luke

  • milestone set to elmo.

05/15/07 02:11:22 changed by luke

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in [2516].