Consistency checks for config wrt disk templates
authorHelga Velroyen <helgav@google.com>
Wed, 27 Mar 2013 15:02:47 +0000 (16:02 +0100)
committerHelga Velroyen <helgav@google.com>
Thu, 11 Apr 2013 20:53:45 +0000 (22:53 +0200)
commit3da6e141274cc233732aa7e0e8b5b743b79400a7
treef30c08839718fc37f4f1a1cbc175e1c464e63747
parent6f665bf780bcbf9c04a9a87059c8474fa3fea5c2
Consistency checks for config wrt disk templates

This patch adds consistency checks for the configuration regarding
disk templates. In particular, it checks that the list of enabled
disk templates is not empty, does not contain any bogus templates,
and that all instances use actually enabled disk templates.
Additionally, it fixes a small formatting issue regarding the list
of enabled hypervisors.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Michele Tartara <mtarara@google.com>
lib/config.py