1. 17 Jan, 2012 1 commit
  2. 22 Nov, 2011 1 commit
  3. 29 Sep, 2011 1 commit
  4. 25 Jul, 2011 1 commit
  5. 08 Jul, 2011 1 commit
  6. 07 Jan, 2011 1 commit
  7. 10 Jun, 2010 1 commit
  8. 07 May, 2010 1 commit
  9. 21 Apr, 2010 1 commit
  10. 23 Mar, 2010 2 commits
  11. 08 Mar, 2010 1 commit
  12. 04 Jan, 2010 1 commit
    • Iustin Pop's avatar
      Implement all hv functions in hv_chroot/hv_fake · 94fed7da
      Iustin Pop authored
      
      
      The chroot and fake hypervisors were missing:
      
      - the powercycle node functionality
      - proper handling of migration requests
      
      The powercycle was just used as in the other hypervisors (use the
      standard linux powercycle). The migration for chroot was disabled
      explicitly, whereas for the fake one it was implemented to simulate
      correctly. This required some work on the fake hypervisor, but now the
      implementation of start/stop/etc. is much more clean.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarOlivier Tharan <olive@google.com>
      94fed7da
  13. 28 Dec, 2009 1 commit
  14. 09 Oct, 2009 1 commit
    • Guido Trotter's avatar
      Hypervisors: Add retry= to StopInstance · 07b49e41
      Guido Trotter authored
      
      
      Currently some hypervisors need the stop operations to be retried more
      than once, while other ones only do it in one pass. With this change
      we'll handle retries outside the hypervisor code, but telling whether
      this is the first try or not.
      
      Since this option is not used for now, all hypervisors just return if
      called with retry set to on, maintaining the old behavior. Since the
      fake hypervisor has an idempotent StopInstance call, we avoid returning
      in that case.
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarOlivier Tharan <olive@google.com>
      07b49e41
  15. 03 Sep, 2009 1 commit
  16. 07 Jul, 2009 1 commit
  17. 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
  18. 05 May, 2009 1 commit
  19. 24 Feb, 2009 1 commit
    • 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
      here.
      
      Reviewed-by: imsnah
      07813a9e
  20. 13 Feb, 2009 1 commit
    • Iustin Pop's avatar
      Some small improvements to the fake hypervisor · bfc30ec0
      Iustin Pop authored
      This patch modifies the fake hypervisor to substract the memory “used”
      by “running” instances from the free memory, so the actual node
      information changes based on the running instances.
      
      Also some style changes and fixes are added.
      
      Reviewed-by: ultrotter
      bfc30ec0
  21. 09 Feb, 2009 1 commit
    • Iustin Pop's avatar
      Export the cpu nodes and sockets from Xen · 0105bad3
      Iustin Pop authored
      This is a hand-picked forward patch of commit 1755 on the 1.2 branch
      (hand-picked since the trees diverged too much since then):
      
          The patch changed the xen hypervisor to compute the number of cpu
          sockets/nodes and enables the command line and the RAPI to show this
          information (for RAPI is enabled by default in node details, for gnt-one
          one can use the new “cnodes” and “csockets” fields).
      
          Originally-Reviewed-by: ultrotter
      
      For the KVM and fake hypervisors, the patch just exports 1 for both
      nodes and sockets. This can be fixed, by looking at the
      /sys/devices/system/cpu/cpuN/topology directories, and computing the
      actual information, but that should be done in a separate patch.
      
      Reviewed-by: imsnah
      0105bad3
  22. 29 Jan, 2009 1 commit
    • Guido Trotter's avatar
      GetShellCommand: get hvparams and beparams · 5431b2e4
      Guido Trotter authored
      Sometimes the hypervisor will use the instance hv and/or be parameters
      to determine the best shell command. This is not possible, though,
      currently, as the instance hv/beparams are not filled, so we have to
      pass the filled versions separately.
      
      Reviewed-by: iustinp
      5431b2e4
  23. 27 Jan, 2009 1 commit
    • Guido Trotter's avatar
      KVM: implement GetShellCommandForConsole · 637ce7f9
      Guido Trotter authored
      This is a class method, because it calls _InstanceSerial, which is
      another class method. The patch changes it to classmethod for all the
      hypervisor classes.
      
      Reviewed-by: iustinp
      637ce7f9
  24. 11 Dec, 2008 1 commit
    • Iustin Pop's avatar
      Fix epydoc format warnings · c41eea6e
      Iustin Pop authored
      This patch should fix all outstanding epydoc parsing errors; as such, we
      switch epydoc into verbose mode so that any new errors will be visible.
      
      Reviewed-by: imsnah
      c41eea6e
  25. 14 Oct, 2008 1 commit
  26. 13 Aug, 2008 1 commit
    • Guido Trotter's avatar
      FakeHypervisor: fix a function signature · a5f723a2
      Guido Trotter authored
      StartInstance takes 'block_devices', not 'force' as its third argument.
      Even if this is not used in the fake hypervisor it's better to have the
      correct argument name to avoid confusion.
      
      Reviewed-by: imsnah
      a5f723a2
  27. 30 Jul, 2008 1 commit
  28. 06 May, 2008 1 commit
  29. 05 May, 2008 1 commit
  30. 28 Apr, 2008 1 commit
    • Michael Hanselmann's avatar
      Split hypervisor.py into several files · 65a6f9b7
      Michael Hanselmann authored
      Before it was a huge file with more than 700 lines. No code changes were
      made except for changing imports and class names where needed. In the
      future, we could even think about only importing the hypervisors we
      actually need. The patch finished QA scripts and distcheck successfully.
      
      Reviewed-by: iustinp
      65a6f9b7