1. 26 Oct, 2022 1 commit
    • Thomas Gambier's avatar
      manager: fix links handling in devperm · baf31a7d
      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".
      baf31a7d
  2. 25 Oct, 2022 2 commits
    • Jérome Perrin's avatar
      service list, service info: output json · 58888667
      Jérome Perrin authored
      ## before
      
      ```console
      $ slapos service list
      List of services:
      erp5 /srv/slapgrid/slappart15/srv/project/slapos/software/erp5/software.cfg
      slapos-sr-testing /srv/slapgrid/slappart15/srv/project/slapos/software/slapos-sr-testing/software.cfg
      slapos-testing /srv/slapgrid/slappart15/srv/project/slapos/software/slapos-testing/software.cfg
      hugo /srv/slapgrid/slappart15/srv/project/slapos/software/hugo/software.cfg
      metabase /srv/slapgrid/slappart15/srv/project/slapos/software/metabase/software.cfg
      dufs /srv/slapgrid/slappart15/srv/project/slapos/software/webdav/software.cfg
      ```
      
      ```console
      $ slapos service info slapos-sr-testing
      Software Release URL: /srv/slapgrid/slappart15/srv/project/slapos/software/slapos-sr-testing/software.cfg
      Instance state: busy
      Instance parameters:
      {}
      Connection parameters:
      ("<?xml version='1.0' encoding='utf-8'?>\n"
      '<instance>\n'
      '  <parameter '
      'id="environment-script">/srv/slapgrid/slappart15/srv/runner/instance/slappart7/etc/slapos-local-development-environment.sh</parameter>\n'
      ```
      
      ## after
      
      ```console
      $ slapos service list
      {
        "dufs": "/srv/slapgrid/slappart15/srv/project/slapos/software/webdav/software.cfg",
        "erp5": "/srv/slapgrid/slappart15/srv/project/slapos/software/erp5/software.cfg",
        "hugo": "/srv/slapgrid/slappart15/srv/project/slapos/software/hugo/software.cfg",
        "metabase": "/srv/slapgrid/slappart15/srv/project/slapos/software/metabase/software.cfg",
        "slapos-sr-testing": "/srv/slapgrid/slappart15/srv/project/slapos/software/slapos-sr-testing/software.cfg",
        "slapos-testing": "/srv/slapgrid/slappart15/srv/project/slapos/software/slapos-testing/software.cfg"
      }
      ```
      ```console
      $ slapos service info slapos-sr-testing
      {
        "software-url": "/srv/slapgrid/slappart15/srv/project/slapos/software/slapos-sr-testing/software.cfg",
        "instance-state": "busy",
        "instance-parameters": {},
        "connection-parameters": {
          "environment-script": "/srv/slapgrid/slappart15/srv/runner/instance/slappart7/etc/slapos-local-development-environment.sh"
        }
      }
      ```
      
      
      See merge request nexedi/slapos.core!441
      58888667
    • Jérome Perrin's avatar
      cli/info,list: output in json format · b623b78b
      Jérome Perrin authored
      because json output is different on python2 and python3 and cli is only
      used on python2, we don't test the exact output in python2.
      b623b78b
  3. 24 Oct, 2022 2 commits
    • Jérome Perrin's avatar
      cli/info: better output of connection parameters · 0642e884
      Jérome Perrin authored
      before:
      
          $ slapos service info slapos-sr-testing
          Software Release URL: /srv/slapgrid/slappart15/srv/project/slapos/software/slapos-sr-testing/software.cfg
          Instance state: busy
          Instance parameters:
          {}
          Connection parameters:
          ("<?xml version='1.0' encoding='utf-8'?>\n"
           '<instance>\n'
           '  <parameter '
           'id="environment-script">/srv/slapgrid/slappart15/srv/runner/instance/slappart7/etc/slapos-local-development-environment.sh</parameter>\n'
      
      after:
      
          $ slapos service info slapos-sr-testing
          Software Release URL: /srv/slapgrid/slappart15/srv/project/slapos/software/slapos-sr-testing/software.cfg
          Instance state: busy
          Instance parameters:
          {}
          Connection parameters:
          {'environment-script': '/srv/slapgrid/slappart15/srv/runner/instance/slappart7/etc/slapos-local-development-environment.sh'}
      0642e884
    • Thomas Gambier's avatar
      slapos_web_deploy: upgrade pip before using it · 4d34122a
      Thomas Gambier authored
      This is particularly needed for old OS with python2: very old versions of
      pip are trying to install latest version of eggs no matter their python2
      compatibility whereas pip 20 is making sure to install only python2
      compatible eggs.
      4d34122a
  4. 20 Oct, 2022 2 commits
  5. 17 Oct, 2022 1 commit
  6. 13 Oct, 2022 2 commits
  7. 10 Oct, 2022 2 commits
  8. 07 Oct, 2022 1 commit
  9. 06 Oct, 2022 8 commits
  10. 03 Oct, 2022 9 commits
  11. 29 Sep, 2022 3 commits
  12. 27 Sep, 2022 4 commits
  13. 23 Sep, 2022 3 commits