Page MenuHomePhabricator

cloudservices1003/1004: Warning: NTP not enabled!
Closed, ResolvedPublic

Description

I did some package updates on cloudservices1003/1003 and now icinga is complaining (wrongly) about NTP:

/home/andrew# /usr/lib/nagios/plugins/check_timedatectl
Warning: NTP not enabled!

This is because these boxes are showing yet a new output format from timedatectl

root@cloudservices1004:/home/andrew# timedatectl 
                      Local time: Thu 2020-03-05 18:09:59 UTC
                  Universal time: Thu 2020-03-05 18:09:59 UTC
                        RTC time: Thu 2020-03-05 18:09:59
                       Time zone: Etc/UTC (UTC, +0000)
       System clock synchronized: yes
systemd-timesyncd.service active: yes
                 RTC in local TZ: no

Probably we just need to update check_timedatectl (as @MoritzMuehlenhoff did a year ago) but I'm not yet clear on why this is happening just on those two (Stretch!) servers.

Event Timeline

The output of timedatectl (which the Icinga check tests) changed between the systemd version in Stretch and Buster, the check has been adapted, but it does that based on OS versions. cloudservices* run systemd from stretch-backports, so this now appears to omit the new format. You can adapt the Icinga check to also use the new format on stretch-backports or revert the installation the the native stretch version (which is very much preferred as backports doesn't receive timely security fixes)

Andrew triaged this task as Medium priority.Mar 10 2020, 4:13 PM
Andrew moved this task from Inbox to Doing on the cloud-services-team (Kanban) board.

Change 579289 had a related patch set uploaded (by Andrew Bogott; owner: Andrew Bogott):
[operations/puppet@production] OpenStack/Queens/Stretch, avoid upgrading systemd

https://gerrit.wikimedia.org/r/579289

Ugh, downgrading systemd turns out to be really messy! I'm going to try to pin it so this doesn't happen in more places.

@MoritzMuehlenhoff, what should I make of this?

root@cloudcontrol1003:~# apt-cache policy systemd
systemd:
  Installed: 232-25+deb9u12
  Candidate: 232-25+deb9u12
  Version table:
     241-5~bpo9+1 100
        100 http://mirrors.wikimedia.org/debian stretch-backports/main amd64 Packages
 *** 232-25+deb9u12 500
        500 http://mirrors.wikimedia.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status
     232-25+deb9u11 500
        500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages

The version from 'debian' is newer than the version from 'debian-security' which makes me think I shouldn't pin it to -security, but if I hadn't looked I would've pinned to -security.

Change 579289 merged by Andrew Bogott:
[operations/puppet@production] OpenStack/Queens/Stretch, avoid upgrading systemd

https://gerrit.wikimedia.org/r/579289

Change 579589 had a related patch set uploaded (by Andrew Bogott; owner: Andrew Bogott):
[operations/puppet@production] OpenStack/Queens/Stretch, move priority to 501

https://gerrit.wikimedia.org/r/579589

Change 579589 merged by Andrew Bogott:
[operations/puppet@production] OpenStack/Queens/Stretch, move priority to 501

https://gerrit.wikimedia.org/r/579589

Change 579597 had a related patch set uploaded (by Andrew Bogott; owner: Andrew Bogott):
[operations/puppet@production] OpenStack/Queens/Stretch: fix pinning rule

https://gerrit.wikimedia.org/r/579597

Change 579597 merged by Andrew Bogott:
[operations/puppet@production] OpenStack/Queens/Stretch: fix pinning rule

https://gerrit.wikimedia.org/r/579597

Change 583569 had a related patch set uploaded (by Arturo Borrero Gonzalez; owner: Arturo Borrero Gonzalez):
[operations/puppet@production] openstack: queens: apt pin systemd harder

https://gerrit.wikimedia.org/r/583569

Change 583569 merged by Arturo Borrero Gonzalez:
[operations/puppet@production] openstack: queens: apt pin systemd harder

https://gerrit.wikimedia.org/r/583569

Mentioned in SAL (#wikimedia-cloud) [2020-03-26T12:32:18Z] <arturo> [codfw1dev] downgraded systemd, libsystemd0, udev and friends to the non-backports versions (T247013)

Change 585848 had a related patch set uploaded (by Andrew Bogott; owner: Andrew Bogott):
[operations/puppet@production] OpenStack/Rocky/Stretch, avoid upgrading systemd

https://gerrit.wikimedia.org/r/585848

Change 585848 merged by Andrew Bogott:
[operations/puppet@production] OpenStack/Rocky/Stretch, avoid upgrading systemd

https://gerrit.wikimedia.org/r/585848