Bug 875865 - NTP service stopped after stopping network service
Summary: NTP service stopped after stopping network service
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: ntp
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-12 17:23 UTC by Igor Lvovsky
Modified: 2012-11-20 08:06 UTC (History)
14 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-20 08:06:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
ntpd failure log (220.06 KB, text/plain)
2012-11-12 17:29 UTC, Igor Lvovsky
no flags Details

Description Igor Lvovsky 2012-11-12 17:23:43 UTC
Description of problem:
 NTP service crashed after stopping network service

Version-Release number of selected component (if applicable):
ntp-4.2.6p5-5.fc18.x86_64

How reproducible:
100%

Steps to Reproduce:
1. run ntp service
2. stop network service 
3. ntp service will fail
  
Actual results:
ntp service will fail

Expected results:
ntp service shouldn't fail

Additional info:

Comment 1 Igor Lvovsky 2012-11-12 17:29:29 UTC
Created attachment 643642 [details]
ntpd failure log

--- snip from the log ----

Nov 11 16:35:20 dhcp-1-165 ntpd[14399]: 0.0.0.0 c615 05 clock_sync
Nov 11 16:37:23 dhcp-1-165 systemd[1]: Stopping LSB: Bring up/down networking...
Nov 11 16:37:23 dhcp-1-165 systemd[1]: Stopping Network Time Service...
Nov 11 16:37:23 dhcp-1-165 ntpd[14399]: ntpd exiting on signal 15
Nov 11 16:37:23 dhcp-1-165 systemd[1]: Starting Network Time Service...
Nov 11 16:37:23 dhcp-1-165 ntpd[15124]: ntpd 4.2.6p5 Wed Oct 24 16:46:54 UTC 2012 (1)
Nov 11 16:37:23 dhcp-1-165 ntpd[15125]: proto: precision = 0.069 usec

---- snip from the log ----

In this particular log you can see that NTP raise up again because it explicitly required by vdsmd service.

Comment 2 Miroslav Lichvar 2012-11-13 11:46:07 UTC
It seems the ntpd service didn't crash, but was restarted for some reason. It happens without vdsmd service too.

Looking at the systemctl dot output I don't see anything suspicious, let's see if systemd maintainers know what is going on.

Comment 3 Michal Schmidt 2012-11-13 12:45:42 UTC
Both chrony and ntp ship hooks in /etc/dhcp/dhclient.d/ and /etc/NetworkManager/dispatcher.d/. Is it possible that some of the hooks is the cause?

Comment 4 Miroslav Lichvar 2012-11-13 13:12:19 UTC
Good point, Michal. That would explain it.

Igor, do you see the restart of the ntp service when PEERNTP=no is added to /etc/sysconfig/network? That would be expected behavior and not a bug.

Comment 5 Igor Lvovsky 2012-11-19 21:14:52 UTC
(In reply to comment #4)
> Good point, Michal. That would explain it.
> 
> Igor, do you see the restart of the ntp service when PEERNTP=no is added to
> /etc/sysconfig/network? That would be expected behavior and not a bug.

No, with PEERNTP=no ntpd doesn't restart

Comment 6 Miroslav Lichvar 2012-11-20 08:06:51 UTC
Ok, thanks. Let's close this as NOTABUG.


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