1. 17 Jul, 2021 2 commits
    • Jérome Perrin's avatar
      software/grafana: include a telegraf plugin to get slapos process metrics · 95300682
      Jérome Perrin authored
      For now this still have to be enabled with a config like this in a .conf
      file in srv/telegraf/extra-config/  :
      
          [[inputs.execd]]
            name_override = "slapos"
            # this needs sudo when using can not access supervisor socket, like when being installed in root slapos
            command = ["/usr/bin/sudo", "$SOFTWARE_DIR/go.work/bin/telegraf-input-slapos", "-config", "/path/to/slapos.conf"]
      
      /path/to/slapos.conf would contain something like this:
      
          [[inputs.slapos]]
            ## Folder where partitions are located
            instance_root = "/srv/slapgrid/"
      
            ## filepath.Glob pattern to look for recursive instances
            recursive_instance_glob_pattern = "*/srv/runner/inst*/"
      
            ## Path of supervisor socket, relative to instance root
            socket_name = "sv.sock"
      95300682
    • Jérome Perrin's avatar
      software/grafana: version up telegraf v1.19.1 · 3ce2fee6
      Jérome Perrin authored
      This version has a new sql input, that can be used to get metrics from sql
      queries.
      3ce2fee6
  2. 15 Jul, 2021 2 commits
    • Jérome Perrin's avatar
      component/tesseract: fix permissions of downloaded traineddata · 7df9bc95
      Jérome Perrin authored
      With the default umask of running slapos node, the default umask create files
      that are only readable by user, not by group:
      
          slapuser10@COMP-1234:~$ ls -al /opt/slapgrid/bf0ccebdbd76d491bcbe16b7998529b2/parts/tesseract/share/tessdata/
          total 125296
          drwxr-x--- 4 slapsoft slapsoft 4096 Jul 13 05:57 .
          drwxr-x--- 3 slapsoft slapsoft 4096 Jul 13 05:57 ..
          -rw------- 1 slapsoft slapsoft 44366093 Jul 13 05:57 chi_sim.traineddata
          drwxr-x--- 2 slapsoft slapsoft 4096 Jul 13 05:57 configs
          -rw------- 1 slapsoft slapsoft 23466654 Jul 13 05:57 eng.traineddata
          -rw------- 1 slapsoft slapsoft 14213351 Jul 13 05:57 fra.traineddata
          -rw------- 1 slapsoft slapsoft 35659159 Jul 13 05:57 jpn.traineddata
          -rw------- 1 slapsoft slapsoft 10562874 Jul 13 05:57 osd.traineddata
          -rw-r--r-- 1 slapsoft slapsoft 572 Jul 13 05:57 pdf.ttf
          drwxr-x--- 2 slapsoft slapsoft 4096 Jul 13 05:57 tessconfigs
      
      but when using multiple users, partitions users are members of slapsoft group,
      so these files needs to be group readable.
      7df9bc95
    • Thomas Gambier's avatar
  3. 13 Jul, 2021 6 commits
  4. 12 Jul, 2021 4 commits
  5. 08 Jul, 2021 7 commits
  6. 06 Jul, 2021 2 commits
    • Jérome Perrin's avatar
      software/{kvm,monitor,caddy-frontend}/test: keep using slapos node instance --all · fe4d60b9
      Jérome Perrin authored
      This softwares have some missing promises, so we keep using slapos node instance
      --all in the test, so that test keep passing after we change standalone slapos
      to not use --all anymore.
      fe4d60b9
    • Jérome Perrin's avatar
      stack/monitor: run monitor-globalstate once from buildout · 8fe8ac61
      Jérome Perrin authored
      monitor-globalstate (which is supposed to create monitor configuration file
      accessed by HTTP as .../public//monitor.global.json) runs by cron every 2
      minutes. This crontab also uses randomsleep to add a delay - but there's a
      promise waiting for this monitor configuration file to be available, so the
      instanciation had to wait for this and if this was sometimes causing problems
      in software release tests because promise did not succeed fast enough.
      
      To prevent this pattern where slapos node instance has to wait for a crontab
      to be executed, we run that script a first time from buildout.
      8fe8ac61
  7. 02 Jul, 2021 14 commits
  8. 01 Jul, 2021 2 commits
  9. 30 Jun, 2021 1 commit