- 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
-
- Oct 08, 2007
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Iustin Pop authored
This patch adds a '--from' option to the {add,remove}-tags commands that allows the command to read from a file or from stdin (when passing a dash for the filename). Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds generic functions for tag manipulations to cli.py and modifies gnt-{cluster,node,instance} to export {list,add,remove}-tags commands that use those. Reviewed-by: imsnah
-
- Oct 04, 2007
-
-
Guido Trotter authored
- Document the expected change to errors.InvalidOS - Always pass the additional argument - Modify DiagnoseOS output to show the path Reviewed-by: iustinp, imsnah
-
Guido Trotter authored
As of now only the last OS was taken into consideration by diagnose, fix by storing them all and displaying for now only the first. Also display the source path for valid OSes. Reviewed-by: imsnah
-
- Oct 02, 2007
-
-
Guido Trotter authored
People might not have read all the documentation and might not expect their ssh configuration and specially keys to be changed. Adding this warning will inform them before it happens. Reviewed-by: iustinp
-
- Sep 27, 2007
-
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
- Sep 20, 2007
-
-
Iustin Pop authored
This patch makes the new startup/shutdown multi-instance operations to ask for confirmation when touching more than one instance (and unless --force-multi is given). The code is not very short, but it does present a nice (IMO) user interface. Reviewed-by: ultrotter
-
- Sep 19, 2007
-
-
Iustin Pop authored
This patch improves the AskUser function by allowing it to: - choose from multiple choices (instead of only y/n) - give help to the user - preserve line breaks and whitespace formatting in the message With this patch, an instance removal looks like this: root@xen-test1-4:~# gnt-instance remove tsetest1 This will remove the volumes of the instance tsetest1 (including mirrors), thus removing all the data of the instance. Continue? y/[n]/?: ? y - Perform the operation n - Do not perform the operation This will remove the volumes of the instance tsetest1 (including mirrors), thus removing all the data of the instance. Continue? y/[n]/?: y The patch also removed the _ask_user member of the opts argument, since external code was using it (and thus it makes no sense for it to be a private member); now gnt-* scripts are using the AskUser function directly. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch allows 'gnt-instance add' to not start the newly-created instance. It also allow 'gnt-instance add' and 'gnt-backup import' to not check for IP conflicts (only when not starting the instance). Reviewed-by: ultrotter
-
- Sep 18, 2007
-
-
Iustin Pop authored
This patch adds a new OpCode (and corresponding LU) that implements the cluster rename functionality. This is done by shutting down the master role, making the needed sstore modifications and distributing the changed files to all nodes, and then re-enabling the master role. The modification to the man page of gnt-cluster also moves the section on gnt-cluster destroy in order to correct alphabetical ordering. Reviewed-by: imsnah
-
Guido Trotter authored
Reviewed-by: iustinp
-
- Sep 17, 2007
-
-
Iustin Pop authored
This patch adds support for instance rename operation at all remaining layers: RPC, OpCode/LU and CLI. Reviewed-by: imsnah
-
Iustin Pop authored
This is an initial version of the multi-instance start/stop, which allows the gnt-instance startup and shutdown subcommands to work on multiple instances at once. The available selections are: - "gnt-instance startup --instance name..." which is the default, and if passed only one argument it behaves like the original command) - "gnt-instance startup --node name..." will work on all instances having either primary or secondary one of the passed names - "gnt-instance startup --primary name..." will work on all instances having primary node one of the passed names - "gnt-instance startup --secondary name..." will work on all instances having as secondary node one of the passed names - "gnt-instance startup --all" will work on all instances This allows a simple cluster-wide shutdown or node shutdown (or startup). Note that this version stops at the first error - it will not try to start the 2nd instance selected if there is a critical error with the 1st one. Also note that this version is not faster than simply running manually "gnt-instance shutdown NAME", because it doesn't parallelize the shutdown/startup actions. Reviewed-by: imsnah,roman.marxer
-