Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1534839

Summary: [ceph-ansible] - 'start the ntp service' task getting skipped
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: subhash <vpoliset>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.5CC: adeza, agunn, aschoen, ceph-eng-bugs, gmeno, hnallurv, kdreyer, nthomas, sankarshan, vpoliset
Target Milestone: rcKeywords: Reopened
Target Release: 2.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.0.18-1.el7cp Ubuntu: ceph-ansible_3.0.18-2redhat1 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 19:48:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File contains contents ansible-playbook log and contents of all.yml none

Description Vasishta 2018-01-16 04:21:23 UTC
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.

Comment 3 Christina Meno 2018-01-16 10:06:44 UTC
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

Comment 4 Vasishta 2018-01-16 12:50:34 UTC
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

Comment 5 Sébastien Han 2018-01-16 16:50:43 UTC
I've pushed this commit https://github.com/ceph/ceph-ansible/commit/4c852018fca7bf06e3983046a29a84a788eb211a to fix this.

Comment 8 subhash 2018-01-23 10:16:54 UTC
I've tried with ceph-ansible-3.0.19-1.el7cp.noarch on rhel cluster..it works fine now.

Comment 9 subhash 2018-01-25 14:55:01 UTC
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

Comment 12 errata-xmlrpc 2018-02-21 19:48:14 UTC
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