Skip to content

Commit

Permalink
Merge pull request #2067 from aspiers/compute-ha-keystone-v3
Browse files Browse the repository at this point in the history
nova: use correct url from keystone helper for fence-agent (SCRD-7603)
  • Loading branch information
dirkmueller authored Mar 25, 2019
2 parents c85a8e7 + 13becea commit 7dce67e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions chef/cookbooks/nova/recipes/compute_ha.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
include_recipe "crowbar-pacemaker::remote_attributes"

keystone_settings = KeystoneHelper.keystone_settings(nova, @cookbook_name)
internal_auth_url_v2 = \
"#{keystone_settings["protocol"]}://" \
"#{keystone_settings["internal_url_host"]}:#{keystone_settings["service_port"]}/v2.0/"
neutrons = node_search_with_cache("roles:neutron-server")
neutron = neutrons.first || \
raise("Neutron instance '#{nova[:nova][:neutron_instance]}' for nova not found")
Expand Down Expand Up @@ -172,7 +169,7 @@
pacemaker_primitive nova_primitive do
agent "ocf:openstack:NovaCompute"
params ({
"auth_url" => internal_auth_url_v2,
"auth_url" => keystone_settings["internal_auth_url"],
# "region_name" => keystone_settings["endpoint_region"],
"endpoint_type" => "internalURL",
"username" => keystone_settings["admin_user"],
Expand Down Expand Up @@ -232,7 +229,7 @@
pacemaker_primitive evacuate_primitive do
agent "ocf:openstack:NovaEvacuate"
params ({
"auth_url" => internal_auth_url_v2,
"auth_url" => keystone_settings["internal_auth_url"],
# "region_name" => keystone_settings["endpoint_region"],
"endpoint_type" => "internalURL",
"username" => keystone_settings["admin_user"],
Expand Down Expand Up @@ -274,7 +271,7 @@
agent "stonith:fence_compute"
params ({
"pcmk_host_map" => hostmap,
"auth-url" => internal_auth_url_v2,
"auth-url" => keystone_settings["internal_auth_url"],
# "region-name" => keystone_settings["endpoint_region"],
"endpoint-type" => "internalURL",
"login" => keystone_settings["admin_user"],
Expand Down

0 comments on commit 7dce67e

Please sign in to comment.