Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert to 'suseInsertService chronyd' #54 #121

Conversation

phillxnet
Copy link
Member

Update our chronyd config via Kiwi-ng build-in. This brings us closer to our JeOS Leap 15.3 Appliance upstream. Dropping our prior my-hand additional server configs.

Fixes #54

Update our chronyd config via Kiwi-ng build-in.
This brings us closer to our JeOS Leap 15.3 Appliance
upstream. Dropping our prior my-hand additional server
configs.
@phillxnet
Copy link
Member Author

Testing

before this change we had:

localhost:~ # chronyc tracking
Reference ID    : C2752F2A (ntp02.oal.ul.pt)
Stratum         : 3
Ref time (UTC)  : Sun Jul 31 13:17:52 2022
System time     : 0.000063746 seconds slow of NTP time
Last offset     : -0.000217909 seconds
RMS offset      : 0.006450980 seconds
Frequency       : 38.495 ppm fast
Residual freq   : -0.034 ppm
Skew            : 3.077 ppm
Root delay      : 0.042646784 seconds
Root dispersion : 0.006315954 seconds
Update interval : 64.7 seconds
Leap status     : Normal

localhost:~ # cat /etc/chrony.d/
opensuse.conf  pool.conf      
localhost:~ # cat /etc/chrony.d/opensuse.conf 
server 0.opensuse.pool.ntp.org iburst
server 1.opensuse.pool.ntp.org iburst
server 2.opensuse.pool.ntp.org iburst
server 3.opensuse.pool.ntp.org iburst
localhost:~ # cat /etc/chrony.d/pool.conf 
pool 2.opensuse.pool.ntp.org iburst

localhost:~ # chronyc sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
^+ ntp22.kashra-server.com       2   8   377   491  -6021us[-6341us] +/-   66ms
^+ ntp.rnl.tecnico.ulisboa.>     2   8   377    42  -7379us[-7914us] +/-   46ms
^* ntp02.oal.ul.pt               2   8   377    35  -4130us[-4667us] +/-   38ms
^+ ntp66.kashra-server.com       2   8   377    40  -2110us[-2646us] +/-   48ms
^+ ntp64.kashra-server.com       2   8   377   102  -3475us[-3996us] +/-   50ms
^- ntp35.kashra-server.com       2   8   351    33    +16ms[  +16ms] +/-   76ms
^- ftp.claranet.pt               3   8   377    38  +1387us[ +851us] +/-   79ms
^+ mirrors.dominios.pt           2   8   377    39  -2038us[-2575us] +/-   47ms

@phillxnet
Copy link
Member Author

After this change we have:

localhost:~ # chronyc tracking
Reference ID    : C2081E10 (mirrors.dominios.pt)
Stratum         : 3
Ref time (UTC)  : Sun Jul 31 14:46:04 2022
System time     : 0.000834520 seconds fast of NTP time
Last offset     : +0.000304329 seconds
RMS offset      : 0.002595199 seconds
Frequency       : 34.328 ppm fast
Residual freq   : +0.076 ppm
Skew            : 9.315 ppm
Root delay      : 0.084939241 seconds
Root dispersion : 0.003932415 seconds
Update interval : 64.6 seconds
Leap status     : Normal


localhost:~ # ls -la /etc/chrony.d/
total 4
drwxr-xr-x 1 root root   18 Mar 28 10:03 .
drwxr-xr-x 1 root root 3664 Jul 31 15:34 ..
-rw-r--r-- 1 root root   36 Mar 28 10:03 pool.conf

localhost:~ # cat /etc/chrony.d/pool.conf 
pool 2.opensuse.pool.ntp.org iburst

localhost:~ # chronyc sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
^+ ntp63.kashra-server.com       2   6   377    46   +873us[ +873us] +/-   47ms
^* mirrors.dominios.pt           2   6   377    46  +2201us[+2781us] +/-   46ms
^- ntp32.kashra-server.com       2   6   271   106  -1177us[ -645us] +/-   74ms
^+ ntp40.kashra-server.com       2   6   377    46   -957us[ -957us] +/-   53ms

And we have our expected provider of the above config:

localhost:~ # zypper info chrony-pool-opensuse
Loading repository data...
Warning: Repository 'Leap_15_3_Updates' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...


Information for package chrony-pool-openSUSE:
---------------------------------------------
Repository     : Update repository with updates from SUSE Linux Enterprise 15
Name           : chrony-pool-openSUSE
Version        : 4.1-150300.16.9.1
Arch           : noarch
Vendor         : SUSE LLC <https://www.suse.com/>
Installed Size : 36 B
Installed      : Yes (automatically)
Status         : up-to-date
Source package : chrony-4.1-150300.16.9.1.src
Upstream URL   : https://chrony.tuxfamily.org/
Summary        : Chrony preconfiguration for openSUSE
Description    : 
    This package configures chrony to use the openSUSE NTP server pool by
    default.

This change looks to be working as intended. I.e. we have less sources but still a working, and runing, chronyd. As per our chronyc commands above.

@phillxnet
Copy link
Member Author

localhost:~ # systemctl status chronyd
● chronyd.service - NTP client/server
     Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-07-31 15:34:00 WEST; 19min ago
       Docs: man:chronyd(8)
             man:chrony.conf(5)
   Main PID: 1586 (chronyd)
      Tasks: 1
     CGroup: /system.slice/chronyd.service
             └─1586 /usr/sbin/chronyd

Jul 31 15:34:00 localhost systemd[1]: Starting NTP client/server...
Jul 31 15:34:00 localhost chronyd[1586]: chronyd version 4.1 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 -DEBUG)
Jul 31 15:34:00 localhost systemd[1]: Started NTP client/server.
Jul 31 15:34:10 localhost.localdomain chronyd[1586]: Selected source 91.134.158.89 (2.opensuse.pool.ntp.org)
Jul 31 15:34:11 localhost.localdomain chronyd[1586]: Selected source 194.8.30.16 (2.opensuse.pool.ntp.org)

@phillxnet phillxnet merged commit b56ac5b into rockstor:master Jul 31, 2022
@phillxnet phillxnet deleted the 54_Chrony_NTP_servers_configuration_is_out-of-date_when_compared_to_Leap_15-3_JeOS branch July 31, 2022 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chrony NTP servers configuration is out-of-date when compared to Leap 15-3 JeOS
1 participant