From a78003ee1c90d9164f507d13d69339ab18ebea4c Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Mon, 11 May 2015 16:06:28 +0100 Subject: [PATCH] neutron-ha-tool: add os_region_name parameter This adds an os_region_name parameter which gets passed to the neutron-ha-tool Python script, in order to support this upstream change to the latter: https://github.com/stackforge/cookbook-openstack-network/commit/58f12c50605db94bc7763c445655cbc0a57986f8 This was rescued from the unmerged pull request on the old repository: https://github.com/madkiss/openstack-resource-agents/pull/21 See also https://github.com/crowbar/barclamp-neutron/pull/217 (cherry picked from commit 7fa9b868e30143bc26e09b9db8ace41c5efeb49b) Closes-Bug: #1508416 Change-Id: Iaee553c71ecce063e9272024e42590fc2e8aa515 --- ocf/neutron-ha-tool | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ocf/neutron-ha-tool b/ocf/neutron-ha-tool index 13db5c4..0064a38 100644 --- a/ocf/neutron-ha-tool +++ b/ocf/neutron-ha-tool @@ -24,6 +24,7 @@ # OCF instance parameters: # OCF_RESKEY_binary # OCF_RESKEY_os_auth_url +# OCF_RESKEY_os_region_name # OCF_RESKEY_os_username # OCF_RESKEY_os_password # OCF_RESKEY_os_tenant_name @@ -39,6 +40,7 @@ OCF_RESKEY_binary_default="neutron-ha-tool" OCF_RESKEY_os_auth_url_default="http://localhost:5000/v2" +OCF_RESKEY_os_region_name_default="" OCF_RESKEY_os_username_default="admin" OCF_RESKEY_os_password_defaut="" OCF_RESKEY_os_tenant_name_default="admin" @@ -47,6 +49,7 @@ OCF_RESKEY_os_cacert_default="" : ${OCF_RESKEY_binary=${OCF_RESKEY_binary_default}} : ${OCF_RESKEY_os_auth_url=${OCF_RESKEY_os_auth_url_default}} +: ${OCF_RESKEY_os_region_name=${OCF_RESKEY_os_region_name_default}} : ${OCF_RESKEY_os_tenant_name=${OCF_RESKEY_os_tenant_name_default}} : ${OCF_RESKEY_os_username=${OCF_RESKEY_os_username_default}} : ${OCF_RESKEY_os_password=${OCF_RESKEY_os_password_default}} @@ -105,6 +108,14 @@ The URL pointing to the Keystone instance to use for authentication. + + +The region name to use for authentication against keystone. + +Keystone region name + + + The password to use for authentication against keystone. @@ -249,6 +260,7 @@ neutron_ha_tool_validate || exit $? # OPENSTACK env variables export OS_AUTH_URL=$OCF_RESKEY_os_auth_url +export OS_REGION_NAME=$OCF_RESKEY_os_region_name export OS_TENANT_NAME=$OCF_RESKEY_os_tenant_name export OS_USERNAME=$OCF_RESKEY_os_username export OS_PASSWORD=$OCF_RESKEY_os_password