nixos/tests/munin: fix non-deterministic failure

- wait for node to listen before starting munin-cron
- increase timeout for munin-cron startup
- disable a failing plugin to remove irrelevant error message

Uli Baum 268bb4ea 2c1e736a

+16 -6
+16 -6
nixos/tests/munin.nix
··· 12 12 { config, ... }: 13 13 { 14 14 services = { 15 - munin-node.enable = true; 16 - munin-cron = { 15 + munin-node = { 17 16 enable = true; 18 - hosts = '' 19 - [${config.networking.hostName}] 20 - address localhost 17 + # disable a failing plugin to prevent irrelevant error message, see #23049 18 + extraConfig = '' 19 + ignore_file ^apc_nis$ 21 20 ''; 22 21 }; 22 + munin-cron = { 23 + enable = true; 24 + hosts = '' 25 + [${config.networking.hostName}] 26 + address localhost 27 + ''; 28 + }; 23 29 }; 24 - systemd.services.munin-node.serviceConfig.TimeoutStartSec = "3min"; 30 + # long timeout to prevent hydra failure on high load 31 + systemd.services.munin-node.serviceConfig.TimeoutStartSec = "10min"; 25 32 }; 26 33 }; 27 34 ··· 29 36 startAll; 30 37 31 38 $one->waitForUnit("munin-node.service"); 39 + # make sure the node is actually listening 40 + $one->waitForOpenPort(4949); 32 41 $one->succeed('systemctl start munin-cron'); 42 + # wait for munin-cron output 33 43 $one->waitForFile("/var/lib/munin/one/one-uptime-uptime-g.rrd"); 34 44 $one->waitForFile("/var/www/munin/one/index.html"); 35 45 '';