query2: Add new field status “offline”
authorMichael Hanselmann <hansmi@google.com>
Wed, 29 Dec 2010 17:03:36 +0000 (18:03 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 5 Jan 2011 10:39:39 +0000 (11:39 +0100)
commita6070ef7f87f48fce5b5038fc48c1731a7e9b340
treeb3532b780a9b4ce8ff60b566c033f1502b24a763
parentac63b0936badb63b24211c117904fe70b356df22
query2: Add new field status “offline”

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>
doc/design-query2.rst
lib/cli.py
lib/constants.py
lib/query.py
test/ganeti.cli_unittest.py
test/ganeti.query_unittest.py