1. 01 Dec, 2010 2 commits
  2. 30 Nov, 2010 7 commits
  3. 29 Nov, 2010 23 commits
  4. 28 Nov, 2010 3 commits
  5. 27 Nov, 2010 3 commits
    • Iustin Pop's avatar
      Fix breakage from previous commit e695efbf · b7d82e40
      Iustin Pop authored
      
      
      Wrong file name in Makefile.am and wrong naming (.unittest vs
      _unittest).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      b7d82e40
    • Iustin Pop's avatar
      Add missing paramter and unittests for this case · e695efbf
      Iustin Pop authored
      
      
      While git-am'ing the blockdev_prefix patch, I modified the hv_xen.py
      file but forgot to amend the patch :(, so here it is.
      
      Furthermore, to detect such inconsistencies in the future, a unittest is
      added that cross-checks the default parameters in constants.py and the
      hypervisor PARAMETERS dict.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      e695efbf
    • Maciej Bliziński's avatar
      Adding blockdev_prefix to hypervisor options · 525011bc
      Maciej Bliziński authored
      
      
      Allows to install Red Hat based systems, for example Oracle Linux.
      Tested with OEL.
      
      The hypervisor by default offers a device named 'sda'.  If the SCSI
      module is already loaded, the disk device can't be created due to naming
      conflict, and the disk is not available.  A workaround is to modify the
      initrd by removing the scsi driver from it.  This helps, but doesn't
      allow to install the OS.
      
      Red Hat's installer, anaconda, runs parted, which tries to execute a
      check against /dev/sda and fails.  This makes anaconda think that the
      disk is faulty, and not available.  The best way to work around this, is
      to declare 'xvda' as the xen disk device.  Red Hat version of parted
      package contains a patch which makes parted skip the SCSI test if device
      name starts with 'xvd'.
      
      This patch allows to pass -H xen-pvm:blockdev_prefix="xvd" and
      successfully run the Red Hat installer.
      Signed-off-by: default avatarMaciej Bliziński <blizinski@google.com>
      [iustin@google.com: added the new parameter to XenHvm PARAMS]
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      525011bc
  6. 26 Nov, 2010 2 commits
    • Iustin Pop's avatar
      RPC call_node_info: change protocol · cb6a0296
      Iustin Pop authored
      
      
      Currently, the call_node_info RPC does always check both the VG free
      space and the hypervisor information. However, in ⅔ of the uses, we only
      care about one or the other. Therefore, we change it so that if any of
      the passed parameters is None, we don't perform the respective check. We
      also modify its callers to only pass in what they need.
      
      This also helps if the "default" hypervisor is broken and we want to
      create an instance for another hypervisor.
      
      With this patch, the duration of this rpc changes from 500ms to 90ms for
      a normal LVM+Xen PVM node, when we only require the LVM data; when we
      only require the hypervisor data, it doesn't change (as the “xm list”
      time is dominant).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      cb6a0296
    • Iustin Pop's avatar
      asyncnotifier tests: simplify the setup code · 84ce674e
      Iustin Pop authored
      
      
      First change is to replace "range(len(self.NOTIFIERS)))" with
      self.NOTIFIERS, as range(len(range(N))) ≡ range(N).
      
      Sencond change is switch from an explicit indexing to use of zip.
      Unittests still pass :)
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      84ce674e