Add the gnt-storage client
Add a new client called 'gnt-storage'. The client interacts with the ExtStorage interface, similarly to the way gnt-os interacts with the OS interface. For now, only two commands are supported: 'info' and 'diagnose'. 'diagnose' calculates the node status of each provider on each node, similarly to gnt-os diagnose. Furthermore, for every provider, it calculates it's nodegroup validity for each nodegroup. This is done inside the LU and not the client (marked as 'TODO' for the global validity of gnt-os diagnose). In the future, gnt-storage can be used to manage storage pools, or even be extended to diagnose other storage types supported by Ganeti, such as lvm, drbd (INT_MIRROR) or rbd (EXT_MIRROR). Signed-off-by:Constantinos Venetsanopoulos <cven@grnet.gr> Signed-off-by:
Iustin Pop <iustin@google.com> [iustin@google.com: fixed Haskell compatibility and style fixes] Reviewed-by:
Iustin Pop <iustin@google.com>
Showing
- Makefile.am 4 additions, 2 deletionsMakefile.am
- autotools/build-bash-completion 4 additions, 0 deletionsautotools/build-bash-completion
- htest/Test/Ganeti/OpCodes.hs 2 additions, 0 deletionshtest/Test/Ganeti/OpCodes.hs
- htools/Ganeti/OpCodes.hs 3 additions, 0 deletionshtools/Ganeti/OpCodes.hs
- lib/backend.py 45 additions, 0 deletionslib/backend.py
- lib/cli.py 11 additions, 1 deletionlib/cli.py
- lib/client/gnt_storage.py 196 additions, 0 deletionslib/client/gnt_storage.py
- lib/cmdlib.py 154 additions, 0 deletionslib/cmdlib.py
- lib/constants.py 2 additions, 0 deletionslib/constants.py
- lib/opcodes.py 11 additions, 0 deletionslib/opcodes.py
- lib/query.py 34 additions, 0 deletionslib/query.py
- lib/rpc_defs.py 6 additions, 1 deletionlib/rpc_defs.py
- lib/server/noded.py 9 additions, 0 deletionslib/server/noded.py
- test/docs_unittest.py 1 addition, 0 deletionstest/docs_unittest.py
Loading
Please register or sign in to comment