Check node processes earlier

When creating a cluster, validate node processes as early as we can.

(The config-recommending step may have some impact on validity, so we
must leave that as the first call.)

Note that there has been a desire mentioned to move the node process
validation to occur during cluster template creation. Unfortunately the
amount of refactoring needed makes the task too daunting to be
completed now.

Change-Id: Ib5c91e062b32a83268d178417cbc5120d4c57934
This commit is contained in:
Jeremy Freudberg 2018-06-04 15:53:59 -04:00
parent 4f074856b6
commit aae8a86309
2 changed files with 2 additions and 2 deletions

View File

@ -125,8 +125,8 @@ def _cluster_create(values, plugin):
plugin.recommend_configs(cluster)
cluster = c_u.change_cluster_status(
cluster, c_u.CLUSTER_STATUS_VALIDATING)
quotas.check_cluster(cluster)
plugin.validate(cluster)
quotas.check_cluster(cluster)
except Exception as e:
with excutils.save_and_reraise_exception():
c_u.change_cluster_status(

View File

@ -126,8 +126,8 @@ def _cluster_create(values, plugin):
plugin.recommend_configs(cluster)
cluster = c_u.change_cluster_status(
cluster, c_u.CLUSTER_STATUS_VALIDATING)
quotas.check_cluster(cluster)
plugin.validate(cluster)
quotas.check_cluster(cluster)
except Exception as e:
with excutils.save_and_reraise_exception():
c_u.change_cluster_status(