An error occurred fetching the project authors.
  1. 05 May, 2021 2 commits
  2. 03 May, 2021 1 commit
  3. 03 Feb, 2021 1 commit
  4. 20 Jan, 2021 1 commit
    • Jérome Perrin's avatar
      slap/standalone: normalize log files in supervisord · 2aad36b9
      Jérome Perrin authored
      Because some programs did not have proper configuration for log files, they
      were using automatically generated file names for log files. Correctly
      define stdout_logfile configuration for all programs, used with
      redirect_stderr=true, so that both stderr and stdout are in the same log
      file.
      2aad36b9
  5. 02 Dec, 2020 1 commit
    • Jérome Perrin's avatar
      slap/standalone: don't unset PYTHONPATH · 9e5ba82d
      Jérome Perrin authored
      We were doing this because we use to run tests with `python setup.py test`
      which automatically sets PYTHONPATH, so it was affecting sub processes
      started by standalone.
      
      Nowadays we no longer use this method of running tests, so we are not really
      supposed to use PYTHONPATH, so we don't unset this environment variable,
      there might be valid cases where users want to force a different python path
      (but I can not think of any) and it simplifies the code a bit.
      9e5ba82d
  6. 27 Nov, 2020 1 commit
    • Jérome Perrin's avatar
      slap/standalone: let standalone's supervisord control instance supervisord · dc4f7604
      Jérome Perrin authored
      Instead of letting slapos commands start supervisord in daemon mode, run it
      as a program from standalone supervisord daemon.
      
      The $INSTANCE/etc/supervisord.conf will be created by `slapos node instance`
      the first time user runs it, until this, the service will restart in a loop,
      complaining that config file is not found.
      
      Also review stop to expose timeout argument and use a longer timeout by
      default (and cleanup some unused imports).
      dc4f7604
  7. 16 Sep, 2020 1 commit
    • Jérome Perrin's avatar
      grid: Keep using the previous socket path name if it still exists · ad156d36
      Jérome Perrin authored
      In 58fbaabf (svcbackend/standalone: use shorter names for supervisor sockets
      , 2020-07-17) we changed the socket path from supervisord.sock to a shorter
      sv.sock, but this caused issues when updating running slapos node instances,
      because this was trying to start a new supervisord process using the new
      socket path, while the old one was still running.
      
      To keep services running after upgrade, introduce a compatibility layer in
      this socket path - if we still have a supervisord running with a socket at
      this previous path, keep using this old socket name.
      ad156d36
  8. 17 Jul, 2020 1 commit
  9. 29 Jun, 2020 1 commit
  10. 22 Jun, 2020 1 commit
  11. 11 May, 2020 1 commit
  12. 20 Feb, 2020 1 commit
  13. 17 Feb, 2020 1 commit
    • Jérome Perrin's avatar
      standalone: unset PYTHONPATH at startup · 3563d18a
      Jérome Perrin authored
      In our normal operations, we are not using PYTHONPATH but using buildout
      to generate wrappers. We are still using python setup.py test to run
      tests, which sets PYTHONPATH to the eggs used by this python and this
      cause issues when this python starts subprocesses, especially when it
      starts another version of python which is supposed to use a different
      set of eggs.
      3563d18a
  14. 27 Dec, 2019 1 commit
  15. 18 Dec, 2019 1 commit
  16. 30 Oct, 2019 1 commit
  17. 25 Oct, 2019 1 commit
    • Jérome Perrin's avatar
      standalone: also cleanup supervisor configuration · a620b0b5
      Jérome Perrin authored
      destroying instance is supposed to remove these, but when there are
      issues removing instances we sometimes have supervisor config left from
      previous instances.
      
      Reformating now delete theses after logging the problem.
      a620b0b5
  18. 23 Oct, 2019 2 commits
  19. 10 Oct, 2019 1 commit
    • Jérome Perrin's avatar
      standalone: fix support of recursive slapos · 2baa2125
      Jérome Perrin authored
      When having more than one read_only_shared_part_list, the template was
      first rendered with indentation and then dedented, but since dedent only
      remove the common indentation, we ended up with slapos.cfg like this:
      
      ```
      $ cat /data/slappart11_testnode/cqg/inst/test0-9/tmp/etc/slapos.cfg
      
                  [slapos]
                  software_root = /data/slappart11_testnode/cqg/inst/test0-9/tmp/soft
                  instance_root = /data/slappart11_testnode/cqg/inst/test0-9/tmp/inst
                  shared_part_list =
                    /srv/slapgrid/slappart11/srv/shared
      /srv/slapgrid/slappart11/srv/testnode/cqg/shared
                    /data/slappart11_testnode/cqg/inst/test0-9/tmp/shared
                  master_url = http://10.0.12.198:46312
                  computer_id = local
                  root_check = False
      ```
      
      First dedent, then render the template to prevent this issue. Apply this to
      other uses of textwrap.dedent for consistency.
      
      /reviewed-on nexedi/slapos.core!140
      2baa2125
  20. 01 Oct, 2019 1 commit