- Jan 07, 2008
-
-
Iustin Pop authored
This patch improves the ‘gnt-cluster verify-disks’ command by adding support for detecting broken volume groups and missing logical volume names. As such, we don't try anymore to activate disks for instances that are not likely to succeed anyway, and instead report them. Reviewed-by: schreiberal
-
- Dec 27, 2007
-
-
Alexander Schreiber authored
Allow the MAC address of an instance to be specified optionally during instance creation and later to be changed via instance modify. Reviewed-by: iustinp
-
- Dec 20, 2007
-
-
Alexander Schreiber authored
This patch implements a first proof-of-concept for HVM support in Ganeti. Due to the nature of this patch, it is intended for test environments only. Reviewed-by: iustinp
-
- Dec 17, 2007
-
-
Alexander Schreiber authored
Extends the instance object by adding a port item, also adds changes to print this port via gnt-instance info. Reviewed-by: iustinp
-
- Dec 12, 2007
-
-
Iustin Pop authored
This patch adds the OpVerifyDisks handling in mcpu.py and the verify-disks command in the gnt-cluster script, which for every instance computed by LUVerifyDisks submits a new OpActivateInstanceDisks request. Reviewed-by: imsnah
-
- Dec 03, 2007
-
-
Michael Hanselmann authored
- When line wrapping is needed, move spaces to the next line. - Remove embedded line breaks from error messages. Reviewed-by: schreiberal
-
- Nov 21, 2007
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Iustin Pop authored
This fixed the previous commit (-s => -s ip). Reviewed-by: ultrotter
-
Iustin Pop authored
Since on dual-homed clusters one always needs to add '-s' to the gnt-node add command, make this appear in the output of 'gnt-node' (when run without arguments). Reviewed-by: imsnah
-
- Nov 13, 2007
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Nov 12, 2007
-
-
Guido Trotter authored
The --nodes option in gnt-backup really accepts only one node at a time. Change it to --node, for added clarity and consistency with a similar option in gnt-cluster. This patch also updates the relevant man page. Reviewed-By: iustinp
-
- Nov 07, 2007
-
-
Iustin Pop authored
This (big) patch does two things: - add "local disk status" to the block device checks (BlockDevice.GetSyncStatus and the rpc calls that call this function, and therefore cmdlib._CheckDiskConsistency) - improve the drbd8 secondary replace operation using the above functionality The "local disk status" adds a new variable to the result of GetSyncStatus that shows the degradation of the local storage of the device. Of course, not all device support this - for now, we only modify LogicalVolumes and DRBD8 to return degraded in some cases, other devices always return non-degraded. This variable should be a subset of is_degraded - whenever this variable is true, the is_degraded should also be true. The drbd8 secondary replace uses this variable as we don't care if the primary drbd device is network-degraded, only if it has good local disk data (ldisk is False). The patch also increases the protocol version (due to rpc changes). Reviewed-by: imsnah
-
- Nov 06, 2007
-
-
Michael Hanselmann authored
Replace --secondary-node option with an optional parameter for --node.
-
Iustin Pop authored
Logical volumes can be 'degraded' in a similar way to mirrored devices, when their underlying storage has gone away (i.e. after a physical disk failure and 'vgreduce --removemissing'). If we can detect this, we can prevent mistaken replaces of disks that would use this LV (or its parent) as source data. This patch adds support for computing the degraded attribute and modifies gnt-instance to warn if the LV is virtual. Reviewed-by: imsnah
-
- Nov 05, 2007
-
-
Guido Trotter authored
Modify backend.py so that DiagnoseOS only returns OS objects rather than InvalidOS errors, and make sure gnt-os understands the new objects. Also delete the deprecated helper functions from gnt-os. Reviewed-By: iustinp
-
- Nov 03, 2007
-
-
Iustin Pop authored
This patch adds a search command for locating tags on all objects of the cluster using a regex pattern. Reviewed-by: aat
-
- Nov 01, 2007
-
-
Guido Trotter authored
Ok, I've been battling with those for a while but it seems in the end I forgot to get rid of them! :( Doing it explicitely now. Reviewed-By: iustinp
-
Guido Trotter authored
This patch changes whitespace only. It fixes all the functions in script/gnt-os by putting a white line at the end of all the function descriptions and removing it from just before the code. Reviewed-By: iustinp
-
Guido Trotter authored
Reviewed-By: imsnah
-
Guido Trotter authored
Get rid of the tabulated form and create a simplier indented structure. Now a valid OS looks something like: OS: foo [global status: partial valid] Node: gsdtest4.euw.corp.google.com, status: valid (path: /usr/local/lib/ganeti/os/foo) Node: gsdtest5.euw.corp.google.com, status: valid (path: /usr/local/lib/ganeti/os/foo) [hidden] path: /usr/local/lib/ganeti/os2/foo, status: 'ganeti_api_version' file not found (ENOENT) Node: gsdtest3.euw.corp.google.com, status: 'ganeti_api_version' file not found (ENOENT) (path: /usr/local/lib/ganeti/os/foo) Reviewed-By: imsnah
-
Guido Trotter authored
Use both _DiagnoseOSStatus and _DiagnoseOSPath to calculate the message associated with the first entry found on a node for an OS. Also call the rename the relevant variables to _msg rather than just _status to reflect that they contain a bit more than just the bare status message. Reviewed-By: imsnah
-
Guido Trotter authored
Make _DiagnoseOSStatus only return a status message for the OS diagnose object and create a new _DiagnoseOSPath function to get the path out. This will let us be more flexible in the messages we display to the user. Reviewed-By: imsnah
-
- Oct 31, 2007
-
-
Iustin Pop authored
This reverts commit 289, as the node failover functionality was already implemented in gnt-node (as opposed to gnt-instance). My mistake. Reviewed-by: ultrotter
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Iustin Pop authored
This patch fixes the documentation in a few cases and adds handling of the situation where no instance is selected due to too restrictive options given. Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds the same style of multi-instance selection as in shutdown/startup to the failover subcommand, with the exception that we cannot failover with --node or --all (it doesn't make sense). Reviewed-by: imsnah
-
- Oct 29, 2007
-
-
Iustin Pop authored
This patch adds three modes of disk replacement for drbd8: - replace the disk on the primary node - replace the disk on the secondary node - replace the secondary node It also adds some debugging code to backend.py and increments the protocol version for the recent changes of the rpc layer. Reviewed-by: imsnah
-
Guido Trotter authored
The predicate function gets build by a lambda function. Also add a bit of debugging information to the 'unknown OS diagnose type'. Reviewed-by: iustinp
-
- Oct 24, 2007
-
-
Iustin Pop authored
This is a partially working drbd8 template type. It does: - add/remove - startup/failover/shutdown Not working is replace disks, which needs custom code for this template. Reviewed-by: imsnah
-
- Oct 19, 2007
-
-
Iustin Pop authored
Currently, the disk types are defined using constants in the code. Convert those into constants so that we can easily find them and check their usage. Note that we don't rename the values of the constants as they are used in the configuration file, and as such it's best to leave them as they are. Reviewed-by: imsnah
-
- Oct 18, 2007
-
-
Alexander Schreiber authored
This patch series implements the reboot command for gnt-instance. It supports three types of reboot: soft (hypervisor reboot), hard (instance config rebuild and reboot) and full (full instance shutdown and startup again). This patch contains the gnt-instance script and the man page for it. Reviewed-by: iustinp
-
- Oct 16, 2007
-
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds a new option to the instance removal command "--ignore-failures" that forces the removal of the instance from the configuration even if the removal process encounters errors. In order to be able to do this when the remote node(s) is(are) down, we need to restrict the execution of the instance removal hook to the master only. I think this is a reasonable trade-off (but I'm not sure). Reviewed-by: imsnah
-
- Oct 15, 2007
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Oct 12, 2007
-
-
Guido Trotter authored
Put some order in gnt-os putting helper functions above and command functions below. Also add a new _DiagnoseOSName() function and use it to make _GetAllOS simplier to understand. Change its name to _DiagnoseByOS which makes more clear what it does. Reviewed-by: iustinp
-
Guido Trotter authored
To do this we abstract the creation of the all_os dictionary, which was produced in DiagnoseOS and use it both for listing and diagnosing. Reviewed-by: iustinp
-
- Oct 11, 2007
-
-
Oleksiy Mishchenko authored
Reviewed-by: iustinp
-
- Oct 10, 2007
-
-
Iustin Pop authored
This patch adds a new 'evacuate' subcommand to gnt-node. The command will do a replace disks for all instances having that node as secondary with the new target being the new node given. The syntax is: gnt-node evacuate src_node target_node The command by itself doesn't do any resource checks, and instead relies on the LUFailoverInstance code to do that. Reviewed-by: imsnah
-
- Oct 09, 2007
-
-
Iustin Pop authored
This patch implements a simple failover command for failing over all primary instances. This is just a batched form of gnt-instance failover. Reviewed-by: imsnah
-
Guido Trotter authored
The new version debugs Hidden OSes as well. Reviewed-by: iustinp
-