RPC 'node_info': <storage_type,key> instead of vg_names
This replaces the field 'vg_names' in the RPC call of 'node info' by 'storage_units'. A storage unit is a tuple <storage_type,key> and a generalization of a vg_name. The list of vg names is replaced by a list of storage units. The modified RPC call will be used to report storage space for more than just lvm volume groups. What the 'key' is depends on the storage type. For storage type lvm-vg, the key is the volume group name. To keep backward compatibility, all functions that use the old vg_names, convert them to a list where every volume group is mapped to a tuple [('lvm-vg',volume_group)] before making the call. Signed-off-by:Helga Velroyen <helgav@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
Showing
- lib/backend.py 48 additions, 5 deletionslib/backend.py
- lib/cmdlib/instance.py 4 additions, 1 deletionlib/cmdlib/instance.py
- lib/cmdlib/instance_storage.py 4 additions, 1 deletionlib/cmdlib/instance_storage.py
- lib/cmdlib/node.py 4 additions, 1 deletionlib/cmdlib/node.py
- lib/masterd/iallocator.py 1 addition, 1 deletionlib/masterd/iallocator.py
- lib/rpc_defs.py 3 additions, 2 deletionslib/rpc_defs.py
- lib/server/noded.py 2 additions, 2 deletionslib/server/noded.py
- src/Ganeti/Query/Node.hs 5 additions, 1 deletionsrc/Ganeti/Query/Node.hs
- src/Ganeti/Rpc.hs 2 additions, 2 deletionssrc/Ganeti/Rpc.hs
Loading
Please register or sign in to comment