- Apr 16, 2008
-
-
Iustin Pop authored
Reviewed-by: amishchenko
-
Iustin Pop authored
This (final) patch allows the instance's nodes to be selected automatically based on the passed allocator algorithm. The patch changes the pnode opcode parameter from required to optional, now either the pnode or the iallocator must be passed. A possible improvement could be to organize all the _IAllocator functions into a separate class, but that can come later and the current version is functionally ok. Reviewed-by: ultrotter
-
Iustin Pop authored
In preparation for the introduction of automatic instance allocator, this patch adds an allocator simulation opcode, that based on the input parameters, will return either the input message to the allocator (implemented) or the result of the allocator run (not yet implemented). This allows algorithm tests against simulated allocations and the current cluster state. The patch adds the following: - a function that generates the generic cluster information for the allocator - a function that generates the 'new instance' information - a function that generates the 'replace_secondary' information These three functions will be used by the allocator framework later to generate the actual information for the external algorithms. Currently we just return the json-serialized text. Reviewed-by: imsnah
-
- Apr 10, 2008
-
-
Guido Trotter authored
Add a general way to skip some checks at cluster-verify time and make the N+1 memory redundancy check optional. Reviewed-by: iustinp
-
Iustin Pop authored
Currently, the opcode DiagnoseOS is the only opcode that return a structure of objects.OS (which is a custom class, and not a simple python object) and furthermore all the processing of OS validity across nodes is left to the clients of this opcode. It would be more logical to have this opcode be similar to list instances/nodes, in the sense that: - it should return a table of results - the fields in the table should be selectable This patch does the above. The possible fields are: - name (os name) - valid (bool representing validity across all nodes) - node_status, which is a complicated structure required for ‘gnt-os diagnose’ With this patch, gnt-os list becomes a very simple iteration over the list of results, filtering out non-valid ones. gnt-os diagnose is still complicated, but no more than before. The burnin tool has also been modified to work with the modified results, and is simpler because of this (it only needs to know if an OS is valid or not, not the per-node details). Reviewed-by: imsnah
-
Iustin Pop authored
This patch enhances gnt-debug to be able to submit any opcodes. The opcodes are input from a json file containing a list of opcodes. This allows enhanced testing of opcodes until the other gnt-* commands are converted to use the master daemon. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch changes the definition of a job and introduces per-opcode results. First, the result and status fields of a job are condensed into a single 'status' attribute. Then, we introduce an opcode status and one result list, that allow jobs to return values. The gnt-job script is also modified to allow these new fields to be queried. Note that the patch changes the opcode field to op_list, and it changes its return value from string to a list of (serialized) opcodes. Reviewed-by: ultrotter
-
- Apr 08, 2008
-
-
Manuel Franceschini authored
Reviewed-by: ultrotter
-
- Apr 04, 2008
-
-
Iustin Pop authored
This patch adds a very basic gnt-job script that allows job querying. This goes on top of the previous master daemon patches. Currently, because of the not-changed cmd lock, you can't query the jobs as long as a job is running - you have to rm the cmd lock and then you can query the jobs. Reviewed-by: imsnah
-
- Apr 01, 2008
-
-
Guido Trotter authored
The message used to misleadingly say that failover just works with remote_raid1 instances, while of course it works for drbd as well. Since remote_raid1 has been removed from the main development branch only drbd will be shown. Thanks to Jesus Climent who spotted the bug. Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds a script which submits a job consisting of the OpTestDelay opcode. This can be helpful for debugging and can be extended to execute other 'debug'-like tasks. Reviewed-by: ultrotter
-
- Mar 31, 2008
-
-
Iustin Pop authored
Reviewed-by: ultrotter
-
Manuel Franceschini authored
- Substitute all occurences of name 'parms' with 'params' - Small codestyle fix Reviewed-by: ultrotter
-
Manuel Franceschini authored
This patch does two things: - Add gnt-cluster modify - Add --no-lvm-storage option to gnt-cluster init Reviewed-by: iustinp
-
- Mar 27, 2008
-
-
Iustin Pop authored
This oneliner fixes a bug in listing more than twenty instances for multiple operations (shutdown, startup, etc.). Reviewed-by: imsnah
-
Michael Hanselmann authored
This enables us to run automated tests on “gnt-instance console”, at least to some degree. Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Mar 25, 2008
-
-
Iustin Pop authored
This patch removes the options that allow to create local_raid1 or remote_raid1 instances. It also modifies the documentation and removes these disk templates from burnin and from qa. Reviewed-by: imsnah
-
Iustin Pop authored
These two operations are related to md/drbd7 code (remote_raid1). Remove them as part of the md/drbd7 removal. Reviewed-by: imsnah
-
- Mar 19, 2008
-
-
Manuel Franceschini authored
Author: manuel.franceschini Reviewed-by: iustinp
-
- Mar 06, 2008
-
-
Guido Trotter authored
The "quick" online help just reported the option to change secondary node. Add the ones to just replace the disk locally on-primary or on-secondary. It is of course impossible to espress in one line everything needed to use this command, but at least now the most common options are spelled out immediately. Reviewed-by: iustinp, imsnah
-
- Mar 05, 2008
-
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
- Feb 28, 2008
-
-
Alexander Schreiber authored
Reviewed-by: imsnah
-
- Feb 20, 2008
-
-
Guido Trotter authored
gnt-instance replace-disks used to be called replace_disks. Reviewed-by: iustinp
-
- Feb 18, 2008
-
-
Alexander Schreiber authored
Reviewed-by: imsnah
-
- Feb 14, 2008
-
-
Iustin Pop authored
This patch adds a new field available for selection in gnt-instance list names "status" which represents the combined value of "admin_state" and "oper_state". Since this is much easier to parse (e.g. gnt-instance list |grep ERROR), we also modify the default field list to use this instead of the admin/oper state fields. Reviewed-by: imsnah
-
- Jan 30, 2008
-
-
Guido Trotter authored
The help string missed drbd as a disk template option. Adding it. Reviewed-by: iustinp
-
- Jan 28, 2008
-
-
Alexander Schreiber authored
Reviewed-by: iustinp
-
Iustin Pop authored
The gnt-node and gnt-instance list commands have a customizable list of output fields, but the list is not up to date (in the man page) and not easily understandable from the ‘--help’ output. This patch updates the man pages and adds the available fields and default fields in the ‘--help’ output, as part of the description. Example: Usage ===== gnt-node list Lists the nodes in the cluster. The available fields are (see the man page for details): name, pinst_cnt, pinst_list, sinst_cnt, sinst_list, pip, sip, dtotal, dfree, mtotal, mnode, mfree, bootid. The default field list is (in order): name, dtotal, dfree, mtotal, mnode, mfree, pinst_cnt, sinst_cnt. Reviewed-by: imsnah,ultrotter
-
Iustin Pop authored
Reviewed-by: ultrotter
-
- Jan 27, 2008
-
-
Iustin Pop authored
As reported by hypnoce@gmail.com, this is missing a check on None. As we don't care about uppercase, we keep the check simple by removing the lower() call. Reviewed-by: ultrotter
-
- Jan 21, 2008
-
-
Guido Trotter authored
These aliases are widely used to think of these operations and save some typing too. Even though there is some thought to make start/stop the default operation name I don't think this should happen for 1.2, for now adding it as an alias is fine. Reviewed-by: iustinp
-
Guido Trotter authored
Alias activate_block_devs to activate-disks, for ganeti 1.1 compatibility. Reviewed-by: iustinp
-
Guido Trotter authored
Before iterating over the list of exports present on a node, check that what ganeti returned is actually a list. This solves the case when one of the nodes is down, and an error value is returned. This fixes issue 21 Reviewed-by: imsnah
-
- Jan 16, 2008
-
-
Iustin Pop authored
This is a merge from the 1.2 branch Reviewed-by: imsnah
-
Iustin Pop authored
This is a merge from the 1.2 branch Reviewed-by: imsnah
-
- Jan 14, 2008
-
-
Guido Trotter authored
Mac is now a mandatory option for OpCreateInstance. Add it when we call this opcode at import time too. This is a quick fix for the code, but probably more work needs to be done to integrate mac addresses with the import/export functionality in a nice way. Reviewed-by: iustinp
-
- Jan 11, 2008
-
-
Alexander Schreiber authored
This patch adds support for specifying and changing the boot device order for HVM instances. The boot device order specification is ignored for non HVM instances. Reviewed-by: iustinp
-
- Jan 10, 2008
-
-
Guido Trotter authored
Update gnt-backup import to be in line with gnt-instance add about the os disk size option. Thanks to Gunnar Wagenknecht for spotting the issue. Reviewed-by: imsnah
-
- Jan 08, 2008
-
-
Iustin Pop authored
This patch changes the info subcommand to nicely show the kernel and initrd paths. Reviewed-by: imsnah
-