1. 04 Jan, 2010 1 commit
  2. 28 Dec, 2009 1 commit
  3. 10 Dec, 2009 1 commit
  4. 26 Nov, 2009 1 commit
  5. 11 Nov, 2009 1 commit
  6. 10 Nov, 2009 1 commit
  7. 06 Nov, 2009 1 commit
  8. 05 Nov, 2009 1 commit
  9. 04 Nov, 2009 4 commits
  10. 03 Nov, 2009 2 commits
  11. 22 Oct, 2009 3 commits
  12. 12 Oct, 2009 1 commit
  13. 09 Oct, 2009 2 commits
  14. 06 Oct, 2009 1 commit
  15. 24 Sep, 2009 3 commits
  16. 03 Sep, 2009 2 commits
  17. 18 Jun, 2009 1 commit
  18. 16 Jun, 2009 1 commit
  19. 15 Jun, 2009 1 commit
  20. 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>
      f5118ade
  21. 22 May, 2009 3 commits
  22. 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>
      205ab586
    • 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>
      835528af
  23. 12 May, 2009 2 commits
  24. 05 May, 2009 1 commit
  25. 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
      19498d6c
  26. 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
      9afb67fe