Puppet: System Administration Automated

Support

Ticket #883 (assigned defect)

Opened 1 year ago

Last modified 9 months ago

Puppet configuration run time calculation not 'internal'

Reported by: jtimberman Assigned to: luke (accepted)
Priority: lowest Milestone: unplanned
Component: unknown Version: 0.23.2
Severity: trivial Keywords:
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Hard

Description

I'm not sure how to summarize clearly, so I will expound here. From puppetd --test:

notice: Finished configuration run in 18252.08 seconds

It took less than a minute to run, probably. We just updated our config with an NTP module now that the NTP server is online. Right after I logged in:

$ date Mon Oct 29 17:03:58 UTC 2007

$ puppetd --test ... notice: //basenode/ntp/Service[ntpd]/ensure: ensure changed 'stopped' to 'running' ... notice: Finished configuration run in 18252.08 seconds

$ date Mon Oct 29 22:08:36 UTC 2007

It looks like puppet checks the timestamp of the system before it runs, and then again afterward to calculate the run time, rather than timing everything internally?

Change History

10/29/07 23:39:41 changed by luke

  • owner changed from community to luke.
  • status changed from new to assigned.

Hmm. Your point is actually unrelated to the ticket, which is about adding something in that got removed in the development I did.

You're right about the timing, though -- it does compare timestamps.

How would one even time things internally? I dunno.

10/29/07 23:43:50 changed by jtimberman

I haven't poked around in the puppet source to see what you're doing, but is there possibly a way to create an object that calculates the process run time after said object is created until the end of the process when the "Finished configuration run" notice is called?

11/19/07 20:44:31 changed by tim

  • priority changed from normal to lowest.
  • complexity changed from Unknown to Hard.
  • stage changed from Unreviewed to Accepted.
  • severity changed from normal to trivial.
  • milestone set to unplanned.

04/24/08 07:07:54 changed by luke

  • component changed from library to unknown.