- 26 Nov, 2013 22 commits
-
-
Helga Velroyen authored
Removes the remains of the group query code. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
Removes the remains of the node query code. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
Clears the haskell tests from the query opcodes that are no longer needed. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
Burnin was still using some op queries. With this patch, they are now replaced by luxi queries. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
Masterd still had some 'if' branches for the queries that used to be op queries, but are now luxi queries. This patch removes them. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
This patch removes the python code for the instance queries. So far, it replaces it by 'NotImplemented' exceptions. In a later patch of this series, the remaining part is remove completely. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
The watcher did not yet use the query client to make queries. This patch fixes that. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
Unlike its cli counterpart, the rapi console operation did not properly take into account whether the instance is actually running. This patch fixes this problem. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
There were some places left when code querying for instance information did not use the query client yet. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
This patch removes the group query implementation in python in order to use the new Haskell implementation. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
This patch makes code use the query client for group queries where necessary in order to remove the python queries soon. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
This patch removes the python implementation of export (aka backup) queries. So far, it is replaced by 'NotImplemented' exceptions, but later in this series it will be replaced completely. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
This patch removes the python implementation of network queries and replaces it with 'NotImplemented' exceptions. It will be removed completely once all queries are switched to Haskell. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
This patch removes the python query implementation for nodes. So far, the code is replaced by 'NotImplemented' exceptions, because the overall structure of query classes can be removed more easily at once when all query implementations are ready to be removed. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
The master daemon so far still did queries via the python implementation. This patch implements that it uses the haskell implementation and removes the node queries from the list of OP-queriable entities. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
So far, the watcher was still issuing node queries via the python implementation. This patche switches to the haskell implementation. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
Soon both, the cli and the masterd, will use a luxi client to run queries. The method to obtain and configure the luxi client with the right address can be reused from cli to masterd here. Therefore, this patch moves the function to the common runtime module. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
While the command line uses the generic 'Query' call, rapi calls 'QueryInstances'. 'QueryInstances' so far was not fully implemented in the Haskell implementation of the luxi server. This was discovered when trying to switch from python to haskell queries. This patch fixes the Haskell luxi server implementation wrt to that. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
When moving from python to haskell node queries, a bug was discovered where a node's UUID was mistakenly compared to a node's name. This indirectly caused the cluster epo operation to fail, because it was not able to identify the master node. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
To remove the node query's python implementation soon, this patch makes all users of the queries call the haskell implementation instead of the python one. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
Switching from python to haskell queries, this patch removes the option to dis/enable the haskell queries at configure time. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Jose A. Lopes authored
The QA test 'TestClusterBurnin' pauses instances and the Xen state domain 'paused' was not being handled properly by Ganeti because it was not being classified as either a running or shutdown state. This patch adds the 'paused' state to the set of running states by extending the function 'ganeti.hypervisor.hv_xen._IsInstanceRunning' with the corresponding Xen state string '--p---'. This fixes the QA test 'TestClusterBurnin'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 25 Nov, 2013 2 commits
-
-
Klaus Aehlig authored
The shelltests expected the wrong position of the -f option as well. Fix this. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Klaus Aehlig authored
hsqueeze can produce a shell script with the commands to squeeze the cluster; in the script, fix the position of the '-f' option in the 'gnt-node power' command. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Jose Lopes <jabolopes@google.com>
-
- 22 Nov, 2013 3 commits
-
-
Klaus Aehlig authored
The newest version does not build on debian squeeze, so avoid it beeing pulled in as a dependency. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Jose Lopes <jabolopes@google.com>
-
Petr Pudlak authored
This file is used for development to point to code definitions. Apparently this has been broken since Februrary [cc40185c]. The improved version fixes the problem and uses Exuberant Ctags <http://ctags.sourceforge.net/ >. It uses "etags" instead of "ctags", so Emacs compatibility should be maintained. The extra suffixes "-osuf" and "hisuf" are used to avoid problems with already compiled object files. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Petr Pudlak authored
In order to work, it is necessary: * Write a JSON Patch to file "qa/qa-patch.json" in a source repository. (And be careful not to commit it!) The file must conform to RFC6902 and describes what changes should be done to the QA JSON configuration. This is simple as [ { "op": "add", "path": "default", "value": false }, { "op": "add", "path": "/tests/instance-add-file", "value": true } ] * Install "jsonpatch" and "jsonpointer" modules on the machines QA is running on. Either using "easy_install" or as Debian packages using "pypi-install". QA only loads the modules if the patch file is present and non-empty. Therefore no changes to buildbots are needed, if the feature is not used. It's advisable to add a git pre-commit hook for the main repository to prevent changes to "qa/patch.json", keeping it to "[]". Suggestion for such a hook: # Exit code 1 if the patch file isn't just "[]": python -c 'import json, sys; \ exit(0 if json.load(open("qa/qa-patch.json", "r")) == [] else 1)' Locally it's possible to tell git not to track changes to the file at all (see https://help.github.com/articles/ignoring-files ): git update-index --assume-unchanged qa/qa-patch.json Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 21 Nov, 2013 2 commits
-
-
Klaus Aehlig authored
When spindles where added to Ganeti, apparently it was forgotten to add the parameter to the Haskell data type as well. Do this now. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Klaus Aehlig authored
The disk parameter "spindles", if present, has to be an integer. Enforce this already when parsing the command line, instead of passing around the string representation of that integer. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- 20 Nov, 2013 1 commit
-
-
Petr Pudlak authored
If any of the nodes involved would be reached through IPv6, the test is skipped. This is because the required testing setup using "iptables" is suiteble only for IPv4 and doesn't work for IPv6 connections. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 19 Nov, 2013 4 commits
-
-
Klaus Aehlig authored
The option -C was recently added to hsqueeze, but not documented in the man page. Add the documentation now. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Hrvoje Ribicic authored
The NIC VLAN has previously not been modified via Haskell, causing the INicParams class not to be used. With the recent job queue refactorings, a modification definition is recorded, and for an empty string (which is a legal default value) a crash happens. This patch fixes this by allowing VLANS to be empty strings on the Haskell side. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
Allow the retrieval of the VLANs of all the NICs through nic.vlans. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
The field was added to Python queries in an earlier version, and now has to be added to the Haskell queries as well. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- 18 Nov, 2013 3 commits
-
-
Petr Pudlak authored
Similarly to simple tests, test blocks are now demarcated (in boldface) and measured. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Petr Pudlak authored
Allow combination of colors, background colors, bold, reverse video, etc. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Petr Pudlak authored
It uses `tput` to check if the current terminal has enough colors. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- 15 Nov, 2013 3 commits
-
-
Klaus Aehlig authored
In the examples, pick a node that certainly has to be powered on or off, respectively, and verify that the power command is there, as well an appropriate migration command in the right position. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Klaus Aehlig authored
Add an option to hsqueeze to show, or save in a file, the commands that have to be carried out. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Klaus Aehlig authored
In hsqueeze, when computing the balancing sequence, also remember the sequence of moves that lead there. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-