Merge "Validate ntp is running and synchronised"

This commit is contained in:
Jenkins 2016-09-09 08:40:43 +00:00 committed by Gerrit Code Review
commit 984e3860dd
1 changed files with 16 additions and 0 deletions

16
validations/ntpstat.yaml Normal file
View File

@ -0,0 +1,16 @@
---
- hosts: overcloud
vars:
metadata:
name: Verify all deployed nodes have their clock synchronised.
description: >
Each overcloud node should have their clocks synchronised.
The deployment should configure and run ntpd. This validation verifies
that it is indeed running and connected to an NPT server on all nodes.
groups:
- post-deployment
tasks:
- name: Run ntpstat
# ntpstat returns 0 if synchronised and non-zero otherwise:
command: ntpstat