New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use chronyd instead of ntpdate #5705
Use chronyd instead of ntpdate #5705
Conversation
Also requires ManageIQ/linux_admin#146 |
Marking as WIP until LinuxAdmin PR is merged |
Looks good once the LinuxAdmin change is in. Nice work @carbonin |
Look at all the 鉁傦笍 馃敟 (deletions) |
@ntp_settings = ntp_settings | ||
end | ||
|
||
def apply_ntp_server_settings(settings) | ||
return unless Sys::Platform::IMPL == :linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want/need a log message that says we don't support this platform?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, I just tried it keep it as close to what was being done here.
This will probably only be an issue when running in development (not on an appliance) right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
馃憤 keep as is
e00a4dd
to
f63db23
Compare
@miq-bot rm_label wip |
LGTM |
馃憤 LGTM |
f63db23
to
d4b1d47
Compare
ntpdate is to be retired and chronyd is the new default time sync daemon on Centos 7 and has been running on the appliance along side our code running ntpdate. This opens up the possibility of trying to sync with both the timeservers configured in `/etc/chrony.conf` which have always been set to the defaults and `/etc/ntp.conf` which is what is edited when the user changes ntp servers. Also the motivation behind using a custom script which ran ntpdate was to have the schedule worker protected from large jumps in time by dropping an exit file and waiting for it to exit. The schedule worker has not responded to the exit file since commit 85d34a9a869ce2eefcf69d7c58644a24cc2359ba was merged in 2012. https://bugzilla.redhat.com/show_bug.cgi?id=1275677
d4b1d47
to
ffcf265
Compare
<github_pr_commenter_batch />Some comments on commits carbonin/manageiq@3ba88b3~...ffcf265 |
Checked commits carbonin/manageiq@3ba88b3~...ffcf265 with ruby 2.2.3, rubocop 0.34.2, and haml-lint 0.13.0 spec/models/miq_server/rhn_mirror_spec.rb
|
^ I wish |
Use chronyd instead of ntpdate
Use chrony instead of ntpdate ntpdate is to be retired and chronyd is the new default time sync daemon on Centos 7 and has been running on the appliance along side our code running ntpdate. This opens up the possibility of trying to sync with both the timeservers configured in `/etc/chrony.conf` which have always been set to the defaults and `/etc/ntp.conf` which is what is edited when the user changes ntp servers. Also the motivation behind using a custom script which ran ntpdate was to have the schedule worker protected from large jumps in time by dropping an exit file and waiting for it to exit. The schedule worker has not responded to the exit file since commit 85d34a9a was merged in 2012. Upstream PR: ManageIQ#5705 Two empty commits in upstream not cherry-picked to this branch. The other cherry-picks were clean. https://bugzilla.redhat.com/show_bug.cgi?id=1289321 See merge request !609
ntpdate
is to be retired and chronyd is the new default time sync daemon on Centos 7 and has been running on the appliance along side our code runningntpdate
. This opens up the possibility of trying to sync with both the timeservers configured in/etc/chrony.conf
which have always been set to the defaults and/etc/ntp.conf
which is what is edited when the user changes ntp servers.Also the motivation behind using a custom script which ran
ntpdate
was to have the schedule worker protected from large jumps in time by dropping an exit file and waiting for it to exit.The schedule worker has not responded to the exit file since commit 85d34a9a869ce2eefcf69d7c58644a24cc2359ba was merged in 2012.
@jrafanie @gtanzillo
馃敟 鉁傦笍 ??
https://bugzilla.redhat.com/show_bug.cgi?id=1275677