Re: Infrastructure | Collect resource statistics from GUADEC 2020 (#372)



Title: GitLab

Bartłomiej Piotrowski commented:

From meet.gnome.org which runs Ubuntu 16.04:

● co2-stats.service - Collect carbon emissions statistics
   Loaded: loaded (/etc/systemd/system/co2-stats.service; disabled; vendor preset: enabled)
   Active: inactive (dead) since Fri 2020-07-17 22:00:57 UTC; 2s ago
  Process: 8366 ExecStart=/bin/bash -c (date -Iseconds; nproc; cat /proc/loadavg; ifstat --noupdate --ignore | t
")[:-1] | map([ split(" ")[] | select(. != "") ]) | {"date": .[0][], "nproc": .[1][], "uptime": .[2], "ifstat": 
 Main PID: 8366 (code=exited, status=0/SUCCESS)

Jul 17 22:00:57 meet.gnome.org systemd[1]: Starting Collect carbon emissions statistics...
Jul 17 22:00:57 meet.gnome.org bash[8366]: ifstat: invalid option '--'.
Jul 17 22:00:57 meet.gnome.org bash[8366]: usage: ifstat [-a] [-l] [-z] [-n] [-v] [-h] [-t] [-i if0,if1,...]
Jul 17 22:00:57 meet.gnome.org bash[8366]:        [-d drv[:opt]] [-s [comm@][#]host[/nn]] [-T] [-A] [-w]
Jul 17 22:00:57 meet.gnome.org bash[8366]:        [-W] [-S] [-b] [-q] [delay[/delay] [count]]

ifstat is not available as part of iproute there.

RHEL7 nodes give this:

[root@oscp-node01 ~]# systemctl start co2-stats.timer
Job for co2-stats.timer failed. See "systemctl status co2-stats.timer" and "journalctl -xe" for details

[root@oscp-node01 ~]# systemctl status co2-stats.timer
● co2-stats.timer - Collect carbon emissions statistics
   Loaded: loaded (/etc/systemd/system/co2-stats.timer; enabled; vendor preset: disabled)
   Active: inactive (dead)

Jul 17 22:04:05 oscp-node01.gnome.org systemd[1]: Refusing to start, unit to trigger not loaded.
Jul 17 22:04:05 oscp-node01.gnome.org systemd[1]: Failed to start Collect carbon emissions statistics.
Jul 17 22:04:35 oscp-node01.gnome.org systemd[1]: Refusing to start, unit to trigger not loaded.
Jul 17 22:04:35 oscp-node01.gnome.org systemd[1]: Failed to start Collect carbon emissions statistics.

[root@oscp-node01 ~]# systemctl status co2-stats.service
● co2-stats.service - Collect carbon emissions statistics
   Loaded: error (Reason: Invalid argument)
   Active: inactive (dead)

I'll say something Abdrea would say in such situation: I'm not particularly happy to handle this "last minute".



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]