- 17 Jan, 2012 1 commit
-
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- 22 Nov, 2011 1 commit
-
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- 29 Sep, 2011 1 commit
-
-
Andrea Spadaccini authored
Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- 25 Jul, 2011 1 commit
-
-
Iustin Pop authored
s/'/"/ in (hopefully) the right places. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- 08 Jul, 2011 1 commit
-
-
Stephen Shirley authored
Creates the instance, but pauses execution before booting. This combined with 'gnt-instance console' unpausing instances means that the entire boot process can be viewed and monitored. Signed-off-by:
Stephen Shirley <diamond@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- 07 Jan, 2011 1 commit
-
-
Michael Hanselmann authored
This makes use of the new way of returning console information from the master daemon. Unittests are included. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- 10 Jun, 2010 1 commit
-
-
Iustin Pop authored
This makes it uniform with the other hypervisors. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
- 07 May, 2010 1 commit
-
-
Guido Trotter authored
Swap a few os.mkdir calls with utils.EnsureDirs Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
- 21 Apr, 2010 1 commit
-
-
Iustin Pop authored
This variable can be used by other tools to determine in a generic way whether a given hypervisor supports migration or not. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- 23 Mar, 2010 2 commits
-
-
Iustin Pop authored
Currently the ShutdownInstance method of the hypervisors takes a full instance object. However, when doing instance shutdowns from the node only, we don't have a full object, just the name. To handle this use case, we add a new ‘name’ argument to the method, which makes the shutdown not use/rely on the ‘instance’ argument. The KVM and fake hypervisors need a little bit of work, otherwise the change is straightforward. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 08 Mar, 2010 1 commit
-
-
Iustin Pop authored
This changes to hv_fake to PathJoin. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- 04 Jan, 2010 1 commit
-
-
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:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- 28 Dec, 2009 1 commit
-
-
Iustin Pop authored
New version of pylint, new bugs found! Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- 09 Oct, 2009 1 commit
-
-
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:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- 03 Sep, 2009 1 commit
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Luca Bigliardi <shammash@google.com>
-
- 07 Jul, 2009 1 commit
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- 27 May, 2009 1 commit
-
-
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:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 05 May, 2009 1 commit
-
-
Iustin Pop authored
Currently both hv_fake and hv_kvm implement practically identical code to get the node information. Since future container-like hypervisors will also need this functionality, this patch moves it into the base class (as a separate function) which can then be called from classes which need this info. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 24 Feb, 2009 1 commit
-
-
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
-
- 13 Feb, 2009 1 commit
-
-
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
-
- 09 Feb, 2009 1 commit
-
-
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
-
- 29 Jan, 2009 1 commit
-
-
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
-
- 27 Jan, 2009 1 commit
-
-
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
-
- 11 Dec, 2008 1 commit
-
-
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
-
- 14 Oct, 2008 1 commit
-
-
Iustin Pop authored
This patch changes the hypervisor functions to use the beparams dict instead of the instance attributes. Reviewed-by: ultrotter
-
- 13 Aug, 2008 1 commit
-
-
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
-
- 30 Jul, 2008 1 commit
-
-
Iustin Pop authored
Reviewed-by: imsnah
-
- 06 May, 2008 1 commit
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- 05 May, 2008 1 commit
-
-
Iustin Pop authored
This patch adds the backend and frontend changes needed for being able to list the cpu count. Reviewed-by: ultrotter
-
- 28 Apr, 2008 1 commit
-
-
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
-