- Nov 02, 2009
-
-
Iustin Pop authored
This patch adds a new ecode argument to RpcResult.Raise(). This allows specifying the error code (for both OpExec and OpPrereq errors). Note that this patch also makes the OpExecError exceptions raised from _FindFaultInstanceDisks have the error code classification. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This patch introduces a two-argument style for OpPrereqError. Only the direct raise calls in cmdlib.py are converted, other users will follow. cli.py is modified to handle both two-argument style and the current format. RAPI doesn't need modification as the way we encode errors is already using a list for the error arguments, so RAPI users only need to start checking the list length and the second argument. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This is only used in two places, in an error path that is no longer valid since Ganeti 2.0. We remove the try..except since we should not get it anymore (and if we do, then we should catch it in all config.Update cases) and we remove the exception class completely. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Exporting an instance not running or without activated disks will fail. This patch makes sure to activate disks before exporting an instance if it's in the ADMIN_down state. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@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 30, 2009
-
-
Michael Hanselmann authored
There was a race condition between starting the node daemon and sending requests to write the ssconf files. With this patch, the initialization waits up to ten seconds for the node daemon to become responsive. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Oct 29, 2009
-
-
Michael Hanselmann authored
Before: $ gnt-instance failover -f inst1 … checking disk consistency between source and target … - WARNING: Can't find disk on node node21.example.com … shutting down instance on source node After: $ gnt-instance failover -f inst1 … not checking disk consistency as instance is not running … shutting down instance on source node Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Add rapi_users changes, rearrange a bit and one wording change. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This enables the use of hashed passwords in rapi_users. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This new function supports two schemes for passwords: - Old-style cleartext passwords - Hashed passwords according to RFC2617 (H(A1)) Schemes are differentiated by their prefix, a concept also used in OpenLDAP. Cleartext passwords can no longer start with an opening brace ("{") unless they're prefixed with "{cleartext}" (case insensitive). Currently there's no documentation for rapi_users at all. It'll be in a consecutive patch. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Oct 28, 2009
-
-
Michael Hanselmann authored
Also use grep only to convert find's output to an exit status. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Our admin guide was very very trivial. This patch updates it to contain advice on when to use which commands, removes the instance administration part from the installation guide (moved to the admin guide), and adds a walkthrough document that should be useable as a starting point for new admins. The patch also adds emacs variables to the documents, and rewraps some which were not already at 72 chars. The doc updates also show backwards-compatible commands for Ganeti 2.0, as we don't have a good up-to-date 2.0 document and people might refer to this set of documentation even when running that. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
For the Nth time, re-fix shadowing of outer-scope variable :) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
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>
-
Iustin Pop authored
pylint is your friend, since the compiler doesn't exist. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Oct 27, 2009
-
-
Michael Hanselmann authored
This is particularily useful for “gnt-cluster redist-conf”, but also for all other cases where the configuration files are rewritten on other nodes. $ gnt-cluster redist-conf … Copy of file /var/lib/ganeti/config.data to node … failed: Error while executing backend function: [Errno 1] Operation not permitted … Error while uploading ssconf files to node …: Error while executing backend function: [Errno 1] Operation not permitted $ gnt-node modify --offline no --force node3.example.com … - WARNING: Not enough master candidates (desired 10, new value will be 4) … Copy of file /var/lib/ganeti/config.data to node node8.example.com failed: Error while executing backend function: [Errno 1] Operation not permitted Modified node node3.example.com - offline -> True - master_candidate -> auto-demotion due to offline Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This reduces the size of the script by about 9 kB. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
This was implemented in 350ecfec and reverted in 700bb843 after it broke “make distcheck”. With other changes in this patch series this will work now. Contributing to the original problem was that the news.rst file was not distributed. When we distribute the build documentation, the source must also be included (see Automake manual). Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
This patch also adds an explicit list of all files written by sphinx (“docoutput”). By using an explicit list the build process is more predictable and will allow us to include the NEWS file again. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
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>
-
Iustin Pop authored
Commit 2bb5c911 moved around and changed the _RunAllocator function in the DiskReplace → TaskLet conversion, but in the process it changed the relocate_from argument from a list of nodes to just the secondary node. This breaks the protocol and current iallocator scripts. This patch fixes that but also adds a local variable 'instance' since it's not nice to write self.instance so many times. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Oct 26, 2009
-
-
Guido Trotter authored
In 95b487bb we changed InstanceIpToNodePrimaryIpQuery to be able to query multiple instances at once. We also need to be able to query ips belonging to a specific nic link, so what we do is: 1) Move the "query" argument to a dict, containing different fields 2) Explicit the "query for a single ip" or "query for a list" options. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
We were already half-doing it, but this completes the process. 1) We don't maintain a list of ips or an ip->instance map 2) We add a new link,ip->instance map (link->ips list we had) 3) We add the link parameter to GetInstanceByIp (making it GetInstanceByLinkIp) 4) We change the GetInstanceByIp caller to pass None as link (thus for now using only the default link) Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
GetDefaultNicParams returns the default nic parameters. GetDefaultNicLink returns the default nic link. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
Since we have this variable and use it in other places, remove the only leftover hardcoded place. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Guido Trotter authored
It's used by some functions defined there. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This allows using an email address (as is) as part of a tag. The main problem that could arise is when parsing tags from a shell script, but (AFAIK) '@' is not a special character when used in values (happy to be corrected if not true). The patch also moves the re to be compiled at class init time, should use less resources; in my tests it is fine to use a compiled re from multiple threads. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
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 23, 2009
-
-
Guido Trotter authored
Currently we can start/stop the various subdaemons, but not confd. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-