Skip to content
Snippets Groups Projects
  1. Jan 28, 2011
  2. Jan 27, 2011
    • Iustin Pop's avatar
      cluster verify: add hvparams verification · 58a59652
      Iustin Pop authored
      
      Currently, the validity of the hypervisor parameters is only checked
      at init/modification time, and not in the cluster verify. This is bad,
      as it can lead to inconsistent state that is only detected when the
      next modification (which can be unrelated) is made, leading to
      unexpected error messages.
      
      This patch adds both syntax verification (in masterd) and validity
      verification on remote nodes. The downside of the patch is that on
      clusters with many instances which have custom parameters, it will be
      slow. A possible improvement would be to detect duplicate, identical
      set of parameters, and collapse these into a single verification, but
      that is left as a TODO (in case it becomes problematic).
      
      An additional change is in utils.ForceDict, where we said 'key',
      whereas this function is always used with parameter dicts, so I
      changed it to "Unknown parameter".
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      58a59652
  3. Jan 21, 2011
  4. Jan 20, 2011
  5. Jan 18, 2011
  6. Jan 14, 2011
  7. Jan 07, 2011
  8. Jan 06, 2011
  9. Jan 05, 2011
  10. Dec 21, 2010
    • Iustin Pop's avatar
      Allow customisation of the disk index separator · 3536c792
      Iustin Pop authored
      
      As per issue 124, some Xen versions (or packaging) don't deal nicely
      with the colon being part of a disk name. Therefore we add a
      configure-time option for customising this.
      
      Note: setting the separator to interesting values like / is not
      handled by the code. This being a configure-time option (e.g. to be
      set by distribution packagers), we assume the person building the code
      knows what they are doing.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      3536c792
  11. Dec 14, 2010
  12. Dec 13, 2010
  13. Dec 08, 2010
  14. Dec 07, 2010
  15. Dec 01, 2010
  16. Nov 29, 2010
  17. Nov 27, 2010
    • 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
  18. Nov 25, 2010
  19. Nov 22, 2010
  20. Nov 19, 2010
  21. Nov 10, 2010
  22. Oct 28, 2010
    • Michael Hanselmann's avatar
      Add support and checks for version in LUXI · e986f20c
      Michael Hanselmann authored
      
      A new constant, LUXI_VERSION, is used to verify the peer's version. The
      version is optional, so old(er) clients and servers talking to peers not
      supporting it won't break. Example with mismatching library:
      
      $ gnt-instance list
      Unhandled Ganeti error: LUXI version mismatch, server 2020000, request
      1010000
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      e986f20c
    • Iustin Pop's avatar
      Add support for vm_capable in cluster verify · 8964ee14
      Iustin Pop authored
      
      The method to make vm_capable integrate easily into cluster verify is as follows:
      
      - we add a new NV_VMNODES that represents *non*-vm-capable nodes
      - the LU populates this list (it's expected that non-vm_capable nodes
        are few compared to vm_capable nodes)
      - backend skips the checks that are related to VM hosting
      - in the LU, we reorder the VM-related checks so that they occur after
        the non-VM (generic) tests, and we only execute them conditionally
      
      Additionally, we add some support to the instance checks to detect
      instances living on bad nodes.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      8964ee14
  23. Oct 26, 2010
  24. Oct 22, 2010
  25. Oct 05, 2010
    • Miguel Di Ciurcio Filho's avatar
      kvm: Introduce support for -mem-path · 4f958b0b
      Miguel Di Ciurcio Filho authored
      
      Using hugepages, KVM instances can get a good performance boost. To
      activate that, we need to pass the -mem-path argument to KVM along with
      the mount point of the hugetlbfs file system on the node.
      
      For the sake of memory availability computation, we use the -mem-prealloc
      argument when enabling hugepages, so KVM will reserve all hugepages it
      needs when it starts. This avoids allocating an instance on a node that
      will not have enough pages in case other instance needs more than what
      is available after it boots.
      
      Signed-off-by: default avatarMiguel Di Ciurcio Filho <miguel.filho@gmail.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      4f958b0b
  26. Sep 30, 2010
  27. Sep 22, 2010
Loading