- Feb 27, 2013
-
-
Michael Hanselmann authored
They do not work properly at the moment. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michael Hanselmann authored
The file is located below the virtual node directory. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michael Hanselmann authored
The virtual node prefix must be added to the path. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michael Hanselmann authored
The OS definitions are not virtualized. Tests configuring different OS definitions on different nodes don't work properly. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michael Hanselmann authored
Use path of virtual node when retrieving ssconf's instance list. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michael Hanselmann authored
Use virtual node path when removing the watcher status file. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michael Hanselmann authored
“qa_utils.BackupFile” is always called with the path for a normal node. In virtual clusters the node prefix path must be added. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michael Hanselmann authored
In virtual clusters, all “gnt-*” and “ganeti-*” commands require environment variables to be set for the virtual cluster root directory and node name. The “cmd” script generated by “vcluster-setup” is a wrapper setting those variables. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michael Hanselmann authored
Until now all tests depended on simple AND/OR conditions. With the introduction of virtual cluster support, some tests can only run if virtual clusters are not in use (e.g. not yet supported or not possible). Instead of introducing more logic for enabling/disabling tests, callable values are supported instead. “ht.WithDesc” should be used on them to continue to provide a readable description. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michael Hanselmann authored
If these new options are set, a virtual cluster is created and used. Virtual clusters consist of 1..N virtual nodes on a single physical (or virtual) node. The design of virtual clusters is described in “doc/design-virtual-clusters.rst”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Christos Stavrakakis authored
Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Feb 26, 2013
-
-
Michael Hanselmann authored
Many resources, but not all, list their supported methods. With a new reST directive, this list is now automatically generated and also lists the required permissions. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Feb 25, 2013
-
-
Guido Trotter authored
Accept the -G option, and if it's passed require that it matches a nodegroup, then only output nodes belonging to that group. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
To make the graphs work even when instances live on offline nodes (eg. because we're offlining them just to exclude them, or because they have instance still on them) we just filter them out at the end, when we're going to print out the result. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
We have no way to test Python 2.4 compatibility anymore, and that version is long deprecated. From version 2.8+ require Python 2.6 or above (but still not 3.0). Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
In some situations after restarting the SSH daemon by “prepare-node-join” it's not immediately reachable. Like with the master and node daemons, waiting for it to become reachable instead of failing hard can help in such situations. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Michael Hanselmann authored
Log every attempt to reach a port on another node. Don't silently return False if a target not recognized as an IP address is given (e.g. a hostname). Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Michael Hanselmann authored
In issue 353 Sascha Lucas reported that disks are not wiped when added through “gnt-instance modify”. This patch adds this functionality and updates the docstring for “_WipeDisks”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This directory is required by “cfgupgrade” and some other tools. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Michael Hanselmann authored
Moving the SSH/SCP constants around was necessary for this. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Michael Hanselmann authored
- Commit 4a90bd4f contained a rather large number of style violations: - Indentation/sequence formatting - Wrapping of long lines - Docstrings whose first line was wrapped - A stray backslash in a docstring - opcodes: Don't check for list or tuple. None of the other opcodes does it explicitely. As long as the length and the items match the value is accepted. - server/noded: “if variable” doesn't test for None, but False Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Until now many resources, but not all and not consistently list their supported methods (e.g. “Supports the following commands: ``GET`` …”). Not only is it easy for this list to get out of date, but it would also be nice if it listed the required access permissions. This patch adds a new directive to insert a table listing all supported methods and their access permissions for a resource. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
The list of resources and handlers will also be used for generating a per-resource table. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
The factorized parts will be used to show a small table with methods and required permissions for each resource. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
The list of required access permissions uses the word “everyone” to mean “no special permissions are needed”. The word “none” fits better. 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:
Dato Simó <dato@google.com>
-
Iustin Pop authored
As it was 80 chars, and you know that bothers me :) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Iustin Pop authored
Rapi doesn't seem to export backup lists, so we enable the split query only in gnt-backup. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This is an ugly patch, sorry. It adds the following features to rpc-test, to help with (stress) testing the Haskell RPC client: - customisable repeat count for the RPCs - customisable parallelisation factor - options to show timing stats and other information - capability to execute any RPCs already defined, as opposed to having the RPC hardcoded; this requires a data file (defaulting to "rpc.json") that has the serialised RPC call The polymorphism/way the RPC library is implemented requires us to have some duplicate code (operating on different types); I wasn't able to found a way to make this more abstract. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This is a simple query as it has only two fields, however it's the first query that doesn't have a clear 'base' object and 1:1 correspondence between such objects and the results (groups, nodes and networks do so). We keep nodes as the 'base' object, since that's what we want to filter on for RPC selection, and we have a very simple type as the runtime type, since we only have one other field. The 'collectLiveData' function is the one that does the expansion from [node] to [(node, path)], with the help of 'rpcExtractor'. Also, this patch introduces a slightly different naming structure for the exported names out of the module, to reduce naming conflicts. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
When the RPC to a node has failed (for whatever reason), we currently return _FS_UNAVAIL, which means "this node doesn't support exports". However, that is misleading: all nodes support exports, but we failed to list them at the moment, so _FS_NODATA (temporary failure) is more appropriate here. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This is straightforward, as the call has no parameters and a very simple return type. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Currently, an empty objects will generate warnings as the arguments of various functions are unused. By adding conditional code for this, we can support generation of empty objects, e.g. like needed in Rpc code. Additionally, the patch also converts RpcCallVersion to THH, now that it can build it. We change the serialisation for this (from JSNull to JSObject []), but this shouldn't matter as this is not used in production. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Feb 22, 2013
-
-
Iustin Pop authored
This is an autogenerated file, so it has to go into gitignore, thanks Michael! Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Iustin Pop authored
Currently, the choice between masterd and conf/queryd is made statically, based on whether a query is converted or not and whether split queries are enabled. This makes it hard to test and develop these new queries, so this patch adds an override for the socket. The choice for going with two hardcoded strings and arbitrary socket fallback is done so that it's easy to use this in virtual clusters as well. Additionally, the patch improves the error message on failed connects when we use arbitrary sockets; before, it always "blamed" confd for non-master sockets. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
- Document fields in “rapi/users” file in the order they appear (username, password, options) - Mention new “--require-authentication” option - Clarify use of “write” on “GET” method Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Other parts of the documentation directly refer to the constants through “pyeval”. There's no need for this map as it's just additional work to maintain. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Most RAPI resources do not require authentication for the “GET” method. In some setups it can be desirable to always require authentication. This patch adds a command line parameter to always require it. Some unrelated minor typos in the “ganeti-rapi” man page are also fixed. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Feb 21, 2013
-
-
Michele Tartara authored
The previous patch was incomplete when erroneously pushed. This patch, originally intended as part of the previous one, fixes it. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michele Tartara authored
Update the monitoring agent design document adding the format of the HTTP queries that will have to be used to query the monitoring agent. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-