Issue #15496 has been reported by Ken Johnson.
----------------------------------------
Bug #15496: Puppet incorrectly determining offset for certain timezones
https://projects.puppetlabs.com/issues/15496
Author: Ken Johnson
Status: Unreviewed
Priority: Normal
Assignee:
Category: agent
Target version:
Affected Puppet version: 2.7.12
Keywords:
Branch:
One of our customers reports this:
"I believe I have just discovered a bug in PE's timezone handling that seems to
impact at least reporting, but may be more widespread.
We have a few systems in our environment that have their timezone set to "VET"
- Venezuela Standard Time. The offset for VET is -04:30 all year round (no DST
observance).
If you run date -R and date -Ru on the systems it shows the correct time offset:
# date -R ; date -uR
Thu, 12 Jul 2012 11:45:30 -0430
Thu, 12 Jul 2012 16:15:30 +0000
However, I noticed that this group of systems was always listed first on the PE
console and, more than that, their report time is always in the future. I have
tried the PE console at both UTC and adjusted to display in US/Eastern. Doing
some more digging, it appears that the problem is client-side during the Puppet
report generation. If you look at the
/var/opt/lib/pe-puppet/state/last_run_report.yaml file the offset reported is
wrong:
logs:
- !ruby/object:Puppet::Util::Log
level: !ruby/sym notice
message: Finished catalog run in 0.07 seconds
source: Puppet
tags:
- notice
time: 2012-07-12 11:29:43.143028 -05:30
If Puppet (or Ruby) is determining the offset is incorrectly -05:30 instead of
-04:30 I believe that this would account for the difference.
The PE Console shows the run occuring at 16:59 UTC. However, /var/log/messages
on the client concurs that the Puppet agent run ran at 11:29 local time (VET),
which is the reported -5:30 offset, not the expected -4:30 offset.
I am seeing the correct behavior for more common timezones such as US/Eastern,
US/Pacific, etc. At the moment this appears limited only to systems in VET.
The client systems in question are running PE 2.5.1 on RHEL 5.7, 64-bit.
Thanks!"
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.