- 26 Nov, 2013 17 commits
-
-
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 8 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>
-
Klaus Aehlig authored
Add a function that, given two adjacent cluster configurations of a balancing sequence, computes the moves that led from the first to the second configuration. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Klaus Aehlig authored
When grouping moves into jobs, a new job set is started, if the new move involves a node also touched by a previous move. When computing the list of involved nodes, the new primary and secondary nodes of the instance are included; if an instance, however, has only one node, the "no secondary" index -1 should be left out to avoid spurious conflicts between unrelated moves of single-homed instances. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Klaus Aehlig authored
Move the function that saves a list of a command in a file to CLI.hs. In this way, it is reusable by other htools. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Thomas Thrainer authored
Merge branch 'stable-2.10' into master * stable-2.10 Don't allow optional node parameters Move OVS node parameters to the right place Make NIC VLAN queryable Pass VLAN parameter correctly in moves Use constant instead of raw string Merge 'hs2py-constants' into 'hs2py' Add flag '--opcodes' to 'hs2py' Sort design docs alphabetically Missing design docs from distribution When loading configuration fails, include the reason Fixing rapi documentation wrt to storage types Move Haskell constants to proper module Tear down Py2Hs constant infrastructure Hs2Py constants: additional module jstore Hs2Py constants: additional module errors Hs2Py constants: additional module qlang Hs2Py constants: additional module luxi Remove module 'ganeti.constants' from 'convert-constants' Fix reference to vcs version in query server Eliminate unused constants Use configure constants instead of generated Hs2Py constants: add 'UUID_REGEX' Add 'AF_INET*' constants to Haskell's 'AutoConf' Python autotool to print socket constants * stable-2.9 Bump revision for 2.9.1 Update NEWS and schedule release for 2.9.1 Fix retrieval of xen command in class method Fix docstring for ganeti.storage.filestorage_unittest.py Undo revision bump Postpone release of 2.9.1 Revision bump for 2.9.1 Update NEWS for 2.9.1 release Readd nodes as online When verifying BRBD version, ignore missing values * stable-2.8 Version bump for 2.8.2 Update NEWS file for 2.8.2 release DRBD: ensure peers are UpToDate for dual-primary Conflicts: Makefile.am: Add design docs from both sides (sorted); Remove rules for hs2py-constants lib/hypervisor/hv_xen.py: Merge parameter list of GetInstanceConsole lib/luxi.py: Use generated constant for REQ_PICKUP_JOB src/Ganeti/ConfigReader.hs: trivial src/Ganeti/HsConstants.hs: Manually add UserDown and ndSshPort related constants to Constants.hs src/Ganeti/Query/Server.hs: trivial Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Thomas Thrainer authored
Merge branch 'stable-2.9' into stable-2.10 * stable-2.9 Bump revision for 2.9.1 Update NEWS and schedule release for 2.9.1 Fix retrieval of xen command in class method Fix docstring for ganeti.storage.filestorage_unittest.py Undo revision bump Postpone release of 2.9.1 Revision bump for 2.9.1 Update NEWS for 2.9.1 release Readd nodes as online When verifying BRBD version, ignore missing values * stable-2.8 Version bump for 2.8.2 Update NEWS file for 2.8.2 release DRBD: ensure peers are UpToDate for dual-primary Conflicts: NEWS: trivial configure.ac: ignore version bump Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-