1. 09 Oct, 2023 1 commit
    • Xavier Thompson's avatar
      utils: Fix untimeouted request in _ReadAsJson · b90d469e
      Xavier Thompson authored
      This could cause slapos request to hang forever while fetching the
      json schema of an SR, and in particular it could cause buildout to
      hang forever in instance processing when requesting a sub-instance.
      
      See merge request !575
      b90d469e
  2. 04 Oct, 2023 1 commit
  3. 28 Sep, 2023 2 commits
  4. 25 Sep, 2023 1 commit
  5. 22 Sep, 2023 1 commit
  6. 14 Sep, 2023 1 commit
  7. 11 Sep, 2023 1 commit
  8. 07 Sep, 2023 1 commit
    • Xavier Thompson's avatar
      slapgrid: Fix an upgrade bug in offline processing · c9b394c1
      Xavier Thompson authored
      When upgrading from a version of slapos.core that does not support
      processing instances without a connection to master to one that does,
      the following edgecase could occur:
      
      1. some partition is stopped and processed with old version
      2. slapos.core is upgraded
      3. connection to master is lost
      4. offline processing wrongly starts the services of stopped partition
      
      This was because the new version removes the supervisord file for a
      partition when the partition is stopped (in online mode) so that the
      offline mode can just start all the existing supervisord files. But
      since the partitions was never processed in online mode with the new
      version, this file was never removed.
      
      To fix this, we use the (now no longer used ) .requested_state file
      of the previous version to determine the state of the partition in
      offline mode, then we remove both the .requested_state file and the
      supervisord file, fixing the discrepancy.
      c9b394c1
  9. 05 Sep, 2023 1 commit
  10. 04 Sep, 2023 1 commit
  11. 01 Sep, 2023 5 commits
  12. 30 Aug, 2023 13 commits
  13. 28 Aug, 2023 1 commit
  14. 26 Aug, 2023 2 commits
  15. 22 Aug, 2023 1 commit
  16. 18 Aug, 2023 1 commit
    • Yusei Tahara's avatar
      cli/slapgrid: Create slapgrid object after checking pidfile. · 8e6500e2
      Yusei Tahara authored
      Slapgrid object makes a connection to master node immediately,
      thus if you create a slapgrid object without checking pidfile and if
      master node responds very slowly, you may get tons of stucked slapgrid
      processes by cron and system may become unusable.
      8e6500e2
  17. 16 Aug, 2023 5 commits
  18. 15 Aug, 2023 1 commit