Comment 0 for bug 1802538

Revision history for this message
Alex Schultz (alex-schultz) wrote : chrony setup does not restart chrony to update the config if it is already running

The ansible is not properly restarting the chronyd process if it's already running on initial install. This can lead to NTP time synced failures in the deployment.

b'TASK [chrony : Install chrony configuration file] *************************************************************************************************************'
b'changed: [undercloud]'
b''
b'TASK [chrony : Ensure chronyd is running] *********************************************************************************************************************'
b'ok: [undercloud]'
b''
b'TASK [Ensure system is NTP time synced] ***********************************************************************************************************************'
b'fatal: [undercloud]: FAILED! => {"changed": true, "cmd": ["chronyc", "waitsync", "20"], "delta": "0:03:10.180514", "end": "2018-11-09 16:42:27.069963", "msg": "non-zero return code", "rc": 1, "start": "2018-11-09 16:39:16.889449", "stderr": "", "stderr_lines": [], "stdout": "try: 1, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 2, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 3, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 4, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 5, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 6, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 7, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 8, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 9, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 10, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 11, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 12, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 13, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 14, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 15, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 16, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 17, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 18, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 19, refid: 00000000, correction: 0.000000000, skew: 0.000\\ntry: 20, refid: 00000000, correction: 0.000000000, skew: 0.000", "stdout_lines": ["try: 1, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 2, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 3, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 4, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 5, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 6, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 7, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 8, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 9, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 10, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 11, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 12, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 13, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 14, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 15, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 16, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 17, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 18, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 19, refid: 00000000, correction: 0.000000000, skew: 0.000", "try: 20, refid: 00000000, correction: 0.000000000, skew: 0.000"]}'