From da755d2f474ac9406ec82ccb2a4ce286ff525653 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 11 Sep 2025 01:56:30 +0900 Subject: [PATCH] Remove /v3 suffix from auth url This is no longer required in recent OpenStack where only identity v3 API is provided. The default value may not work in real production environment so this may affect only small PoC use case with a single node. Change-Id: If79d5f530126bdc60000f924706b009befa96dbb Signed-off-by: Takashi Kajinami --- manifests/network/neutron.pp | 4 ++-- manifests/placement.pp | 4 ++-- spec/classes/nova_network_neutron_spec.rb | 2 +- spec/classes/nova_placement_spec.rb | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/manifests/network/neutron.pp b/manifests/network/neutron.pp index f2ba619c7..d6087d4df 100644 --- a/manifests/network/neutron.pp +++ b/manifests/network/neutron.pp @@ -40,7 +40,7 @@ # (optional) Points to the OpenStack Identity server IP and port. # This is the Identity (keystone) admin API server IP and port value, # and not the Identity service API IP and port. -# Defaults to 'http://127.0.0.1:5000/v3' +# Defaults to 'http://127.0.0.1:5000' # # [*valid_interfaces*] # (optional) The endpoint type to lookup when talking to Neutron. @@ -100,7 +100,7 @@ class nova::network::neutron ( $system_scope = $facts['os_service_default'], $username = 'neutron', $user_domain_name = 'Default', - $auth_url = 'http://127.0.0.1:5000/v3', + $auth_url = 'http://127.0.0.1:5000', $valid_interfaces = $facts['os_service_default'], $endpoint_override = $facts['os_service_default'], $timeout = '30', diff --git a/manifests/placement.pp b/manifests/placement.pp index 1e8ba6294..2957da23d 100644 --- a/manifests/placement.pp +++ b/manifests/placement.pp @@ -50,12 +50,12 @@ # (optional) Points to the OpenStack Identity server IP and port. # This is the Identity (keystone) admin API server IP and port value, # and not the Identity service API IP and port. -# Defaults to 'http://127.0.0.1:5000/v3' +# Defaults to 'http://127.0.0.1:5000' # class nova::placement ( $password, $auth_type = 'password', - $auth_url = 'http://127.0.0.1:5000/v3', + $auth_url = 'http://127.0.0.1:5000', $region_name = 'RegionOne', $valid_interfaces = $facts['os_service_default'], $project_domain_name = 'Default', diff --git a/spec/classes/nova_network_neutron_spec.rb b/spec/classes/nova_network_neutron_spec.rb index 77b942c59..8240027ca 100644 --- a/spec/classes/nova_network_neutron_spec.rb +++ b/spec/classes/nova_network_neutron_spec.rb @@ -11,7 +11,7 @@ describe 'nova::network::neutron' do :region_name => 'RegionOne', :username => 'neutron', :user_domain_name => 'Default', - :auth_url => 'http://127.0.0.1:5000/v3', + :auth_url => 'http://127.0.0.1:5000', :valid_interfaces => '', :endpoint_override => '', :http_retries => '', diff --git a/spec/classes/nova_placement_spec.rb b/spec/classes/nova_placement_spec.rb index 28b9f106c..600d37c39 100644 --- a/spec/classes/nova_placement_spec.rb +++ b/spec/classes/nova_placement_spec.rb @@ -9,7 +9,7 @@ describe 'nova::placement' do :region_name => 'RegionOne', :username => 'placement', :user_domain_name => 'Default', - :auth_url => 'http://127.0.0.1:5000/v3', + :auth_url => 'http://127.0.0.1:5000', } end @@ -44,7 +44,7 @@ describe 'nova::placement' do :valid_interfaces => 'internal,public', :username => 'placement2', :user_domain_name => 'default', - :auth_url => 'https://127.0.0.1:5000/v3', + :auth_url => 'http://127.0.0.1:5000/v3', ) end