Check nodes roles before deployment
Nodes roles should be checked in CheckBeforeDeploymentTask, because it's possible to deploy node with conflicting roles or with incompatible role. Roles release metadata will be used for roles checks, this metadata contains restrictions. Since `depends` is not used anymore, it's changed to `restrictions` in assignment validator. Change-Id: Ibba7951968cbafd59fff0d516e74f9dd9e454edc Closes-Bug: #1573006
This commit is contained in:
parent
e7230f5824
commit
93d7fb982b
|
@ -187,7 +187,7 @@ class TestNodeReassignNoReinstallValidator(tests_base.BaseCloneClusterTest):
|
|||
"reprovision": False,
|
||||
"roles": ['controller', 'compute'],
|
||||
})
|
||||
msg = '^Role "controller" in conflict with role compute$'
|
||||
msg = "^Role 'controller' in conflict with role 'compute'.$"
|
||||
with self.assertRaisesRegexp(errors.InvalidData, msg):
|
||||
self.validator.validate(data, self.dst_cluster)
|
||||
|
||||
|
|
Loading…
Reference in New Issue