.. that are now implemented in WConfd.

While this means that the configuration won't be checked for offline
operations, it will be checked by WConfd as soon as it starts.

Signed-off-by: Petr Pudlak <[email protected]>
---
 lib/config.py | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/lib/config.py b/lib/config.py
index 855130a..20e2160 100644
--- a/lib/config.py
+++ b/lib/config.py
@@ -956,31 +956,6 @@ class ConfigWriter(object):
         except IndexError:
           pass
 
-    # global cluster checks
-    if not cluster.enabled_hypervisors:
-      result.append("enabled hypervisors list doesn't have any entries")
-    invalid_hvs = set(cluster.enabled_hypervisors) - constants.HYPER_TYPES
-    if invalid_hvs:
-      result.append("enabled hypervisors contains invalid entries: %s" %
-                    utils.CommaJoin(invalid_hvs))
-    missing_hvp = (set(cluster.enabled_hypervisors) -
-                   set(cluster.hvparams.keys()))
-    if missing_hvp:
-      result.append("hypervisor parameters missing for the enabled"
-                    " hypervisor(s) %s" % utils.CommaJoin(missing_hvp))
-
-    if not cluster.enabled_disk_templates:
-      result.append("enabled disk templates list doesn't have any entries")
-    invalid_disk_templates = set(cluster.enabled_disk_templates) \
-                               - constants.DISK_TEMPLATES
-    if invalid_disk_templates:
-      result.append("enabled disk templates list contains invalid entries:"
-                    " %s" % utils.CommaJoin(invalid_disk_templates))
-
-    if cluster.master_node not in data.nodes:
-      result.append("cluster has invalid primary node '%s'" %
-                    cluster.master_node)
-
     def _helper(owner, attr, value, template):
       try:
         utils.ForceDictType(value, template)
-- 
2.0.0.526.g5318336

Reply via email to