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:
parent
4f074856b6
commit
aae8a86309
|
@ -125,8 +125,8 @@ def _cluster_create(values, plugin):
|
||||||
plugin.recommend_configs(cluster)
|
plugin.recommend_configs(cluster)
|
||||||
cluster = c_u.change_cluster_status(
|
cluster = c_u.change_cluster_status(
|
||||||
cluster, c_u.CLUSTER_STATUS_VALIDATING)
|
cluster, c_u.CLUSTER_STATUS_VALIDATING)
|
||||||
quotas.check_cluster(cluster)
|
|
||||||
plugin.validate(cluster)
|
plugin.validate(cluster)
|
||||||
|
quotas.check_cluster(cluster)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
with excutils.save_and_reraise_exception():
|
with excutils.save_and_reraise_exception():
|
||||||
c_u.change_cluster_status(
|
c_u.change_cluster_status(
|
||||||
|
|
|
@ -126,8 +126,8 @@ def _cluster_create(values, plugin):
|
||||||
plugin.recommend_configs(cluster)
|
plugin.recommend_configs(cluster)
|
||||||
cluster = c_u.change_cluster_status(
|
cluster = c_u.change_cluster_status(
|
||||||
cluster, c_u.CLUSTER_STATUS_VALIDATING)
|
cluster, c_u.CLUSTER_STATUS_VALIDATING)
|
||||||
quotas.check_cluster(cluster)
|
|
||||||
plugin.validate(cluster)
|
plugin.validate(cluster)
|
||||||
|
quotas.check_cluster(cluster)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
with excutils.save_and_reraise_exception():
|
with excutils.save_and_reraise_exception():
|
||||||
c_u.change_cluster_status(
|
c_u.change_cluster_status(
|
||||||
|
|
Loading…
Reference in New Issue