- 09 Feb, 2009 2 commits
-
-
Iustin Pop authored
This patch adds a new instance query flag called disk_usage that retrieves the overall space used by an instance on each of its nodes. This can be used when balancing the cluster or checking N+1 status. The flag is also exported in RAPI. Note the flag is currently broken for file-based instances, as it represents the amount of space in the cluster volume group. Reviewed-by: ultrotter
-
Iustin Pop authored
This is a hand-picked forward patch of commit 1755 on the 1.2 branch (hand-picked since the trees diverged too much since then): The patch changed the xen hypervisor to compute the number of cpu sockets/nodes and enables the command line and the RAPI to show this information (for RAPI is enabled by default in node details, for gnt-one one can use the new “cnodes” and “csockets” fields). Originally-Reviewed-by: ultrotter For the KVM and fake hypervisors, the patch just exports 1 for both nodes and sockets. This can be fixed, by looking at the /sys/devices/system/cpu/cpuN/topology directories, and computing the actual information, but that should be done in a separate patch. Reviewed-by: imsnah
-
- 06 Feb, 2009 1 commit
-
-
Iustin Pop authored
This patch fixes a couple of issues with the job listing: - in case of a non-existing job, nicely raise 404 instead of 500 - in the job detail listing, also list the job log, the job timestamps, etc. - the opcode migrate instance was missing its description field Reviewed-by: imsnah
-
- 05 Feb, 2009 1 commit
-
-
Iustin Pop authored
This patch fixes the RAPI QA tests to work with today's RAPI code and also does some other minor improvements: - QA: only create the cluster if so configured (‘create-cluster’ key), this allows running parts of the QA suite against existing clusters - export the “hvparams” for instances in RAPI Reviewed-by: imsnah
-
- 04 Feb, 2009 3 commits
-
-
Iustin Pop authored
This patch fixes the 'bulk' parameter (before any non-empty specification was considered True, in conflict with the documentation, i.e. bulk=0 still did bulk queries). The patch also adds optional locking on the instance/node listing (does not have effect when we only list names). Reviewed-by: imsnah
-
Iustin Pop authored
This patch cleans up and updates the RAPI interface: - queries are changes to luxi queries instead of jobs, where possible - since we changed the API version, we remove the old-style attributes (sda_size, ip, etc.) and replace them with 2.0 style - a small optimization in the instance and node list, don't query twice the names in bulk output - switch the instance and node lists to no locking Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds the framework for, and enables lockless OpQueryInstances. This means that instances will be shown in ERROR_up or ERROR_down state, even though this is not an error (but just an in-progress job). The framework is implemented as follows: - the OpQueryInstances, OpQueryNodes and OpQueryExports opcodes take an additional “use_locking” flag which will denote whether to lock or not; this patch only implements this for LUQueryInstances - the luxi query functions take an additional argument use_locking which is passed to the master daemon, and then passed to the above opcodes - cli.py export a new SYNC_OPT command line options which implement setting this flag to true - except for gnt-instance list, which uses this option, and for name-only queries (e.g. QueryNodes(fields=["names"])), all other callers are setting this flag to True - RAPI also sets the flag to True The patch was tested with a continuous (0.2s sleep in-between) gnt-instance list during a burnin, and no problems were observed. Reviewed-by: ultrotter
-
- 29 Jan, 2009 2 commits
-
-
Oleksiy Mishchenko authored
Generalize tag work for instances/nodes/cluster tag management. Reviewed-by: iustinp
-
Oleksiy Mishchenko authored
The resources we still need moved to rlib2. Reviewed-by: iustinp
-
- 14 Dec, 2008 1 commit
-
-
Iustin Pop authored
This was changed in the past, but it seems this class was forgotten. Reviewed-by: amishchenko
-
- 11 Dec, 2008 1 commit
-
-
Iustin Pop authored
This patch should fix all outstanding epydoc parsing errors; as such, we switch epydoc into verbose mode so that any new errors will be visible. Reviewed-by: imsnah
-
- 04 Dec, 2008 1 commit
-
-
Michael Hanselmann authored
It should be consistent. Reviewed-by: amishchenko
-
- 28 Nov, 2008 2 commits
-
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
- 26 Nov, 2008 1 commit
-
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
- 21 Nov, 2008 1 commit
-
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
- 19 Nov, 2008 1 commit
-
-
Oleksiy Mishchenko authored
Split parameters filter to the separate function and reuse it in instance creation.
-
- 14 Nov, 2008 2 commits
-
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
- 22 Oct, 2008 1 commit
-
-
Oleksiy Mishchenko authored
Reviewed-by: iustinp
-
- 16 Oct, 2008 1 commit
-
-
Oleksiy Mishchenko authored
Reviewed-by: iustinp
-
- 15 Oct, 2008 1 commit
-
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
- 31 Jul, 2008 2 commits
-
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
Oleksiy Mishchenko authored
Add instance tag handling, improved error logging. ...oh, yes adopt instance listing for RAPI2! Reviewed-by: iustinp
-
- 30 Jul, 2008 1 commit
-
-
Iustin Pop authored
This is mostly: - whitespace fix (space at EOL in some files, not all, broken indentation, etc) - variable names overriding others (one is a real bug in there) - too-long-lines - cleanup of most unused imports (not all) Reviewed-by: ultrotter
-
- 23 Jul, 2008 1 commit
-
-
Oleksiy Mishchenko authored
Reviewed-by: iustinp
-
- 22 Jul, 2008 1 commit
-
-
Oleksiy Mishchenko authored
Reviewed-by: iustinp
-