1. 11 Nov, 2009 1 commit
  2. 10 Nov, 2009 1 commit
  3. 06 Nov, 2009 1 commit
  4. 05 Nov, 2009 1 commit
  5. 04 Nov, 2009 4 commits
  6. 03 Nov, 2009 2 commits
  7. 22 Oct, 2009 3 commits
  8. 12 Oct, 2009 1 commit
  9. 09 Oct, 2009 2 commits
  10. 06 Oct, 2009 1 commit
  11. 24 Sep, 2009 3 commits
  12. 03 Sep, 2009 2 commits
  13. 18 Jun, 2009 1 commit
  14. 16 Jun, 2009 1 commit
  15. 15 Jun, 2009 1 commit
  16. 27 May, 2009 1 commit
    • Iustin Pop's avatar
      Add a node powercycle command · f5118ade
      Iustin Pop authored
      This (somewhat big) patch adds support for remotely rebooting the nodes
      via whatever support the hypervisor has for such a concept.
      For KVM/fake (and containers in the future) this just uses sysrq plus a
      ‘reboot’ call if the sysrq method failed. For Xen, it first tries the
      above, and then Xen-hypervisor reboot (we first try sysrq since that
      just requires opening a file handle, whereas xen reboot means launching
      an external utility).
      The user interface is:
          # gnt-node powercycle node5
          Are you sure you want to hard powercycle node node5?
          y/[n]/?: y
          Reboot scheduled in 5 seconds
      The node reboots hopefully after sending the reply. In case the clock is
      broken, “time.sleep(5)” might take ages (but then I suspect SSL
      negotiation wouldn't work).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
  17. 22 May, 2009 3 commits
  18. 19 May, 2009 2 commits
    • Iustin Pop's avatar
      Move to data-based hvparam checks instead of code · 205ab586
      Iustin Pop authored
      Currently the hypervisor parameters are checked using hard-coded snippets in
      each hypervisor. However, most parameter checks fall into three cases:
        - file check
        - directory check
        - string value in a set
      And the remaining ones are checked using simple functions.
      This patch moves to a declarative-style for these parameter checks; in
      hv_base we add the necessary infrastructure for these checks, and the
      above common cases.
      This translates into complete removal of the Check/Verify functions for
      the Xen hypervisors, and a drastic reduction for the KVM one (which has
      inter-parameter dependencies and thus can't use a simple table).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    • Iustin Pop's avatar
      Move more hypervisor strings into constants · 835528af
      Iustin Pop authored
      This patch adds constants for the mouse and boot order strings; while
      there are still some issues remaining, we're trying to cleanup hardcoded
      strings from the hypervisors.
      Since the formatting of frozensets is currently wrong, we also add an
      utility function for this and change all the error messages to use it.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
  19. 12 May, 2009 2 commits
  20. 05 May, 2009 1 commit
  21. 12 Mar, 2009 1 commit
    • Guido Trotter's avatar
      kvm: use the correct vnc bind address · 19498d6c
      Guido Trotter authored
      There is a bug in kvm, when binding vnc to a specific address the
      constant 'vnc_bind_address' is passed in, instead of the actual
      requested address. This patch fixes it.
      Reviewed-by: iustinp
  22. 27 Feb, 2009 1 commit
    • Guido Trotter's avatar
      Use EnsureDirs in KVM as well. · 9afb67fe
      Guido Trotter authored
      The KVM hypervisor has also code to ensure a list of directories exist.
      Substitute it with our new utils function.
      Reviewed-by: iustinp
  23. 24 Feb, 2009 2 commits
    • Iustin Pop's avatar
      Remove the extra_args parameter in instance start · 07813a9e
      Iustin Pop authored
      This patch removes the extra_args parameter and instead switches the
      instance to the HV_KERNEL_ARGS hypervisor option.
      This is a big change, but it's a needed cleanup, this extra parameter on
      all RPC calls is not generic and we also need to have a persistent value
      Reviewed-by: imsnah
    • Iustin Pop's avatar
      Simplify a little the hypervisor routines · a985b417
      Iustin Pop authored
      Instead of “instance.hvparams”, we use a shorter “hvp” name to make readability
      Reviewed-by: imsnah
  24. 10 Feb, 2009 2 commits