perfsonar / perfsonar-testpoint-docker

Apache License 2.0
12 stars 15 forks source link

5.1 branch on Ubuntu22 misses /etc/perfsonar/psconfig/pscheduler-agent.json #39

Closed igarny closed 5 months ago

igarny commented 5 months ago

Hi guys,

The container using supervisord is failing on adding pSconfig mesh configuration with message: Unable to find any agents installed on this host

I see the psconfig-pscheduler-agent.service is not running, although had been configured within supervisord

>>>:~$ docker exect -t ps2 psconfig remote add http://ps-sn-central.qalab.geant.net/psmall.json
Unable to find any agents installed on this host

>>>:~$ dexect ps2 ps ax
    PID TTY      STAT   TIME COMMAND
      1 ?        Ss     0:00 /bin/sh -c /usr/bin/supervisord -c /etc/supervisord.conf
      6 ?        S      0:19 /usr/bin/python3 /usr/bin/supervisord -c /etc/supervisord.conf
      7 ?        S      0:00 /usr/bin/python3 /usr/bin/pidproxy /var/run/apache2/apache2.pid /bin/bash -c /usr/sbin/apache2ctl -DFORE
      9 ?        S      0:05 /usr/bin/python3 /usr/lib/perfsonar/host_metrics/perfsonar_host_exporter
     10 ?        S      0:25 lsregistrationdaemon.pl
     11 ?        Ss     0:00 /usr/sbin/owampd -c /etc/owamp-server -R /var/run
     12 ?        S      0:03 /usr/lib/postgresql/14/bin/postgres -D /var/lib/postgresql/14/main -c config_file=/etc/postgresql/14/mai
     18 ?        Sl     0:00 rsyslogd -n
     20 ?        Ss     0:00 /usr/sbin/twampd -c /etc/twamp-server -R /var/run
     23 ?        S      0:00 /bin/sh /usr/sbin/apache2ctl -DFOREGROUND -k start
     25 ?        S      0:02 /usr/sbin/apache2 -DFOREGROUND -k start
     26 ?        S      0:00 /usr/sbin/apache2 -DFOREGROUND -k start
     27 ?        Sl     0:07 pscheduler-api    -DFOREGROUND -k start
     28 ?        Sl     0:11 pscheduler-api    -DFOREGROUND -k start
     29 ?        Sl     0:07 pscheduler-api    -DFOREGROUND -k start
     30 ?        Sl     0:07 pscheduler-api    -DFOREGROUND -k start
     31 ?        Sl     0:07 pscheduler-api    -DFOREGROUND -k start
     32 ?        Sl     0:07 pscheduler-api    -DFOREGROUND -k start
     33 ?        Sl     0:08 pscheduler-api    -DFOREGROUND -k start
     34 ?        Sl     0:10 pscheduler-api    -DFOREGROUND -k start
     35 ?        Sl     0:07 pscheduler-api    -DFOREGROUND -k start
     36 ?        Sl     0:07 pscheduler-api    -DFOREGROUND -k start
     37 ?        Sl     0:04 /usr/sbin/apache2 -DFOREGROUND -k start
     38 ?        Sl     0:08 /usr/sbin/apache2 -DFOREGROUND -k start
    461 ?        Ss     0:00 postgres: 14/main: checkpointer
    462 ?        Ss     0:00 postgres: 14/main: background writer
    463 ?        Ss     0:00 postgres: 14/main: walwriter
    464 ?        Ss     0:00 postgres: 14/main: autovacuum launcher
    465 ?        Ss     0:02 postgres: 14/main: stats collector
    466 ?        Ss     0:00 postgres: 14/main: logical replication launcher
   5176 pts/0    Rs+    0:00 ps ax

IMO the problem is that there isn't even an empty configuration file for psConfig

dexect ps2 ls -l /etc/perfsonar/psconfig/pscheduler-agent.json
ls: cannot access '/etc/perfsonar/psconfig/pscheduler-agent.json': No such file or directory
igarny commented 5 months ago

I see it is there