- 17 Feb, 2009 1 commit
-
-
Iustin Pop authored
This patch also logs the output of the xm commands in case of failures; some corner cases were forgotten in the last redo. Reviewed-by: imsnah
-
- 12 Feb, 2009 1 commit
-
-
Iustin Pop authored
This patch removes the admin_ram LUQueryInstances field (is broken anyway) and fixes the VNC address checks in the Xen Hypervisor. Reviewed-by: imsnah
-
- 09 Feb, 2009 4 commits
-
-
Guido Trotter authored
Copy the message from the KVM one, adding a missing 'the' and a list of possible values, to help the user in his decision. Reviewed-by: iustinp
-
Guido Trotter authored
These are not HVM specific, so have been given an HT generic name. Reviewed-by: iustinp
-
Guido Trotter authored
The VNC base port has nothing to do with HVM itself, and is general to VNC itself, so we're removing the HT_HVM prefix to the constant. Reviewed-by: iustinp
-
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
-
- 07 Feb, 2009 1 commit
-
-
Guido Trotter authored
Confusingly, as a leftober from 1.2, there was a constants.HT_HVM_DEFAULT_BOOT_ORDER constant, with a value opposite to the default HV_BOOT_ORDER hv param that got enabled only if HV_BOOT_ORDER was set to None. Since setting it to None is very hard/impossible for the user, and we didn't handle other "empty" values (False, ''), we'll just force the parameter to have a valid value (after all we have a default, and that's the way we use hvparams) and get rid of the old constant altoghether. Reviewed-by: iustinp
-
- 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
-
- 28 Jan, 2009 1 commit
-
-
Iustin Pop authored
This patch correctly marks the drives as read-only for Xen, and raises and exception for KVM since it doesn't support read-only drives. Reviewed-by: ultrotter
-
- 27 Jan, 2009 4 commits
-
-
Guido Trotter authored
Also raise HypervisorError rather than OpExecError. Reviewed-by: iustinp
-
Guido Trotter authored
Also raise HypervisorError rather than OpExecError. Reviewed-by: iustinp
-
Guido Trotter authored
This parameter allows a different path to be passed to the instance kernel. The new parameter is mandatory, and by default has the value of the old hardcoded value for both kvm and xen. Beta1 clusters will need to have this parameter added for their instances to be able to boot. Reviewed-by: iustinp
-
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
-
- 23 Jan, 2009 1 commit
-
-
Guido Trotter authored
A missing 'be' was present in the error string for both xen and kvm, when the kernel or initrd path was not absolute. Reviewed-by: imsnah
-
- 21 Jan, 2009 2 commits
-
-
Guido Trotter authored
These are used, for the xen hypervisor, to copy the xen config file to the remote node. This breaks migration for instances which have been migrated, but not restarted, with the old code, for which the config file was just lost. Reviewed-by: iustinp
-
Iustin Pop authored
Two are real errors (invalid names) and one is style error (overriding name from outer scope). Reviewed-by: ultrotter
-
- 20 Jan, 2009 1 commit
-
-
Guido Trotter authored
Reviewed-by: iustinp
-
- 13 Jan, 2009 1 commit
-
-
Iustin Pop authored
This is forward port via copy (and not individual patches cherry-pick) of the latest code on the 1.2 branch related to the migration. The changes compared to 1.2 are the fact that we don't need the IdentifyDisks step anymore (the drbd rpc calls are independent now), and the rpc module improvements. Reviewed-by: ultrotter
-
- 07 Jan, 2009 1 commit
-
-
Iustin Pop authored
This is a partial forward-port of commit 1136 on the 1.2 branch: The hypervisor doesn't need to be passed the whole block device structure, so we'll just give it the block device name on the local node, and the name as seen by the instance. This will make it easier to manipulate it later without messing with the block devices (eg. by changing the system name to a symlink to the name itself). Since the HVM hypervisor changes the "virtual" name a note is added calling for a redesign that doesn't need this change, as different hypervisors and emulation types will anyway have different names for exported devices. Reviewed-by: iustinp The changes in this patch compared to the original are: - we keep passing the original disk object, not for its iv_name, but for it's physical_id which is needed by the file driver (this could be fixed maybe) - we don't use the iv_name anymore, since in 2.0 we already use the index of the device Original-Author: ultrotter
-
- 06 Jan, 2009 1 commit
-
-
Iustin Pop authored
Two bad indentation cases and a missing variable. Reviewed-by: imsnah
-
- 14 Dec, 2008 1 commit
-
-
Iustin Pop authored
Wrong indentation and uniformize one method signature. Reviewed-by: amishchenko
-
- 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
-
- 20 Nov, 2008 1 commit
-
-
Iustin Pop authored
Currently the iv_name is very linux-specific, and will break with the multi-disk changes. The patch changes this to generate sdX names based on the disk index in the disks structure, instead of relying on the iv_name. Reviewed-by: imsnah
-
- 20 Oct, 2008 1 commit
-
-
Iustin Pop authored
Reviewed-by: imsnah
-
- 14 Oct, 2008 2 commits
-
-
Iustin Pop authored
This patch changes the hypervisor functions to use the beparams dict instead of the instance attributes. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch adds the new methods CheckParameterSyntax and the ValidateParameters in the base and xen hypervisors. It also changes the xen hypervisor to use the new hvparams field on instance. Reviewed-by: imsnah
-
- 04 Sep, 2008 1 commit
-
-
Alexander Schreiber authored
Use a default vnc_bind_address if None is specified Reviewed-by: iustinp
-
- 02 Sep, 2008 1 commit
-
-
Alexander Schreiber authored
Allow access to HVM serial console Reviewed-by: imsnah
-
- 29 Aug, 2008 1 commit
-
-
Alexander Schreiber authored
Add HVM device type flags 2/3 Reviewed-by: ultrotter
-
- 30 Jul, 2008 1 commit
-
-
Guido Trotter authored
It's python, isn't it? Reviewed-by: iustinp
-
- 16 Jun, 2008 1 commit
-
-
Iustin Pop authored
This is just the hypervisor-level migration (e.g. “xm migrate”) not the whole node coordination work. Reviewed-by: ultrotter
-
- 31 May, 2008 1 commit
-
-
Iustin Pop authored
This patch adds hypervisor support for the extended HVM features. Author: schreiberal Reviewed-by: iustinp
-
- 09 May, 2008 1 commit
-
-
Michael Hanselmann authored
There are a couple of reasons for doing so: - /proc is not OS independent, it's only supported by Linux (there are emulations on other systems, but those might differ from the way Linux represents data). - Checking a daemon's state doesn't necessarily mean it's usable. Connecting to the socket using “xm info” is much safer. - Reduce code size. Reviewed-by: iustinp
-
- 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
-
- 22 Apr, 2008 1 commit
-
-
Alexander Schreiber authored
Reviewed-by: ultrotter
-
- 08 Apr, 2008 1 commit
-
-
Manuel Franceschini authored
The driver in the xen config file needs to be changed when dealing with files rather then bdevs. This patch does two things: - Add _GetConfigFileDiskData to XenHypervisor which returns the correct disk xen config line. This function checks the logical disk type of every given block device, such that also hybrid (e.g. mixed drbd and file VBDs) are possible - Make Xen[Pvm|Hvm]Hypervisor._WriteConfigFile() a classmethod to be able to call the helper function _GetConfigFileDiskData() in their parent XenHypervisor Reviewed-by: iustinp
-
- 31 Jan, 2008 1 commit
-
-
Alexander Schreiber authored
Reviewed-by: imsnah
-
- 20 Jan, 2008 1 commit
-
-
Iustin Pop authored
Currently the fake hypervisor has hardcoded ‘/var/run’ as a base directory for its store. This patch adds a constant RUN_DIR that is used for both the fake hypervisor and for BDEV_CACHE_DIR. Reviewed-by: ultrotter
-