1. 22 May, 2020 2 commits
    • Thomas Gambier's avatar
      fix xml2dixt and dict2xml · a955c880
      Thomas Gambier authored
      software releases expects _ parameter to be a string with JSON inside
      not a python dict so we partially revert 2acef14b
      and we do the nice printing of JSON parameters in getInformation
      a955c880
    • Jérome Perrin's avatar
      Proxy: Forward requests as partition and use it in standalone · e0b4339e
      Jérome Perrin authored
      The idea is to make it possible while embedding SlapOS in an existing partition to configure that some requests are forwarded to the master of the partition and to make these requests as the partition - so that when this partition is destroyed all other partitions from the embedded partitions are destroyed.
      
      A bit more integration in slapos is still needed, but is intended to be used in theia (and why not webrunner):
      
      At the beginning theia's instance  looks like this:
      
      ![screenshot of theia hosting subscription on slapos master, with the default 3 partitions](/uploads/9a297dbbae49996fb7ee69e89ea75da1/image.png)
      
      after an ERP5 instance is requested in theia's embedded slapos, the partition requests are forwarded as this partition and appear here, as requested by theia:
      
      ![screenshot of theia hosting subscription on slapos master, frontend partitions requested by ERP5 appears as requested by theia](/uploads/37b8b30ca117a1251fc2bd099a5dac82/image.png)
      
      This can also allow transparent integration, because the partition credentials are known by the partition, unlike the user credentials.
      
      See merge request !218
      e0b4339e
  2. 20 May, 2020 7 commits
  3. 19 May, 2020 1 commit
  4. 18 May, 2020 1 commit
  5. 15 May, 2020 4 commits
  6. 14 May, 2020 5 commits
    • Rafael Monnerat's avatar
      Master: Include authentification Policy BT5 · 7862ea47
      Rafael Monnerat authored
        slapos_erp5: Add erp5_authentication_policy as project dependency
        slapos_cloud: Define standard configuration for authentication policy
        Update tests on various bt5.
      7862ea47
    • Rafael Monnerat's avatar
      slapos_subscription_request: Refactor Subscription Request workflow · e95da4ac
      Rafael Monnerat authored
        Modifies the Workflows meaning for Support Request Workflow
      
          Draft: Reservation isn't Payed, Person is created
          Planned: Reservation is Payed, User is going to be Notified
          Ordered: First month isn't payed, Hosting Subscription is created
                   (started), user is notified about the payment to be done.
      
          Confirmed: Hosting Subscription is stopped until the payment
                     is done. Once it done, instance is started and
                     user is Notified.
      
          Started: User is available for this user.
      
          Stopped/Delivered aren't implemented.
      
        Nothing is implemented inside the workflow itself, alarms calls the
        scripts which changes the transitions once everything is ready to move
        foward.
      
        Allocation aoccur when if subscription request is in ordered state. We
        allocate earlier to reserve the space until the payment is done.
      e95da4ac
    • Rafael Monnerat's avatar
      slapos_subscription_request: Accelerate generation of the invoice · 549de9c2
      Rafael Monnerat authored
      Call the API rather them wait for the alarm hourly alarm. This might update simulation as soon as possible once the Hosting Subscription is created.
      549de9c2
    • Rafael Monnerat's avatar
      Fix page_slap_intent.js and add zh_html.html · cacfb8e0
      Rafael Monnerat authored
      See merge request !221
      cacfb8e0
    • Lu Xu's avatar
      slapos: fix page_slap_intent.js and add zh_html · 95e11701
      Lu Xu authored
      95e11701
  7. 12 May, 2020 4 commits
  8. 11 May, 2020 3 commits
    • Jérome Perrin's avatar
      slap/standalone: support setting multi-master in slapos.cfg · 4825a8c4
      Jérome Perrin authored
      This allow to use standalone slapos with some requests being forwarded
      to another slapos master. The intended use case is to make have frontend
      requests forwarded to "real" slapos master when embedding slapos in
      theia or slaprunner.
      4825a8c4
    • Jérome Perrin's avatar
      slapos/proxy: support forwarding requests as a partition · c755cba8
      Jérome Perrin authored
      In SlapOS, both users or partitions can requests partitions. With the
      multimaster support of slapos proxy, all requests where made as a user,
      but in the case of recursive slapos - where a partition from the "outer"
      slapos includes an "inner" slapos, it makes sense to forward partitions
      requests as the partition in the "outer" slapos - this way when this
      partition is destroyed all partitions that might have been requested are
      also destroyed.
      
      To request as partition, the multi-master entry must define two extra
      keys:
       - computer, that can be optained by $${slap-configuration:computer}
      from instance buildout
       - partition, that can be optained by $${slap-configuration:partition}
      
      When these are not set, the request will be made as a user, like it was
      the case before.
      
      We also change the test to unset SLAPGRID_INSTANCE_ROOT because this
      implementation has side effect - the environment variable is set and
      never unset. Without this, test fail when running the full test suite
      because a previous test was leaking SLAPGRID_INSTANCE_ROOT. This is
      definitely something we'll have to improve later.
      c755cba8
    • Jérome Perrin's avatar
      slapos/proxy: use slapos API when forwarding request · 8f3a7989
      Jérome Perrin authored
      Eventhough implementation might be a bit more efficient is we use the
      low level API, we probably don't need performance here and it's easier
      to use the request API
      8f3a7989
  9. 08 May, 2020 6 commits
  10. 07 May, 2020 2 commits
  11. 06 May, 2020 2 commits
  12. 05 May, 2020 3 commits