An error occurred fetching the project authors.
- Feb 22, 2011
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Feb 17, 2011
-
-
Iustin Pop authored
Since we don't have the data per design, UNAVAIL is appropriate here, while NODATA is not. The patch also adds a comment: if we extend the live fields list to contain other data in the future, we need to reevaluate this solution. This should fix issue 143. The listing now shows (node2==ofline, node3==not vm_capable): Node DTotal DFree MTotal MNode MFree Pinst Sinst node1 698.6G 630.5G 32.0G 1.0G 30.0G 8 7 node2 (offline) (offline) (offline) (offline) (offline) 9 4 node3 (unavail) (unavail) (unavail) (unavail) (unavail) 0 0 Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jan 28, 2011
-
-
Michael Hanselmann authored
This makes it possible to get the console information via a LUXI query. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
René Nussbaumer authored
If for some reason (e.g. failed migration) one instance is running on multiple nodes the output can become inconsistent. To get that error and make it consistent between runs we make the call on the secondary too and look if it's running there. If so we report the instance as ERROR_wrongnode. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 21, 2011
-
-
René Nussbaumer authored
This patch renames QRFS_* to RS_* fields so they can be used in other places (i.e. LUs) without confusion, as this was initially meant for query operations. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 20, 2011
-
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Jan 18, 2011
-
-
Iustin Pop authored
This patch exposes the VTYPE kind of BE/HV parameters, instead of returning QFT_OTHER. The current situation makes a query like: gnt-instance list -o name,be/memory,oper_ram very strange looking. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
If a HV parameter is required that does not apply for an instance, currently the code returns None. This is bad, as it means we cannot switch to the actual HV parameter types and validate correctly this field. This patch changes it so that in this case we return QRFS_UNAVAIL; ideally we would use a NOT_APPROPRIATE or similar field, but UNAVAIL is good enough (the call cannot fail in another way). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Currently, the single assert just checks that the entire row is consistent (true/false), and dumps the row and field definitions as an accompanying message. This makes it very hard to understand what failed. This patch changes this validation to show descriptive messages, which makes it much faster in diagnosing invalid result. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
The conversion to querylib introduced unique field titles, which however did an inconsistent rename of the instance vcpus/memory fields. This patch makes both BE_MEMORY and _VCPUS be named with prefix “Config” (which before was “Configured_”), and drops the “Runtime” (note no underscore) prefix on the oper_ ones. Rationale: for numeric fields, the width of the title defines the width of the columns, as the numbers are usually small. Hence these columns (more likely used than the BE ones) would be very wide, leading to a not-so-nice display. I happened upon this when my terminals didn't manage to fit a gnt-instance list anymore. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
While looking at the query library, I realized that while we have five field statuses, making this a 5-dimensional space, four of them are shrunk to a single possible value (None). Hence it should be possible to convert this into a single value space plus extra 4 special constants. This patch implements this, making (IMHO) the return value of normal functions much simpler: you simply return the desired value, instead of (QRFS_NORMAL, value); for the special results, you simply return _FS_UNAVAIL, instead of (QRFS_UNAVAIL, None). This I believe does simplify the code. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Currently, the QRFT/QFT constants are used with the module (e.g. constants.QRFS_NORMAL) in the query library. Given that there are 176 uses of these constants in a module that has roughly ~1200 lines in total (including whitespace), it makes sense to import these directly to improve readability. This patch does this and (IMHO) it does indeed make the code more to the point; the entire query library is about queries, so using these constants directly doesn't cause any misunderstandings. Note: the epydoc links are not changed, since we want the generated docs to point to the right place. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jan 14, 2011
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Jan 13, 2011
-
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Adeodato Simo <dato@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jan 06, 2011
-
-
René Nussbaumer authored
This field is based on OOB support and is only available if there's oob support for that node. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Adeodato Simo authored
Signed-off-by:
Adeodato Simo <dato@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Adeodato Simo authored
Additionally, change TestQueryFields.testSomeFields() to handle lists of fields shorter than 20 elements. Signed-off-by:
Adeodato Simo <dato@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Locks can now be queried using “Query(what="lock", …)” over LUXI. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 05, 2011
-
-
Michael Hanselmann authored
This allows “gnt-node list” to show the difference between modes marked offline and nodes with e.g. RPC errors (“(nodata)”). node1 is the master, node2's node daemon crashed and node3 is marked offline: $ gnt-node list -o name,offline,dtotal,dfree Node Offline DTotal DFree node1.example.com N 1.3T 1.3T node2.example.com N (nodata) (nodata) node3.example.com Y (offline) (offline) Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Dec 21, 2010
-
-
Michael Hanselmann authored
It'll be used for querying locks. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Also replace “sorted” with “utils.NiceSort” now that it supports a key function. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Dec 13, 2010
-
-
Michael Hanselmann authored
In upgraded configurations, some items might miss the “ctime” and/or “mtime” values and need to be handled specially. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Dec 10, 2010
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Dec 08, 2010
-
-
Michael Hanselmann authored
- Show only field definition, not callback when a result row is inconsistent - Show list of duplicate titles if there are any (module load time) Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Adeodato Simo <dato@google.com>
-
- Nov 29, 2010
-
-
Michael Hanselmann authored
This includes a bunch of helper functions which can be helpful for other queries, too. Unittests are included. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
While not immediately visible, using definition-based queries will allow for a number of optimizations and simplifications. This patch just contains the utility class used for executing queries. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-