From 0d2a43fd66a402d6a88b9d7625a1e2ac8d3c53fc Mon Sep 17 00:00:00 2001 From: Benjamin Michael Cooper Date: Thu, 22 Jun 2017 10:32:16 +0100 Subject: [PATCH] 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 --- bareon_ironic/modules/bareon_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bareon_ironic/modules/bareon_base.py b/bareon_ironic/modules/bareon_base.py index d236c67..9c4a2ed 100644 --- a/bareon_ironic/modules/bareon_base.py +++ b/bareon_ironic/modules/bareon_base.py @@ -149,7 +149,6 @@ class BareonDeploy(base.DeployInterface): """ _NodeDriverInfoAdapter(task.node) - self._validate_deployment_config(task) @task_manager.require_exclusive_lock def deploy(self, task): @@ -183,6 +182,7 @@ class BareonDeploy(base.DeployInterface): """ self._fetch_resources(task) + self._validate_deployment_config(task) # Temporary set possible missing driver_info fields. This changes will # not become persistent until someone do