Created attachment 1381807 [details] File contains contents ansible-playbook log and contents of all.yml Description of problem: Though ntp_service_enabled explicitly set to true, the task 'ceph-common : start the ntp service' getting skipped. Version-Release number of selected component (if applicable): ceph-ansible-3.0.16-1.el7cp.noarch How reproducible: Always Steps to Reproduce: 1. Configure ceph-ansible to initialize a cluster 2. Run ansible-playbook site.yml Actual results: the task 'ceph-common : start the ntp service' getting skipped TASK [ceph-common : start the ntp service] skipping: [magna040] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true} Expected results: the task 'ceph-common : start the ntp service' must not be skipped. Additional info: To observe the behavior, ntp package was uninstalled on all the nodes, packages were installed sure playbook run, but start the ntp service task was skipped.
it gets skipped if the ntpd service has already been started use "systemctl status ntpd" to check please include output of above command when reopening this
Hi, Before running playbook, existing ntp packages were uninstalled and thus it was made sure the ntpd service was not running. However ntp packages were installed during playbook run (Above attached file contains the respective log), service was not started $ sudo systemctl status ntpd ● ntpd.service - Network Time Service Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled; vendor preset: disabled) Active: inactive (dead) since Mon 2018-01-15 02:59:51 UTC; 1 day 9h ago Main PID: 20858 (code=exited, status=0/SUCCESS) Jan 10 14:16:11 magna029 ntpd[20858]: 0.0.0.0 c614 04 freq_mode Jan 10 14:16:12 magna029 ntpd[20858]: 0.0.0.0 c618 08 no_sys_peer Jan 10 14:31:55 magna029 ntpd[20858]: 0.0.0.0 c612 02 freq_set kernel -27.302 PPM Jan 10 14:31:55 magna029 ntpd[20858]: 0.0.0.0 c61c 0c clock_step -0.025773 s Jan 10 14:31:56 magna029 ntpd[20858]: 0.0.0.0 c618 08 no_sys_peer Jan 10 14:47:32 magna029 ntpd[20858]: 0.0.0.0 c612 02 freq_set kernel -27.608 PPM Jan 10 14:47:32 magna029 ntpd[20858]: 0.0.0.0 c615 05 clock_sync Jan 15 02:59:51 magna029 ntpd[20858]: ntpd exiting on signal 15 Jan 15 02:59:51 magna029 systemd[1]: Stopping Network Time Service... Jan 15 02:59:51 magna029 systemd[1]: Stopped Network Time Service. Re-opening the BZ, please let me know if anything else needed. Regards, Vasishta AQE, Ceph
I've pushed this commit https://github.com/ceph/ceph-ansible/commit/4c852018fca7bf06e3983046a29a84a788eb211a to fix this.
I've tried with ceph-ansible-3.0.19-1.el7cp.noarch on rhel cluster..it works fine now.
Verfied that the task 'ceph-common : start the ntp service' is not getting skipped by ceph-ansible..works fine on 2.5 deployments of rhel and ubuntu moving to verfied state
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0340