An error occurred fetching the project authors.
  1. 08 Sep, 2022 1 commit
  2. 16 Aug, 2022 1 commit
  3. 01 Aug, 2022 1 commit
  4. 26 Jul, 2022 1 commit
  5. 12 Jul, 2022 1 commit
    • Łukasz Nowak's avatar
      kvm: Implement external-disk · e7b48c0b
      Łukasz Nowak authored
      Support absolute and relative paths. Paths starting with "rbd:" are special,
      and they point to the rbd endpoint, served by Ceph.
      
      cache parameter is optional, in case if present, will be used as-is, even with
      empty cache.
      
      external-disk-number, external-disk-size and external-disk-format has been
      removed from the schema to become hidden, nevertheless it's expected to be
      fully supported, as long tests are kept.
      
      Loudly fail in case if old and new ways are used in the same time.
      e7b48c0b
  6. 13 Jun, 2022 2 commits
    • Łukasz Nowak's avatar
      kvm: Assume proper type for booleans · 28eb2564
      Łukasz Nowak authored
      Thanks to migration to json-in-xml serialisation some lower level bugs has
      been discovered with value types in the profiles, so simply fix it.
      28eb2564
    • Łukasz Nowak's avatar
      kvm: Switch default and kvm-cluster to json-in-xml · fc7142e1
      Łukasz Nowak authored
      default and kvm-cluster software types are now json-in-xml, so they accept
      and return json-in-xml.
      
      Update tests to show that xml and json-in-xml serialization works.
      
      Note: There was invective to publish with pure XML serialisation, but it is
      wrong idea because:
      
       1) serialisation in the software.cfg.json is provided for both ways
       2) requesting instances with given serialisation by profiles expect same
          serialisation
      
      Request resilient instances with serialised, as they reply with json-in-xml.
      fc7142e1
  7. 28 Apr, 2022 1 commit
  8. 07 Mar, 2022 1 commit
    • Łukasz Nowak's avatar
      kvm: Improve boot image url handling · 5da9c082
      Łukasz Nowak authored
      image-download-controller raises error state during download process, to
      inform other components that download is not ready yet.
      
      template-kvm-run.in asserts presence of all images and otherwise refuses to
      start, so that it gives chance for the image to being downloaded.
      
      Sorting images happen by proper key instead of needless links.
      
      Fix race condition, as the hash parameter shall depend on boot image url
      configuration, and not it's failure state.
      5da9c082
  9. 17 Feb, 2022 1 commit
    • Łukasz Nowak's avatar
      Fix "kvm: Drop ipv4-network-info" · 3939aebb
      Łukasz Nowak authored
      As refernce to the network-config-ipv4 part has been removed from the
      publish-connection-information the part was not installed anymore, so the
      netconfig.sh file was not added.
      
      Fixed it by simply adding this part to the installed ones.
      
      This fixes commit 3f7d8965
      3939aebb
  10. 12 Jan, 2022 1 commit
  11. 10 Dec, 2021 1 commit
  12. 03 Dec, 2021 3 commits
  13. 22 Nov, 2021 1 commit
    • Thomas Gambier's avatar
      software/kvm: fix wipe-disk-device-wrapper · 2048ceb8
      Thomas Gambier authored
      Without a shebang, supervisord refuses to run the script with the
      following error:
      
      supervisor: couldn't exec /srv/slapgrid/slappart8/etc/prerm/slapos_wipe_device_disk: ENOEXEC
      supervisor: child process was not spawned
      
      This is a fixup of 0983f1ca
      2048ceb8
  14. 15 Nov, 2021 1 commit
  15. 29 Oct, 2021 1 commit
  16. 28 Oct, 2021 1 commit
  17. 18 Oct, 2021 1 commit
  18. 11 Oct, 2021 1 commit
  19. 08 Jul, 2021 1 commit
    • Łukasz Nowak's avatar
      kvm: Minimise restart reaction of the KVM wrapper · 6bdc1062
      Łukasz Nowak authored
      Thanks to minimising amount of changing parameters of the wrapper, by setting
      RAM and CPU to "init" values, it's possible to not restart the wrapper in case
      of device hotplugging in for changes of those parameters.
      
      Note that this shows regressiong to enable-device-hotplug which happened
      after upgrade to qemu 5.2.0 in 8dc22418.
      
      slapos.toolbox is added in order to use qemuqmpclient.
      6bdc1062
  20. 29 Jun, 2021 1 commit
  21. 11 May, 2021 2 commits
  22. 07 May, 2021 1 commit
    • Julien Muchembled's avatar
      kvm: do not try to correct disk-related parameters · 128a37e0
      Julien Muchembled authored
      The user must be aware of any mistake he did. For example, he may lose
      time by not understanding why the VM does not behave as expected or by
      distorting measures in benchmarks.
      
      The only legitimate reason to automatically fix a parameter is backward
      compatibility, if a value is not valid anymore. But such fallback
      should only be temporary. There's no such case recently.
      
      At last, it increased maintenance by having to keep the lists of valid
      values up-to-date.
      
      About:
      
        -  if disk_info['io'] == 'native':
        -    additional_disk_options += ',cache.direct=on'
      
      These lines are redundant when cache is none.
      128a37e0
  23. 27 Apr, 2021 1 commit
  24. 19 Apr, 2021 1 commit
  25. 14 Apr, 2021 1 commit
  26. 09 Apr, 2021 4 commits
    • Łukasz Nowak's avatar
      kvm: Implement whitelist firewall · 97225683
      Łukasz Nowak authored
      Sources of domains and IPs are:
      
       * default hardcoded in template/whitelist-domains-default
       * /etc/resolv.conf
       * provided in the request
       * provided in the special downloadble repository
      
      Then they are parsed with dnsresolver and .slapos-whitelist-firewall file is
      produced with list of IPs to be whitelisted.
      
      This allows slapos.core whitelistfirewall manager to lock-down the partition
      to only whitelisted list of IPs.
      97225683
    • Łukasz Nowak's avatar
      kvm: Protect against buildout-unfriendly values · 49872dd2
      Łukasz Nowak authored
      Even if boot-image-url-select is not designed to contain bad values, they can
      happen, so add protection just like with boot-image-url-list.
      49872dd2
    • Łukasz Nowak's avatar
    • Łukasz Nowak's avatar
      kvm: Fix kvm-resilient usage · 60f31cdd
      Łukasz Nowak authored
      instance-kvm-export.cfg were copying parts defined in instance-kvm.cfg, but as
      the latter one was evolving a lot, it was missing features.
      
      For simplicity let instance-kvm.cfg expose the parts in a way, that
      instance-kvm-export.cfg can blindly append the to list of own parts, as it has
      to support resiliency exporter by itself.
      60f31cdd
  27. 01 Apr, 2021 1 commit
  28. 09 Mar, 2021 1 commit
  29. 15 Sep, 2020 2 commits
  30. 14 Aug, 2020 2 commits
    • Łukasz Nowak's avatar
      software/kvm: Set cpu-max-count and ram-max-size defaults correctly · a5bdb631
      Łukasz Nowak authored
      As cpu-count and ram-size can be setup freely by the user, the cpu-max-count
      and ram-max-size shall follow it.
      
      Otherwise it generates hard to track issues with starting VMs.
      a5bdb631
    • Łukasz Nowak's avatar
      software/kvm: Implement downloadable images · 0d3e8749
      Łukasz Nowak authored
      Downloadable images are enabled when key image-url-list (described in
      instance-kvm-input-schema.json) is present.
      
      Images are downloaded outside of partition processing, as this can take a lot
      of time by template/image-download-controller.py
      
      Configuration is checked and cleaned up by
      template/image-download-config-creator.py
      
      Promises are used for:
      
       * checking if the current configuration from the request has been processed
       * checking status of configuration generation, image download process and
         checksum validity
      
      Details about errors are exposed by using monitor stack provided HTTP server,
      so that user is able to take informed decision about how to fix the problem.
      0d3e8749
  31. 12 May, 2020 1 commit