Browse Source

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
tags/9.0.0.0b3
Jeremy Freudberg 11 months ago
parent
commit
aae8a86309
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      sahara/service/api/v10.py
  2. 1
    1
      sahara/service/api/v2/clusters.py

+ 1
- 1
sahara/service/api/v10.py View File

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

+ 1
- 1
sahara/service/api/v2/clusters.py View File

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

Loading…
Cancel
Save