SatelliteQE / automation-tools

A set of tools to help to automate testing Foreman with Robottelo (https://github.com/SatelliteQE/robottelo)
GNU General Public License v3.0
16 stars 33 forks source link

set UTC time to avoid time jumps #831

Closed swadeley closed 4 years ago

swadeley commented 4 years ago

Chronyd jumps the time in the first few seconds after startup. This can interrupt yum transactions. Setting the time to UTC rather than local can reduce this.

swadeley commented 4 years ago
lpramuk commented 4 years ago

Nice! We yet need to check with what TZ are VMs being created. So that OS and HW setting match.

lpramuk commented 4 years ago
 <clock offset="utc">
  <timer name="rtc" tickpolicy="catchup"/>
  <timer name="pit" tickpolicy="delay"/>
  <timer name="hpet" present="no"/>
 </clock>''

OK. HW clocks ticks in UTC.

I wonder if there is option to set hwclock TZ to UTC directly by timezone America/New_York instead of messing with it later in %post script

And there is: timezone America/New_York --utc

I prefer this way instead in postscript.

swadeley commented 4 years ago

Nice! We yet need to check with what TZ are VMs being created. So that OS and HW setting match.

I thought time zone setting is just off-set to system clock? The clock will not jump when you change time zone settings.

swadeley commented 4 years ago

And there is: timezone America/New_York --utc

I prefer this way instead in postscript.

I am not familiar with kickstart commands but looks like that will still solve my issue.

swadeley commented 4 years ago

@lpramuk change made.

Thank you

lpramuk commented 4 years ago

@swadeley please rebase your PR

swadeley commented 4 years ago

@swadeley please rebase your PR

Yes sir! I have done it.

swadeley commented 4 years ago

thank you