1. 05 Aug, 2020 1 commit
  2. 19 Nov, 2019 1 commit
  3. 07 Oct, 2019 1 commit
    • Jérome Perrin's avatar
      turnserver: workaround zero-knowledge.read limitation · ad7603f0
      Jérome Perrin authored
      slapos.cookbook:zero-knowledge.read has this limitation that because it
      reads the secret file on __init__, ie. before any other parts are
      installed, the value cannot be read the first time.
      On first slapos node instance run, the generated turnserver-config has
      an empty secret, it's only after the second execution that the secret is
      generated. What happens is:
       - first run:
         - read-secret __init__ cannot find the file and does not override
           secret
         - turnserver-config uses the default ${read-secret:secret} (empty
           string)
         - gen-secret install creates the secret file
       - second run
         - read-secret __init__ finds the file and override secret with the
           value read from the file.
         - turnserver-config uses the overriden ${read-secret:secret} (good
           secret)
      
      This was not a problem before, because some frontend promise were
      always failing, so we processed this partition several time, but now it
      is succesfully processed the first time.
      
      To workadound this, we prevent turnserver from starting if secret is
      empty, then promise will fail, instance will be processed a second time
      and then turnserver will run with a secret.
      ad7603f0
  4. 04 Oct, 2019 1 commit
    • Thomas Gambier's avatar
      do not create two wrappers for the same executable if hash change · ed707d3b
      Thomas Gambier authored
      Prevent creating 2 wrapper for the same service if hash changed. Here, one service is exited because port is used by the firt to service to start:
      
          slappart6:runner-sshd-4248650e36a9a26a6481df1baffd9f58-on-watch                RUNNING   pid 27835, uptime 0:03:45
          slappart6:runner-sshd-b3b68f4278ceb84691ec27521ea229eb-on-watch                EXITED    Mar 06 04:52 PM
      
      To achieve that, update slapos.cookbook and use hash-existing-files option of wrapper recipe
      
      hash-existing-files list all the files used for hash that are not
      handled by buildout. For those files, the hash is calculated as soon as
      the __init__ function so that if there is a change in those files,
      buildout will remove the existing wrapper (it will uninstall the
      section) and replace it with the new wrapper.
      
      /reviewed-on nexedi/slapos!525
      ed707d3b
  5. 30 Aug, 2019 1 commit
    • Alain Takoudjou's avatar
      add turnserver software release · 53b3e115
      Alain Takoudjou authored
      This turnserver work on IPv6 but to allow communication with all devices, external-ip parameter is used to set public IPv4 which will be used by client.
      53b3e115