1. 21 Jan, 2009 1 commit
    • Iustin Pop's avatar
      Fix some more pylint errors · c979d253
      Iustin Pop authored
      Two are real errors (invalid names) and one is style error (overriding
      name from outer scope).
      
      Reviewed-by: ultrotter
      c979d253
  2. 20 Jan, 2009 1 commit
  3. 13 Jan, 2009 1 commit
    • Iustin Pop's avatar
      Forward port the live migration from 1.2 branch · 53c776b5
      Iustin Pop authored
      This is forward port via copy (and not individual patches cherry-pick)
      of the latest code on the 1.2 branch related to the migration.
      
      The changes compared to 1.2 are the fact that we don't need the
      IdentifyDisks step anymore (the drbd rpc calls are independent now), and
      the rpc module improvements.
      
      Reviewed-by: ultrotter
      53c776b5
  4. 07 Jan, 2009 1 commit
    • Iustin Pop's avatar
      Simplify hypervisor block_devices structure · 069cfbf1
      Iustin Pop authored
      This is a partial forward-port of commit 1136 on the 1.2 branch:
      
        The hypervisor doesn't need to be passed the whole block device
        structure, so we'll just give it the block device name on the local
        node, and the name as seen by the instance. This will make it easier to
        manipulate it later without messing with the block devices (eg. by
        changing the system name to a symlink to the name itself).
      
        Since the HVM hypervisor changes the "virtual" name a note is added
        calling for a redesign that doesn't need this change, as different
        hypervisors and emulation types will anyway have different names for
        exported devices.
      
        Reviewed-by: iustinp
      
      The changes in this patch compared to the original are:
        - we keep passing the original disk object, not for its iv_name, but
          for it's physical_id which is needed by the file driver (this could
          be fixed maybe)
        - we don't use the iv_name anymore, since in 2.0 we already use the
          index of the device
      
      Original-Author: ultrotter
      069cfbf1
  5. 06 Jan, 2009 1 commit
  6. 14 Dec, 2008 1 commit
  7. 11 Dec, 2008 1 commit
    • Iustin Pop's avatar
      Fix epydoc format warnings · c41eea6e
      Iustin Pop authored
      This patch should fix all outstanding epydoc parsing errors; as such, we
      switch epydoc into verbose mode so that any new errors will be visible.
      
      Reviewed-by: imsnah
      c41eea6e
  8. 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
  9. 20 Oct, 2008 1 commit
  10. 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
  11. 04 Sep, 2008 1 commit
  12. 02 Sep, 2008 1 commit
  13. 29 Aug, 2008 1 commit
  14. 30 Jul, 2008 1 commit
  15. 16 Jun, 2008 1 commit
  16. 31 May, 2008 1 commit
  17. 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
  18. 06 May, 2008 1 commit
  19. 05 May, 2008 1 commit
  20. 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
  21. 22 Apr, 2008 1 commit
  22. 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
  23. 31 Jan, 2008 1 commit
  24. 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
  25. 11 Jan, 2008 1 commit
  26. 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
  27. 20 Dec, 2007 3 commits
  28. 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
  29. 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
  30. 11 Oct, 2007 1 commit
  31. 10 Oct, 2007 2 commits
  32. 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
  33. 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
  34. 26 Jul, 2007 1 commit
  35. 16 Jul, 2007 1 commit