1. 20 Nov, 2008 1 commit
    • Iustin Pop's avatar
      Change Xen hypervisor to not use iv_name · 2864f2d9
      Iustin Pop authored
      Currently the iv_name is very linux-specific, and will break with the
      multi-disk changes.
      
      The patch changes this to generate sdX names based on the disk index in
      the disks structure, instead of relying on the iv_name.
      
      Reviewed-by: imsnah
      2864f2d9
  2. 20 Oct, 2008 1 commit
  3. 14 Oct, 2008 2 commits
    • Iustin Pop's avatar
      Change hypervisors to use the beparams · 8b3fd458
      Iustin Pop authored
      This patch changes the hypervisor functions to use the beparams dict
      instead of the instance attributes.
      
      Reviewed-by: ultrotter
      8b3fd458
    • Iustin Pop's avatar
      Implement the new hypervisor API in base/xen · f48148c3
      Iustin Pop authored
      This patch adds the new methods CheckParameterSyntax and the
      ValidateParameters in the base and xen hypervisors. It also changes the
      xen hypervisor to use the new hvparams field on instance.
      
      Reviewed-by: imsnah
      f48148c3
  4. 04 Sep, 2008 1 commit
  5. 02 Sep, 2008 1 commit
  6. 29 Aug, 2008 1 commit
  7. 30 Jul, 2008 1 commit
  8. 16 Jun, 2008 1 commit
  9. 31 May, 2008 1 commit
  10. 09 May, 2008 1 commit
    • Michael Hanselmann's avatar
      Remove utils.CheckDaemonAlive and use “xm info” instead · e3e66f02
      Michael Hanselmann authored
      There are a couple of reasons for doing so:
      - /proc is not OS independent, it's only supported by Linux (there are
        emulations on other systems, but those might differ from the way
        Linux represents data).
      - Checking a daemon's state doesn't necessarily mean it's usable.
        Connecting to the socket using “xm info” is much safer.
      - Reduce code size.
      
      Reviewed-by: iustinp
      e3e66f02
  11. 06 May, 2008 1 commit
  12. 05 May, 2008 1 commit
  13. 28 Apr, 2008 1 commit
    • Michael Hanselmann's avatar
      Split hypervisor.py into several files · 65a6f9b7
      Michael Hanselmann authored
      Before it was a huge file with more than 700 lines. No code changes were
      made except for changing imports and class names where needed. In the
      future, we could even think about only importing the hypervisors we
      actually need. The patch finished QA scripts and distcheck successfully.
      
      Reviewed-by: iustinp
      65a6f9b7
  14. 22 Apr, 2008 1 commit
  15. 08 Apr, 2008 1 commit
    • Manuel Franceschini's avatar
      Modify hypervisor to support file backend · e994fcba
      Manuel Franceschini authored
      The driver in the xen config file needs to be changed when dealing with
      files rather then bdevs.
      
      This patch does two things:
      - Add _GetConfigFileDiskData to XenHypervisor which returns the correct
        disk xen config line. This function checks the logical disk type of
        every given block device, such that also hybrid (e.g. mixed drbd and
        file VBDs) are possible
      - Make Xen[Pvm|Hvm]Hypervisor._WriteConfigFile() a classmethod to be
        able to call the helper function _GetConfigFileDiskData() in their
        parent XenHypervisor
      
      Reviewed-by: iustinp
      e994fcba
  16. 31 Jan, 2008 1 commit
  17. 20 Jan, 2008 1 commit
    • Iustin Pop's avatar
      Fix run directory for the fake hypervisor · 1ed70996
      Iustin Pop authored
      Currently the fake hypervisor has hardcoded ‘/var/run’ as a base
      directory for its store. This patch adds a constant RUN_DIR that is used
      for both the fake hypervisor and for BDEV_CACHE_DIR.
      
      Reviewed-by: ultrotter
      1ed70996
  18. 11 Jan, 2008 1 commit
  19. 08 Jan, 2008 1 commit
    • Iustin Pop's avatar
      Change the Xen PVM to use the new kernel options · 03abdbe8
      Iustin Pop authored
      This patch changes the hypervisor to use the new kernel and initrd
      instance attributes. They kernel is handled as expected (use the custom
      or the default one), but the initrd is treated a little bit special, in
      order to keep compatibility with previous behaviour:
        - if customized and not found, raise an error
        - if default and not found, do not use one
      
      Reviewed-by: imsnah
      03abdbe8
  20. 20 Dec, 2007 3 commits
  21. 18 Dec, 2007 2 commits
    • Alexander Schreiber's avatar
      Internal API change for instance console access. · 30989e69
      Alexander Schreiber authored
      Change the internal hypervisor API for GetShellCommandForConsole, we
      now call it with the instance instead of just the instance name.
      
      This is a prep patch for HVM, since HVM needs more than just the instance
      name to determine a way of console access.
      
      (this is a resend due to mail adress tyop)
      
      Reviewed-by: iustinp
      
      30989e69
    • Alexander Schreiber's avatar
      cleanup for hypervisor constants · 2584d4a4
      Alexander Schreiber authored
      Move constant definitions for hypervisor into constants.py
      
      Reviewed-by: ultrotter
      
      2584d4a4
  22. 04 Dec, 2007 1 commit
    • Iustin Pop's avatar
      Log instance startup errors correctly · 523687d7
      Iustin Pop authored
      Currently, the Hypervisor error raised on ‘xm create’ failure doesn't
      contain the actual output from the command, thus what we log to the node
      daemon log is not helpful enough. This patch fixes that.
      
      Reviewed-by: schreiberal
      523687d7
  23. 11 Oct, 2007 1 commit
  24. 10 Oct, 2007 2 commits
  25. 30 Aug, 2007 1 commit
    • Iustin Pop's avatar
      Document kernel selection method · 16450d30
      Iustin Pop authored
      This changelist add:
        - documentation on how to select the kernel and initrd (if needed) for
          instances
        - support in hypervisor.py for the initrd
        - adds note about internet-connectivity and debootstrap requirements
          for the minimal etch os
        - documentation on the miminum xenvg size
      
      Reviewed-by: roman.marxer,ultrotter
      16450d30
  26. 14 Aug, 2007 1 commit
    • Iustin Pop's avatar
      Style changes for pep-8 and python-3000 compliance. · 3ecf6786
      Iustin Pop authored
      This changes the raising of exceptions from:
        raise Exception, value
      to
        raise Exception(value)
      
      as the first form will be removed in python-3000 and the second form is
      preferred now.
      
      The changes also involve a few cases of changing from raising standard
      exceptions and use our own ones.
      
      The new version also fixes many pylint-generated warnings, especially in
      ganeti-noded where I changed many methods to @staticmethod.
      
      There is no functionality changed (barring any bugs).
      3ecf6786
  27. 26 Jul, 2007 1 commit
  28. 16 Jul, 2007 1 commit