1. 01 Dec, 2020 2 commits
  2. 30 Nov, 2020 1 commit
  3. 27 Nov, 2020 3 commits
    • 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
    • Jérome Perrin's avatar
      tests/test_slapgrid: don't use python -S in test scripts · 491336e9
      Jérome Perrin authored
      I guess this code was using python -S to try to be independant from anything
      that can happen in site.py, but that's not needed when running on testnode.
      
      pygolang.pymain does not support -S and we are moving tests environments to
      use pygolang.pymain, so let's remove this if we don't need it.
      491336e9
    • Jérome Perrin's avatar
      Fix slapos node prune usages with root slapos · 15675348
      Jérome Perrin authored
      - also write pid file to prevent race condition
       - check user is root
      
      See merge request !267
      15675348
  4. 26 Nov, 2020 8 commits
  5. 25 Nov, 2020 1 commit
    • Thomas Gambier's avatar
      slapgrid: compare os name in lower case · bc79d780
      Thomas Gambier authored
      When comparing OS to see if they match for binary cache, we only compare
      the lower case distribution name because sometimes "Debian' is
      capitalized and sometimes not.
      bc79d780
  6. 24 Nov, 2020 9 commits
  7. 20 Nov, 2020 2 commits
    • Jérome Perrin's avatar
      slapos node prune: check running as root according to config · e64714f6
      Jérome Perrin authored
      When config specifies root_check=true, check that user is root instead
      of probably failing with error messages because some permissions would
      be refused.
      e64714f6
    • Jérome Perrin's avatar
      slapos node prune: write software pid file · 7049d6c8
      Jérome Perrin authored
      slapos node prune already detected the case where software was running
      and refused to run while software was runnning, to prevent a case where
      software writes files and prune removes them because they are not yet
      referenced, but nothing prevented the other way around: slapos node
      software should not start while slapos node prune is deleting files. To
      prevent this, make slapos node prune actually use software pid file,
      then software will refuse to start while prune is running.
      7049d6c8
  8. 16 Nov, 2020 3 commits
    • Jérome Perrin's avatar
      grid/utils: set PYTHONNOUSERSITE · 8c1a4892
      Jérome Perrin authored
      When PYTHONNOUSERSITE environemnt variable is set, python does not load user
      site.
      User site packages may contain a different version of buildout, which would
      be selected when slapos runs buildout, causing unexpected behaviours.
      8c1a4892
    • Jérome Perrin's avatar
      test_slapgrid: check that $HOME is set when processing partition · fe539da3
      Jérome Perrin authored
      Some buildout profiles are expecting this.
      fe539da3
    • Jérome Perrin's avatar
      grid/utils: minor cleanups · 7dbf0ba4
      Jérome Perrin authored
       - Use dict.items() to iterate on dict, instead of dict.keys() then dict[key]
       - don't use six.iterkeys(), this dict is small, so we don't need iterkeys()
         on python2 and can already write python3 version
       - don't % string when invoking logger, logging framework do it for us and do
         it only if message will be logged.
      7dbf0ba4
  9. 12 Nov, 2020 3 commits
  10. 10 Nov, 2020 2 commits
  11. 09 Nov, 2020 2 commits
    • Rafael Monnerat's avatar
      slapos_erp5: Basic Disaster recovery scripts · f2b9d9ec
      Rafael Monnerat authored
          This helps sync ZODB and mariadb (considering mariadb is newer). This is useful when restore a clone or synchronize after restore the mariadb catalog.
      
         The most appropriated way is reindex the site, however in case of slapos master (with large amount of data) it is too long (make this solution more appealing.
      f2b9d9ec
    • Rafael Monnerat's avatar
      slapos_accounting: Converge if Open Order Line is invalidated · c2f4d12f
      Rafael Monnerat authored
         If the Destroyed Hosting subscription is only present on Invalidated Open Orders, we just skip and converge the Hosting Subscription.
      
        This means the user deleted everything he had at once, too fast, before everything get processed.
      c2f4d12f
  12. 05 Nov, 2020 4 commits