Fix bug in when verification is called
Fixes a bug introduced by change 422821. In this change, the schema validation was moved from the 'prepare' to 'validate' method in '_clean_up_images'. This causes the validation to be performed before the provision.json has been generated for a given node and so results in a Nova Scheduler error as '[Errno 2] No such file or directory'. Moving the function call back to 'prepare' fixes this problem. Change-Id: I9128abb5dbc0579190323979f93691e21f4ef6b2
This commit is contained in:
parent
7468264200
commit
860c344ccf
@ -149,7 +149,6 @@ class BareonDeploy(base.DeployInterface):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
_NodeDriverInfoAdapter(task.node)
|
_NodeDriverInfoAdapter(task.node)
|
||||||
self._validate_deployment_config(task)
|
|
||||||
|
|
||||||
@task_manager.require_exclusive_lock
|
@task_manager.require_exclusive_lock
|
||||||
def deploy(self, task):
|
def deploy(self, task):
|
||||||
@ -183,6 +182,7 @@ class BareonDeploy(base.DeployInterface):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
self._fetch_resources(task)
|
self._fetch_resources(task)
|
||||||
|
self._validate_deployment_config(task)
|
||||||
|
|
||||||
# Temporary set possible missing driver_info fields. This changes will
|
# Temporary set possible missing driver_info fields. This changes will
|
||||||
# not become persistent until someone do
|
# not become persistent until someone do
|
||||||
|
Loading…
Reference in New Issue
Block a user