« Previous | Next » 

Revision 6c00b2c7

Parent 4d1429e4
Child 4febd988

Added by Helga Velroyen over 10 years ago

Streamlining handling of spindles and default templates

This rather lenghy patch comprises a couple of refactorings
to achieve the following goals:
- 'gnt-node info' should only report space information about
spindles, when exclusive storage is enabled on the node
(so far it always did when lvm-based storage was enabled).
- 'gnt-node info' should report the disks' space information
for the default disk template's storage. So far it did it
always for LVM, which is irrelevant for a cluster running
for example file-based instances.
- Performance tweaking of storage reporting and gnt-node
- Consider the future work on storage pools for any changes.

This is is achieved by the following refactorings:
- Move the decision whether or not to ask for spindle
from cmdlib-level to rpc level.
- Move the decision for which disk template's storage
information to ask for to cmdlib level (instead of
requesting information for all storage units and
later discarding most of them).
- Adjustments to storage utility functions.
- Affected unit tests are adjusted as well.

Signed-off-by: Helga Velroyen <>
Reviewed-by: Klaus Aehlig <>


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences