An error occurred fetching the project authors.
  1. 18 Sep, 2023 4 commits
  2. 21 Apr, 2023 4 commits
  3. 06 Feb, 2023 1 commit
  4. 26 Oct, 2022 1 commit
    • Thomas Gambier's avatar
      manager: fix links handling in devperm · 6cf5c4d9
      Thomas Gambier authored
      Fixup of 89863d6c
      
      For links like this:
      
      $ ls -l /dev/disk/by-path/pci-0000:42:00.0-nvme-1
      lrwxrwxrwx 1 root root 13 Oct 25 15:19 /dev/disk/by-path/pci-0000:42:00.0-nvme-1 -> ../../nvme7n1
      
      os.readlink() returns "../../nvme7n1" while we want "/dev/nvme7n1".
      6cf5c4d9
  5. 06 Oct, 2022 1 commit
  6. 19 Jul, 2022 1 commit
    • Thomas Gambier's avatar
      slapgrid: fix _updateCertificate in python3 · 3853b94e
      Thomas Gambier authored
      Traceback (most recent call last):
        File "/opt/slapos/eggs/slapos.core-1.7.10-py3.7.egg/slapos/grid/slapgrid.py", line 1435, in processComputerPartitionList
          self.processComputerPartition(computer_partition)
        File "/opt/slapos/eggs/slapos.core-1.7.10-py3.7.egg/slapos/grid/slapgrid.py", line 1329, in processComputerPartition
          raise e
        File "/opt/slapos/eggs/slapos.core-1.7.10-py3.7.egg/slapos/grid/slapgrid.py", line 1254, in processComputerPartition
          local_partition._updateCertificate()
        File "/opt/slapos/eggs/slapos.core-1.7.10-py3.7.egg/slapos/grid/SlapObject.py", line 513, in _updateCertificate
          fout.write(new_content)
      TypeError: a bytes-like object is required, not 'str'
      
      Also add test for the failure.
      3853b94e
  7. 11 Mar, 2022 1 commit
  8. 16 Feb, 2022 3 commits
    • Jérome Perrin's avatar
      runpromises: support software releases older than slapos 1.0.118 · 2a90733c
      Jérome Perrin authored
      Before slapos commit a184cca8b (Try to reuse existing file to avoid
      excessive IO on update + other minor optimisations, 2019-06-17), which
      started to be used in profiles in 65acdca0d (Release slapos.cookbook
      (1.0.118), 2019-08-13), the promise plugins did not contain
      
          import sys
          sys.path[0:0] = (..., )
      
      but there was an extra import statement:
      
          import sys
          import json
          sys.path[0:0] = (..., )
      
      slapos.core >= 1.7 was not able to process such promises, because the
      code introspecting these promises assumed that the second node of the
      AST was the assignment, which is incorrect in the old promises because
      it was another import.
      
      To accomodate both cases, use the value from the first assignment.
      
      We also change to use ast.literal_eval for safety.
      2a90733c
    • Jérome Perrin's avatar
      tests: refactor grid tests to use a getTestComputerClass method · b01cc6cf
      Jérome Perrin authored
      This method returns the class of computer used for the test, then
      it's easier for test subclasses to use a computer with different
      classes for software and instances.
      
      Use this in TestSlapgridPluginPromiseWithInstancePython, using
      subclasses instead of monkey patching should make extending this
      test a bit easier
      b01cc6cf
    • Jérome Perrin's avatar
  9. 06 Nov, 2021 2 commits
  10. 05 Nov, 2021 1 commit
  11. 22 Oct, 2021 1 commit
  12. 13 Sep, 2021 1 commit
    • Romain Courteaud's avatar
      slapos_*: rename Compute to Compute Node · fba76904
      Romain Courteaud authored
      libslap must continue to use the same class names for compatibility.
      
      Changes are made to keep the migration as simple as possible:
        * do not change the catalog table/column names
        * do not change the local_role's names and the related categories
        * keep Computer Consumption portal type
        * keep portal_id's group name
        * keep SLA compatibility
        * keep SlapTool compatibility
      
      SlapTool: restore compatibility with Hosting Subscription method
      fba76904
  13. 01 Jul, 2021 1 commit
  14. 11 Jun, 2021 1 commit
    • Xavier Thompson's avatar
      slapgrid: Add --force-stop option · 01eaccf5
      Xavier Thompson authored
      This option applies only the processing of partitions as in:
        `slapos node instance --force-stop`
      
      This option affects how `started` partition are processed:
      - buildout is processed normally
      - the services are stopped instead of started
      - no promises are run
      - no report is sent to master
      
      See merge request nexedi/slapos.core!298
      01eaccf5
  15. 25 Mar, 2021 1 commit
    • Łukasz Nowak's avatar
      manager: Implement whitelistfirewall · 6fb092c4
      Łukasz Nowak authored
      whitelistfirewall manager is locking down partition access as configured in
      partition's .slapos-whitelist-firewall file by using firewalld configuration.
      
      The md5sum of last generated partition whitelist file is used to take
      decision if given rule shall be updated.
      
      The manager supports partition setup and destruction.
      
      Note: User id is used with netfilter owner module, as currently the sourcing
            address is not enforced to be per partition.
      6fb092c4
  16. 08 Mar, 2021 1 commit
    • Łukasz Nowak's avatar
      manager: Switch to lsblk devperm · f26d12cb
      Łukasz Nowak authored
      lsblk OS inspection is the way to have realiable results for querying the
      devices on the system, so fully switch to it, while still supporting symlinks.
      
      Disks and partitions are supported.
      f26d12cb
  17. 05 Mar, 2021 1 commit
  18. 27 Nov, 2020 1 commit
    • 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
  19. 16 Nov, 2020 2 commits
  20. 16 Sep, 2020 2 commits
    • Jérome Perrin's avatar
      grid: cleanup the duplicate supervisord processes · 000abb02
      Jérome Perrin authored
      After 1.6.1 was deployed we have two processes, stop the redundant process.
      000abb02
    • 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
  21. 10 Sep, 2020 1 commit
  22. 17 Jul, 2020 1 commit
  23. 09 Jun, 2020 1 commit
  24. 02 Apr, 2020 3 commits
  25. 15 Nov, 2019 1 commit
  26. 30 Oct, 2019 1 commit
  27. 26 Oct, 2019 1 commit