From 1084cd99548f7e7b3087d9d5fdb8a86e37c4575a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilherme=20Steinm=C3=BCller?= Date: Mon, 28 Jan 2019 16:32:16 +0000 Subject: [PATCH] Only init a workspace if doesn't exists The fix workspace path[1] executes the init regardless, but to make it work in an upgrade from rocky to queens we should just move the path of an existent workspace [1] https://review.openstack.org/#/c/627782/ Change-Id: I9bdea50be389815f3e8dbe6a42e7628f7b40f9b6 --- tasks/tempest_post_install.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/tempest_post_install.yml b/tasks/tempest_post_install.yml index dcf3441b..a73849f3 100644 --- a/tasks/tempest_post_install.yml +++ b/tasks/tempest_post_install.yml @@ -52,8 +52,9 @@ if ! tempest workspace list | grep -w {{ tempest_workspace }}; then tempest workspace move --name workspace --path {{ tempest_workspace }} fi + else + tempest init {{ tempest_workspace }} fi - tempest init {{ tempest_workspace }} exit 3 fi args: