Page MenuHomePhabricator

Fix 'unknown's in shinken
Closed, ResolvedPublic

Description

UNKNOWN for tools-checker-02/Free space - all mounts
UNKNOWN for tools-checker-02/Puppet failure
UNKNOWN for tools-checker-02/Puppet staleness
UNKNOWN for tools-exec-1403/Free space - all mounts
UNKNOWN for tools-exec-1403/Puppet failure
UNKNOWN for tools-exec-1403/Puppet staleness
UNKNOWN for tools-exec-1409/Free space - all mounts
UNKNOWN for tools-exec-1409/Puppet failure
UNKNOWN for tools-exec-1409/Puppet staleness
UNKNOWN for tools-exec-gift/Puppet failure
UNKNOWN for tools-exec-gift/Puppet staleness
UNKNOWN for tools-shadow-01/Puppet failure
UNKNOWN for tools-shadow-01/Puppet staleness
UNKNOWN for tools-webgrid-generic-1403/Puppet failure
UNKNOWN for tools-webgrid-generic-1403/Puppet staleness

This might just be diamond not reporting, but that's something that needs fixing.

Event Timeline

valhallasw raised the priority of this task from to High.
valhallasw updated the task description. (Show Details)
valhallasw added a project: Toolforge.
valhallasw subscribed.

Of these, the most broken are

UNKNOWN for tools-webproxy-test/Puppet failure
UNKNOWN for tools-webproxy-test/Puppet staleness

(no data for > 4 months)

UNKNOWN for tools-redis/Free space - all mounts

with no data for > 1 month.

UNKNOWN for tools-webgrid-lighttpd-1406/Free space - all mounts
UNKNOWN for tools-webgrid-lighttpd-1406/Puppet failure
UNKNOWN for tools-webgrid-lighttpd-1406/Puppet staleness

for > 1 week

I'm not sure what's happening for tools-redis. The only debug info diamond provides is:

DEBUG:diamond:Ignoring / since it is of type rootfs which  is not in the list of filesystems.
[2015-05-14 11:51:33,036] [Thread-95337] Ignoring / since it is of type rootfs which  is not in the list of filesystems.

but that also happens on other hosts...

tools-webgrid-lighttpd-1406's diamond seemed to be in some kind of reload loop. Restarted diamond; this seems to fix the issue.

tools-exec-1212: diamond does not seem to be working at all -- /var/log/upstart/diamond.log doesn't even exist! Even running manually using

/usr/bin/python /usr/bin/diamond --foreground --skip-change-user --skip-fork --skip-pidfile

fails, or rather, doesn't give any output. I also can't quite make up from strace what's (not) happening. At the same time, tools.tools-exec-1212.diskspace.root.inodes_percentfree /is/ being reported, so diamond is not doing nothing -- it's just not showing what it /is/ doing...

tools-exec-1410 seemed to have a comparable issue as webgrid-lighttpd-1406. Restarting diamond resolved that.

tools-mail seems to have the same issue as tools-exec-1212. Is this maybe some sort of precise v trusty issue? But why do all the other precise hosts work without issues then?

In the case of tools-mail, there are a few diamond.log.X.gz. diamond.log.1.gz is from may 3rd and contains:

root@tools-mail:/var/log/upstart# tail -n 50 diamond.log.1
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts

...restarting diamond on these hosts does seem to have mostly solved the issue, though. There are only three left:

T99077: Shinken: make sure 'Free space - all mounts' can handle no-longer-existing mounts:

  • UNKNOWN for tools-redis/Free space - all mounts

T99073: Fix shinken config to remove tools-webproxy-test:

  • UNKNOWN for tools-webproxy-test/Puppet failure
  • UNKNOWN for tools-webproxy-test/Puppet staleness

I don't see any remaining "UNKNOWN"s at http://shinken.wmflabs.org/problems for Toolforge, so I'm closing this task here with the assumption that the underlying cause cannot be investigated at the moment.

scfc assigned this task to valhallasw.

I see four:

  • tools-shadow-01
    • Puppet failure UNKNOWN1M 5d UNKNOWN: execution of the check script exited with exception list index out of range
    • Puppet staleness UNKNOWN1M 5d UNKNOWN: execution of the check script exited with exception list index out of range
  • tools-webgrid-generic-1404
    • Puppet failure UNKNOWN1w 5h UNKNOWN: No valid datapoints found
    • Puppet staleness UNKNOWN1w 5h UNKNOWN: No valid datapoints found

@coren hasn't really responded on T104781 so I'm just going to delete tools-shadow-01 now. Not sure about the other host

Bah, can't do that (unable to login to wikitech, 2fa phone dead atm). I'll do it tomorrow if nobody else gets to it in the meantime.

A lot of checks with "UNKNOWN" have "(Service Check Timed Out)" or "execution of the check script exited with exception timed out". AFAIUI, Shinken itself does not do actively check Puppet runs, etc., but contacts the server on labmon*? So maybe the error lies in some bottleneck in those queries.

http://shinken.wmflabs.org/problems?search=tools shows not much left - just puppet on tools-bastion-01 (which is in state SHUTOFF) and tools-pastion-01 (wat?), with some generic failures that appear to be useless

There's a large number of failures again. Most of them seem service check timed outs, probably caused by T127957: graphite.wmflabs.org is very slow / flaky.

not seeing anything on shinken for tools right now