Page MenuHomePhabricator

Translatewiki.net failed service checker is not puppetized
Open, In Progress, MediumPublic2 Estimated Story Points

Description

There is a small custom script that is not added via puppet:

twn:~$ cat /etc/cron.hourly/systemd-failed-service-notify 
#!/bin/bash

mapfile -t services < <(
    systemctl list-units --state=failed --type=service --plain --no-legend --no-pager |
    awk '{ print $1 }'
)

count=${#services[@]}

if [ "$count" -gt 0 ]; then
    /home/betawiki/config/bin/udpcast \
        "WARNING: $count failed systemd service(s): ${services[*]}"
fi

Ideally this should be a systemd timer (like everything else in puppet) instead of a cron script.

QA plan:

  • Test on the new server

Event Timeline

Change #1311072 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[translatewiki@master] Manage failed-service notification via a systemd timer

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

Related patch has a +1. We are waiting for two things:

  1. CI update to use Ruby 3.3
  2. the new twn server to be setup so that we can test this script and orchestrate that server.
abi_ changed the task status from Open to Stalled.Mon, Aug 3, 10:20 AM
  1. CI has been updated to use Ruby 3.3

Blocked on,

  1. the new twn server to be setup so that we can test this script and orchestrate that server.
Nikerabbit changed the task status from Stalled to In Progress.Wed, Aug 19, 12:02 PM