This project is now read‑only. Starting Monday, February 2, please use Jira Cloud for all bug tracking management.
Bug 1534839 - [ceph-ansible] - 'start the ntp service' task getting skipped
Summary: [ceph-ansible] - 'start the ntp service' task getting skipped
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 2.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: 2.5
Assignee: Sébastien Han
QA Contact: subhash
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-16 04:21 UTC by Vasishta
Modified: 2018-02-21 19:48 UTC (History)
10 users (show)

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
Clone Of:
Environment:
Last Closed: 2018-02-21 19:48:14 UTC
Embargoed:


Attachments (Terms of Use)
File contains contents ansible-playbook log and contents of all.yml (638.97 KB, text/plain)
2018-01-16 04:21 UTC, Vasishta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0340 0 normal SHIPPED_LIVE Red Hat Ceph Storage 2.5 bug fix and enhancement update 2018-02-22 00:50:32 UTC

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


Note You need to log in before you can comment on or make changes to this bug.