From fbbb667354ee7f8929ef75e4d2580e4b1969d4ea Mon Sep 17 00:00:00 2001 From: Aleksandr Mogylchenko Date: Thu, 2 Feb 2017 09:55:58 +0100 Subject: [PATCH] Revert "Perform files creation after all dependencies resolved" For SSL-enabled deployments file creation should be first, otherwise start_script.py won't be able to connect to etcd, since ca.pem is missing. This reverts commit 55d77ced5d3c69851a590c3f9185e929bd9818e7. Change-Id: Ic488d837b1dd4f21eae4ad5fe26bfb71b1f8a04d --- fuel_ccp_entrypoint/start_script.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fuel_ccp_entrypoint/start_script.py b/fuel_ccp_entrypoint/start_script.py index b854190..b374ddb 100644 --- a/fuel_ccp_entrypoint/start_script.py +++ b/fuel_ccp_entrypoint/start_script.py @@ -518,15 +518,14 @@ def do_status(role_name): def do_provision(role_name): workflow = get_workflow(role_name) + files = workflow.get('files', []) + create_files(files) dependencies = workflow.get('dependencies') if dependencies: etcd_client = get_etcd_client() wait_for_dependencies(dependencies, etcd_client) - files = workflow.get('files', []) - create_files(files) - job = workflow.get("job") daemon = workflow.get("daemon") roll = workflow.get("roll")