1. 08 Oct, 2020 2 commits
    • Jérome Perrin's avatar
      testing/testcase: run `slapos node report` at least 3 times · 846a829e
      Jérome Perrin authored
      In a scenario of an instance with child instances which does not properly
      support destruction, a scenario like this happens:
      
       1. first report detect that it's destroying a root partition but child
      partitions are still started and request destruction of these child instances
       2. child partitions are destroyed
       3. root partition is destroyed
      
      For this case we need to run 3 times
      846a829e
    • Jérome Perrin's avatar
      proxy: support partitions destruction · a58c14b0
      Jérome Perrin authored
      So far implementation of slapos proxy was incomplete regarding partition destructions:
      A partition requested as destroyed was properly destroyed "physically", files were
      removed from filesystem, services were removed from supervisor, but the partition was
      still marked as busy in proxy database, so it was never re-used in subsequent requests.
      
      To solve this, implement the destroyedComputerPartition endpoint to mark the partition
      as free.
      
      This is straightworfard for root partitions, but the cases of child partitions was a bit
      more tricky, especially because software releases usually does not implement properly
      the chain of deletion (it seems this is not properly implemted with softwaretype, only
      with switch_softwaretype) and generally because we don't want to leave orpheans partitions.
      
      In the case of ERP5 implementation of SlapOS master we have an alarm which garbage
      collect in these cases, so we implement something to reach similar goals. We refuse freeing
      a partition while their child paritions are not freed - and we request deletion of these
      partitions so that they are deleted on next slapos node report run. Then after a few runs,
      the whole partition tree will be completely destroyed and freed, even for software which
      does not implement deletion properly.
      a58c14b0
  2. 15 Sep, 2020 1 commit
  3. 10 Sep, 2020 1 commit
  4. 09 Sep, 2020 2 commits
  5. 08 Sep, 2020 1 commit
  6. 05 Sep, 2020 1 commit
  7. 02 Sep, 2020 4 commits
  8. 01 Sep, 2020 12 commits
  9. 29 Aug, 2020 1 commit
  10. 28 Aug, 2020 2 commits
  11. 25 Aug, 2020 4 commits
  12. 24 Aug, 2020 3 commits
  13. 21 Aug, 2020 1 commit
  14. 19 Aug, 2020 5 commits