redhat-openstack / infrared

Plugin based framework that aims to provide an easy-to-use CLI for Ansible based projects
https://infrared.readthedocs.io/en/latest/index.html
Apache License 2.0
99 stars 97 forks source link

RFE: validate that virt host machine is NTP synced #331

Closed jistr closed 6 years ago

jistr commented 6 years ago

It's not enough that we provide correct NtpServers to the overcloud Heat stack. If the setup is virtual, the VMs will get time from the hypervisor until they sync themselves via NTP. If the time is offset and there's an abrupt jump as the NTP sync takes effect, a wide variety of problems can appear. The only defense is to make sure that the virt host is NTP-synced too.

Infrared should at least validate that the virt host machine is NTP-synced, and refuse to run if it isn't.

jistr commented 6 years ago

Missing NTP sync can cause e.g. https://bugzilla.redhat.com/show_bug.cgi?id=1578849

mwhahaha commented 6 years ago

Please do not solve this in infrared as this is a deployment related problem which should be solved in tripleo since NTP/timezone is managed during the deployment. This may mask actual failures if it's done in infrared