- Dec 16, 2009
-
-
Iustin Pop authored
This patch adds --no-name-check to gnt-instance add and gnt-backup import. This is opposite to the opcode parameter (name_check) as it is similar to ip_check and start. It also adds it to RAPI and gnt-instance batch-create as a parameter in the input (JSON-formatted) file. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Nov 25, 2009
-
-
Iustin Pop authored
This patch removes the quotes from CommaJoin and converts most of the callers (that I could find) to it. Since CommaJoin does str(i) for i in param, we can remove these, thus simplifying slightly a few calls. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This reverts commit 6915bc28 based on thread on ganeti-devel. Conflicts: lib/cmdlib.py (due to the error code classification, trivial) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Clarify the fact that temporary HV/BE params in instance start override and do not extend the configured parameters; and change the instance list headers from HVM_* to * since many of the parameters apply to KVM too. Also fix a typo in the rapi documention for '/2/nodes'. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 16, 2009
-
-
Guido Trotter authored
(1) Both the man page and the online help report the link and mode fields, which are in the code called nic_link and nic_mode. (2) Add missing fields to the online help. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 04, 2009
-
-
Iustin Pop authored
Currently a few of the LU's CheckPrereq use utils.HostInfo which raises a resolver error in case of failure. This is an exception from the standard that CheckPrereq should raise an OpPrereqError if the error is in the 'pre' phase (so that it can be retried). This patch adds a new error code (resolver_error) and a wrapper over utils.HostInfo that just converts the ResolverError into OpPrereqError(…, errors.ECODE_RESOLVER). It then uses this wrapper in cmdlib, bootstrap and some scripts. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 02, 2009
-
-
Iustin Pop authored
Currently the repair storage has two issues: - down instances are aborting the operation, even though they should be ignored (it's not technically possible to know their disk status unless we would activate their disks) - if the VG is so broken that disks cannot be activated via gnt-instance activate-disks or gnt-instance startup, it's not possible to repair the VG at all The patch makes the opcode skip down instances and also introduces an ``--ignore-consistency`` flag for forcing the execution of the LU. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This finishes the conversion of OpPrereqError creation to two-argument style. Any leftovers as one-argument are not breaking anything, just losing information about the errors. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This patch unifies the query fields in the storage framework for all types. Note that the information is still computed on-demand, so if e.g. the used disk space is not requested for the ‘file’ type, it won't be computed on nodes. Summary of changes: - improve the LVM storage type to support multiple lvm fields in the LIST_FIELDS declaration and constant (not-computed via lvm commands) fields - rename utils.GetFilesystemFreeSpace to utils.GetFilesystemStats returning tuple of (total, free) - add used and free as valid fields for lvm-vg (use being computed as vg_size-vg_free) - make allocatable accepted for all types (ones which are always allocatable always return True) - add a new list field ‘type’ that gives the current selected type; not much useful today (except for understanding what the default output is) but in the future might help if we want to list multiple types - add type, size and allocatable to the default output field list - update the man page with details on how, for file storage, size ≠ used + free for non-mountpoint cases Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Oct 28, 2009
-
-
Iustin Pop authored
This patch adds support for the -o+field,… format that the other list commands accept and changes the format of the allocatable field from simply str(bool) to Y/N. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
To reduce confusion, the following gnt-node commands are renamed: - physical-volumes → list-storage - modify-volume → modify-storage - repair-volume → repair-storage The NEWS file is update accordingly and it also gets emacs local variables. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Oct 27, 2009
-
-
Iustin Pop authored
Commits d3ed23ff and 4eb62659 broke gnt-debug due to renamed option targets. Sorry again! Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Oct 26, 2009
-
-
Iustin Pop authored
This was broken by me in 064c21f8, sorry! Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Oct 22, 2009
-
-
Ken Wehr authored
Allows the initialization of a cluster without the creation or distribution of SSH key pairs. Includes changes for LeaveCluster and RPC. Signed-off-by:
Ken Wehr <ksw@google.com> Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Oct 13, 2009
-
-
Guido Trotter authored
gnt-* scripts were building wrong opcodes for commands which had the shutdown_timeout slot (due to missing testing after renaming). Fixing. Also change SHUTDOWN_TIMEOUT_OPT dest field name to "shutdown_timeout": it was set to "timeout". It would still work that way, but possibly be confusing. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
All the LUs that shut down the instance need to be able too pass the timeout parameter as well. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Oct 09, 2009
-
-
Guido Trotter authored
Using the new --timeout option: - gnt-instance shutdown is changed to accept a timeout - the opcode is changed to hold one - the LU is changed to optionally get one - the rpc is changed to carry one - the backend is changed to take it as a parameter rather than hardcoding it in the function Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
- We never remember to use it (5 uses vs 21 " ,".join()) - It's longer to write than " ,".join() - The added value of the apostrophe in the string is not very much Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Oct 05, 2009
-
-
Guido Trotter authored
Passing this option makes an undeclared variant be passed to the os "as is", hoping it'll be able to figure it out (as per the design doc). Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Guido Trotter authored
List of OSes are displayed by gnt-os list, rapi, and gnt-instance reinstall --select-os, and checked by burnin. In all of these show the list with name+variant, if the os has variants. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Guido Trotter authored
We already show the per-node os variants, also show the global ones. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- Sep 24, 2009
-
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
The patch modifies LUQueryInstanceData to return the uuid too and also adds support for it in the gnt-* scripts. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Sep 21, 2009
-
-
Guido Trotter authored
In branch-2.1 the conversion of NICs to Tuples has been unified to the _NICListToTuple function, which is used by both hook generation and instance info generation. Unfortunately the ip and mac fields got swapped from what instance info expected, so the mac is shown as ip, and vice versa. Fixing this. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Sep 18, 2009
-
-
Iustin Pop authored
Currently the AddInstance in gnt-instance and ImportInstance in gnt-backup duplicate all of their code except the actual opcode creation (the parameters to it). By moving this to cli.py (not optimal location, but we don't have another one), we can use a single copy of the code, and simply change based on the mode parameter the few different opcode parameters. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Start, stop and reboot have the same code for dealing with multi-instance handling. This patch moves all that into a single generic function, and leaves only the building of the specific opcode for the operation in the individual functions. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
The gnt-instance commands that have the multi-filter can take also zero arguments, if the --all flag is passed. But they currently are declared with min=1, and this is a regression due to the recent bash completion changes. There is also the problem that --primary/--secondary expect a node and not an instance, but currently the completion doesn't support this distinction. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Since >90% of the commands take the “--debug” option, and all should actually take it (the gnt-job command is currently missing it), it makes sense to simply remove this and add it by default in cli.py. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Currently, the indentation level for a command's definition depends on the command name length, and this makes the commands dict unpleasant to the eye. This patch changes it so that a new line begins right after the left parenthesis starting the command tuple. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Some of these should be added to cluster modify too. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
The default has also been changed to None as this will be useful once cluster modify will be able to change this setting too. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-