1. 17 Feb, 2009 1 commit
  2. 12 Feb, 2009 1 commit
    • Iustin Pop's avatar
      Some small fixes · 5b460366
      Iustin Pop authored
      This patch removes the admin_ram LUQueryInstances field (is broken
      anyway) and fixes the VNC address checks in the Xen Hypervisor.
      
      Reviewed-by: imsnah
      5b460366
  3. 09 Feb, 2009 4 commits
    • Guido Trotter's avatar
      Xen-HVM: Improve the invalid disk/nic type error · 5155ede7
      Guido Trotter authored
      Copy the message from the KVM one, adding a missing 'the' and a list of
      possible values, to help the user in his decision.
      
      Reviewed-by: iustinp
      5155ede7
    • Guido Trotter's avatar
      Rename the device type constants · d08f6067
      Guido Trotter authored
      These are not HVM specific, so have been given an HT generic name.
      
      Reviewed-by: iustinp
      d08f6067
    • Guido Trotter's avatar
      s/HT_HVM_VNC_BASE_PORT/VNC_BASE_PORT/g · 377d74c9
      Guido Trotter authored
      The VNC base port has nothing to do with HVM itself, and is general to
      VNC itself, so we're removing the HT_HVM prefix to the constant.
      
      Reviewed-by: iustinp
      377d74c9
    • Iustin Pop's avatar
      Export the cpu nodes and sockets from Xen · 0105bad3
      Iustin Pop authored
      This is a hand-picked forward patch of commit 1755 on the 1.2 branch
      (hand-picked since the trees diverged too much since then):
      
          The patch changed the xen hypervisor to compute the number of cpu
          sockets/nodes and enables the command line and the RAPI to show this
          information (for RAPI is enabled by default in node details, for gnt-one
          one can use the new “cnodes” and “csockets” fields).
      
          Originally-Reviewed-by: ultrotter
      
      For the KVM and fake hypervisors, the patch just exports 1 for both
      nodes and sockets. This can be fixed, by looking at the
      /sys/devices/system/cpu/cpuN/topology directories, and computing the
      actual information, but that should be done in a separate patch.
      
      Reviewed-by: imsnah
      0105bad3
  4. 07 Feb, 2009 1 commit
    • Guido Trotter's avatar
      Get rid of constants.HT_HVM_DEFAULT_BOOT_ORDER · 30948aa6
      Guido Trotter authored
      Confusingly, as a leftober from 1.2, there was a
      constants.HT_HVM_DEFAULT_BOOT_ORDER constant, with a value opposite to
      the default HV_BOOT_ORDER hv param that got enabled only if
      HV_BOOT_ORDER was set to None. Since setting it to None is very
      hard/impossible for the user, and we didn't handle other "empty" values
      (False, ''), we'll just force the parameter to have a valid value (after
      all we have a default, and that's the way we use hvparams) and get rid
      of the old constant altoghether.
      
      Reviewed-by: iustinp
      30948aa6
  5. 29 Jan, 2009 1 commit
    • Guido Trotter's avatar
      GetShellCommand: get hvparams and beparams · 5431b2e4
      Guido Trotter authored
      Sometimes the hypervisor will use the instance hv and/or be parameters
      to determine the best shell command. This is not possible, though,
      currently, as the instance hv/beparams are not filled, so we have to
      pass the filled versions separately.
      
      Reviewed-by: iustinp
      5431b2e4
  6. 28 Jan, 2009 1 commit
  7. 27 Jan, 2009 4 commits
  8. 23 Jan, 2009 1 commit
  9. 21 Jan, 2009 2 commits
    • Guido Trotter's avatar
      Xen: implement auxiliary migration functions · 4390ccff
      Guido Trotter authored
      These are used, for the xen hypervisor, to copy the xen config file to
      the remote node. This breaks migration for instances which have been
      migrated, but not restarted, with the old code, for which the config
      file was just lost.
      
      Reviewed-by: iustinp
      4390ccff
    • 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
  10. 20 Jan, 2009 1 commit
  11. 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
  12. 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
  13. 06 Jan, 2009 1 commit
  14. 14 Dec, 2008 1 commit
  15. 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
  16. 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
  17. 20 Oct, 2008 1 commit
  18. 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
  19. 04 Sep, 2008 1 commit
  20. 02 Sep, 2008 1 commit
  21. 29 Aug, 2008 1 commit
  22. 30 Jul, 2008 1 commit
  23. 16 Jun, 2008 1 commit
  24. 31 May, 2008 1 commit
  25. 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
  26. 06 May, 2008 1 commit
  27. 05 May, 2008 1 commit
  28. 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
  29. 22 Apr, 2008 1 commit
  30. 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
  31. 31 Jan, 2008 1 commit
  32. 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