1. 27 Nov, 2010 2 commits
    • 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
  2. 26 Nov, 2010 5 commits
  3. 25 Nov, 2010 5 commits
  4. 24 Nov, 2010 5 commits
  5. 23 Nov, 2010 9 commits
  6. 22 Nov, 2010 2 commits
  7. 19 Nov, 2010 8 commits
  8. 18 Nov, 2010 3 commits
    • Iustin Pop's avatar
      Reinstall instance: disallow offline secondaries · 9aacb199
      Iustin Pop authored
      Currently, reinstallation of a DRBD instance with the secondary node offline does:
      
      node1# gnt-instance reinstall -f instance1
      Waiting for job 139053 for instance1...
      Thu Nov 18 01:36:09 2010  - WARNING: Could not prepare block device disk/0 on node node3 (is_primary=False, pass=1): Node is marked offline
      Thu Nov 18 01:36:09 2010  - WARNING: Could not shutdown block device disk/0 on node node3: Node is marked offline
      Job 139053 for instance1 has failed: Failure: command execution error:
      Disk consistency error
      
      Since this fails anyway, let's check the secondary nodes, thus
      preventing any modifications to the instance (e.g. OS type change):
      
      node1# gnt-instance reinstall -f instance1
      Waiting for job 139058 for instance1...
      Job 139058 for instance1 has failed: Failure: prerequisites not met for this operation:
      error type: wrong_state, error details:
      Instance secondary node offline, cannot reinstall: node3
      
      The patch needs modifications to the _CheckNodeOnline function, in order
      to display meaningful messages ("Can't use offline node" would be very
      confusing for an instance reinstall, since we didn't select a node
      manually).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      9aacb199
    • Iustin Pop's avatar
      QA: check that doubly modifying an OS state is OK · 89e8af70
      Iustin Pop authored
      This would have prevented the bug fixed in the previous patch :(
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      89e8af70
    • Iustin Pop's avatar
      Fix breakage in OS state modify · e2334900
      Iustin Pop authored
      I was using the feedback_fn function incorrectly (it doesn't
      automatically expand the arguments).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      e2334900
  9. 17 Nov, 2010 1 commit