Make 'gnt-node list-storage' use default storage type
authorHelga Velroyen <helgav@google.com>
Thu, 10 Oct 2013 12:40:23 +0000 (14:40 +0200)
committerHelga Velroyen <helgav@google.com>
Tue, 15 Oct 2013 11:13:46 +0000 (13:13 +0200)
commit4f90370cfc4a19b7bd3845bb9cd7d2df7d531b1b
treee391d96570da921763d634c3e2ed043ca30e4095
parent8b95dfdc7d3f8c3019e8b313e6160b4caa3ac3e7
Make 'gnt-node list-storage' use default storage type

Currently, when no explicit storage type is given, the
'gnt-node list-storage' command defaults to file storage
whether or not file storage is enabled on the cluster
or not. This patch fixes it by defaulting to the default
storage type (which is the storage type of the default
disk template). If this storage type does not support
space reporting, an error message is emitted.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
NEWS
lib/client/gnt_node.py
lib/cmdlib/node.py
src/Ganeti/OpCodes.hs
src/Ganeti/OpParams.hs
test/py/ganeti.rapi.rlib2_unittest.py