From 8fc618c3d39c9eadafcc2f9af79c763adfda07de Mon Sep 17 00:00:00 2001 From: Raoul Scarazzini Date: Thu, 29 Mar 2018 10:39:58 -0400 Subject: [PATCH] Fix STONITH script creation for Liberty/Mitaka Without using positional arguments inside the connection function in the template for the stonith script creation the backward compatibility is broken. This commit fix this by using again positional arguments and it will fix Liberty/OSP8 and Mitaka/OSP9 deployments. Change-Id: I49920dd23e372e034706d49a15d6f91a0a248bd8 --- .../templates/config-stonith-from-instackenv.py.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/stonith-config/templates/config-stonith-from-instackenv.py.j2 b/roles/stonith-config/templates/config-stonith-from-instackenv.py.j2 index 26d52eb..242e2e5 100644 --- a/roles/stonith-config/templates/config-stonith-from-instackenv.py.j2 +++ b/roles/stonith-config/templates/config-stonith-from-instackenv.py.j2 @@ -41,10 +41,10 @@ if (fence_devices in ['controllers','all']): # Connect to nova try: nt = client.Client(2, - auth_url=os_auth_url, - username=os_username, - password=os_password, - project_id=os_tenant_name) + os_username, + os_password, + os_tenant_name, + os_auth_url) except: nt = client.Client(2, auth_url=os_auth_url,