Replace port 35357 with 5000 for "auth_url"

Change-Id: Ieb2e00396d42fc1389af6f562d26ec85067203c9
This commit is contained in:
zhangzs 2018-06-19 19:23:52 +08:00
parent 103059acb9
commit efe3daa2b6
10 changed files with 23 additions and 22 deletions

@ -54,7 +54,7 @@
# (optional) Authorization URL for connection to ironic in admin context. # (optional) Authorization URL for connection to ironic in admin context.
# If version independent identity plugin is used available versions will be # If version independent identity plugin is used available versions will be
# determined using auth_url # determined using auth_url
# Defaults to 'http://127.0.0.1:35357' # Defaults to 'http://127.0.0.1:5000'
# #
# [*username*] # [*username*]
# (optional) Username for connection to ironic in admin context # (optional) Username for connection to ironic in admin context
@ -110,7 +110,7 @@ class neutron::agents::ml2::networking_baremetal (
$keyfile = $::os_service_default, $keyfile = $::os_service_default,
$insecure = $::os_service_default, $insecure = $::os_service_default,
$auth_type = 'password', $auth_type = 'password',
$auth_url = 'http://127.0.0.1:35357', $auth_url = 'http://127.0.0.1:5000',
$username = 'ironic', $username = 'ironic',
$project_domain_id = 'default', $project_domain_id = 'default',
$project_domain_name = 'Default', $project_domain_name = 'Default',

@ -14,7 +14,7 @@
# #
# [*auth_url*] # [*auth_url*]
# (Optional) The URL to use for authentication. # (Optional) The URL to use for authentication.
# Defaults to 'http://localhost:35357'. # Defaults to 'http://localhost:5000'.
# #
# [*project_name*] # [*project_name*]
# (Optional) Service project name # (Optional) Service project name
@ -187,7 +187,7 @@
class neutron::keystone::authtoken( class neutron::keystone::authtoken(
$username = 'neutron', $username = 'neutron',
$password = $::os_service_default, $password = $::os_service_default,
$auth_url = 'http://localhost:35357', $auth_url = 'http://localhost:5000',
$project_name = 'services', $project_name = 'services',
$user_domain_name = 'Default', $user_domain_name = 'Default',
$project_domain_name = 'Default', $project_domain_name = 'Default',

@ -30,7 +30,7 @@
# #
# [*keystone_auth_url*] # [*keystone_auth_url*]
# The url against which to authenticate # The url against which to authenticate
# Defaults to http://127.0.0.1:35357/v2.0/ # Defaults to http://127.0.0.1:5000/v2.0/
# #
# [*keystone_tenant*] # [*keystone_tenant*]
# The tenant the supplied user has admin privs in # The tenant the supplied user has admin privs in
@ -103,7 +103,7 @@ class neutron::plugins::cisco(
# Keystone connection # Keystone connection
$keystone_username = 'neutron', $keystone_username = 'neutron',
$keystone_tenant = 'services', $keystone_tenant = 'services',
$keystone_auth_url = 'http://127.0.0.1:35357/v2.0/', $keystone_auth_url = 'http://127.0.0.1:5000/v2.0/',
$vswitch_plugin = 'neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2', $vswitch_plugin = 'neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2',
$nexus_plugin = $::os_service_default, $nexus_plugin = $::os_service_default,

@ -74,7 +74,7 @@
# (optional) Authorization URL for connection to nova in admin context. # (optional) Authorization URL for connection to nova in admin context.
# If version independent identity plugin is used available versions will be # If version independent identity plugin is used available versions will be
# determined using auth_url # determined using auth_url
# Defaults to 'http://127.0.0.1:35357' # Defaults to 'http://127.0.0.1:5000'
# #
# [*region_name*] # [*region_name*]
# (optional) Name of nova region to use. Useful if keystone manages more than # (optional) Name of nova region to use. Useful if keystone manages more than
@ -108,7 +108,7 @@ class neutron::server::notifications (
$project_name = 'services', $project_name = 'services',
$user_domain_id = 'default', $user_domain_id = 'default',
$user_domain_name = 'Default', $user_domain_name = 'Default',
$auth_url = 'http://127.0.0.1:35357', $auth_url = 'http://127.0.0.1:5000',
$region_name = $::os_service_default, $region_name = $::os_service_default,
$endpoint_type = $::os_service_default, $endpoint_type = $::os_service_default,
# DEPRECATED PARAMETERS # DEPRECATED PARAMETERS

@ -52,7 +52,7 @@
# (optional) Authorization URL for connection to nova in admin context. # (optional) Authorization URL for connection to nova in admin context.
# If version independent identity plugin is used available versions will be # If version independent identity plugin is used available versions will be
# determined using auth_url # determined using auth_url
# Defaults to 'http://127.0.0.1:35357' # Defaults to 'http://127.0.0.1:5000'
# #
# [*region_name*] # [*region_name*]
# (optional) Name of nova region to use. Useful if keystone manages more than # (optional) Name of nova region to use. Useful if keystone manages more than
@ -74,7 +74,7 @@ class neutron::server::placement (
$project_name = 'services', $project_name = 'services',
$user_domain_id = 'default', $user_domain_id = 'default',
$user_domain_name = 'Default', $user_domain_name = 'Default',
$auth_url = 'http://127.0.0.1:35357', $auth_url = 'http://127.0.0.1:5000',
$region_name = $::os_service_default, $region_name = $::os_service_default,
$endpoint_type = $::os_service_default, $endpoint_type = $::os_service_default,
) { ) {

@ -7,7 +7,7 @@ describe 'neutron::agents::ml2::networking_baremetal' do
:manage_service => true, :manage_service => true,
:package_ensure => 'present', :package_ensure => 'present',
:auth_type => 'password', :auth_type => 'password',
:auth_url => 'http://127.0.0.1:35357', :auth_url => 'http://127.0.0.1:5000',
:username => 'ironic', :username => 'ironic',
:project_domain_id => 'default', :project_domain_id => 'default',
:project_domain_name => 'Default', :project_domain_name => 'Default',

@ -13,7 +13,7 @@ describe 'neutron::keystone::authtoken' do
it 'configure keystone_authtoken' do it 'configure keystone_authtoken' do
is_expected.to contain_neutron_config('keystone_authtoken/username').with_value('neutron') is_expected.to contain_neutron_config('keystone_authtoken/username').with_value('neutron')
is_expected.to contain_neutron_config('keystone_authtoken/password').with_value('neutron_password') is_expected.to contain_neutron_config('keystone_authtoken/password').with_value('neutron_password')
is_expected.to contain_neutron_config('keystone_authtoken/auth_url').with_value('http://localhost:35357') is_expected.to contain_neutron_config('keystone_authtoken/auth_url').with_value('http://localhost:5000')
is_expected.to contain_neutron_config('keystone_authtoken/project_name').with_value('services') is_expected.to contain_neutron_config('keystone_authtoken/project_name').with_value('services')
is_expected.to contain_neutron_config('keystone_authtoken/user_domain_name').with_value('Default') is_expected.to contain_neutron_config('keystone_authtoken/user_domain_name').with_value('Default')
is_expected.to contain_neutron_config('keystone_authtoken/project_domain_name').with_value('Default') is_expected.to contain_neutron_config('keystone_authtoken/project_domain_name').with_value('Default')
@ -53,7 +53,7 @@ describe 'neutron::keystone::authtoken' do
:www_authenticate_uri => 'https://10.0.0.1:9999/', :www_authenticate_uri => 'https://10.0.0.1:9999/',
:username => 'myuser', :username => 'myuser',
:password => 'mypasswd', :password => 'mypasswd',
:auth_url => 'https://127.0.0.1:35357', :auth_url => 'https://127.0.0.1:5000',
:project_name => 'service_project', :project_name => 'service_project',
:user_domain_name => 'domainX', :user_domain_name => 'domainX',
:project_domain_name => 'domainX', :project_domain_name => 'domainX',

@ -13,7 +13,7 @@ describe 'neutron::plugins::cisco' do
let :params do let :params do
{ :keystone_username => 'neutron', { :keystone_username => 'neutron',
:keystone_password => 'neutron_pass', :keystone_password => 'neutron_pass',
:keystone_auth_url => 'http://127.0.0.1:35357/v2.0/', :keystone_auth_url => 'http://127.0.0.1:5000/v2.0/',
:keystone_tenant => 'tenant', :keystone_tenant => 'tenant',
:database_name => 'neutron', :database_name => 'neutron',

@ -30,7 +30,7 @@ describe 'neutron::server::notifications' do
:project_name => 'services', :project_name => 'services',
:user_domain_id => 'default', :user_domain_id => 'default',
:user_domain_name => 'Default', :user_domain_name => 'Default',
:auth_url => 'http://127.0.0.1:35357', :auth_url => 'http://127.0.0.1:5000',
} }
end end
@ -47,7 +47,7 @@ describe 'neutron::server::notifications' do
is_expected.to contain_neutron_config('DEFAULT/notify_nova_on_port_data_changes').with_value(true) is_expected.to contain_neutron_config('DEFAULT/notify_nova_on_port_data_changes').with_value(true)
is_expected.to contain_neutron_config('DEFAULT/send_events_interval').with_value('<SERVICE DEFAULT>') is_expected.to contain_neutron_config('DEFAULT/send_events_interval').with_value('<SERVICE DEFAULT>')
is_expected.to contain_neutron_config('nova/auth_type').with_value('password') is_expected.to contain_neutron_config('nova/auth_type').with_value('password')
is_expected.to contain_neutron_config('nova/auth_url').with_value('http://127.0.0.1:35357') is_expected.to contain_neutron_config('nova/auth_url').with_value('http://127.0.0.1:5000')
is_expected.to contain_neutron_config('nova/username').with_value('nova') is_expected.to contain_neutron_config('nova/username').with_value('nova')
is_expected.to contain_neutron_config('nova/password').with_value('secrete') is_expected.to contain_neutron_config('nova/password').with_value('secrete')
is_expected.to contain_neutron_config('nova/password').with_secret( true ) is_expected.to contain_neutron_config('nova/password').with_secret( true )
@ -67,7 +67,8 @@ describe 'neutron::server::notifications' do
:notify_nova_on_port_status_changes => false, :notify_nova_on_port_status_changes => false,
:notify_nova_on_port_data_changes => false, :notify_nova_on_port_data_changes => false,
:send_events_interval => '10', :send_events_interval => '10',
:auth_url => 'http://keystone:35357/v2.0', :auth_url =>
'http://keystone:5000/v2.0',
:auth_type => 'v2password', :auth_type => 'v2password',
:username => 'joe', :username => 'joe',
:region_name => 'MyRegion', :region_name => 'MyRegion',
@ -83,7 +84,7 @@ describe 'neutron::server::notifications' do
is_expected.to contain_neutron_config('DEFAULT/notify_nova_on_port_status_changes').with_value(false) is_expected.to contain_neutron_config('DEFAULT/notify_nova_on_port_status_changes').with_value(false)
is_expected.to contain_neutron_config('DEFAULT/notify_nova_on_port_data_changes').with_value(false) is_expected.to contain_neutron_config('DEFAULT/notify_nova_on_port_data_changes').with_value(false)
is_expected.to contain_neutron_config('DEFAULT/send_events_interval').with_value('10') is_expected.to contain_neutron_config('DEFAULT/send_events_interval').with_value('10')
is_expected.to contain_neutron_config('nova/auth_url').with_value('http://keystone:35357/v2.0') is_expected.to contain_neutron_config('nova/auth_url').with_value('http://keystone:5000/v2.0')
is_expected.to contain_neutron_config('nova/auth_type').with_value('v2password') is_expected.to contain_neutron_config('nova/auth_type').with_value('v2password')
is_expected.to contain_neutron_config('nova/username').with_value('joe') is_expected.to contain_neutron_config('nova/username').with_value('joe')
is_expected.to contain_neutron_config('nova/password').with_value('secrete') is_expected.to contain_neutron_config('nova/password').with_value('secrete')

@ -27,7 +27,7 @@ describe 'neutron::server::placement' do
:project_name => 'services', :project_name => 'services',
:user_domain_id => 'default', :user_domain_id => 'default',
:user_domain_name => 'Default', :user_domain_name => 'Default',
:auth_url => 'http://127.0.0.1:35357', :auth_url => 'http://127.0.0.1:5000',
} }
end end
@ -41,7 +41,7 @@ describe 'neutron::server::placement' do
it 'configure neutron.conf' do it 'configure neutron.conf' do
is_expected.to contain_neutron_config('placement/auth_type').with_value('password') is_expected.to contain_neutron_config('placement/auth_type').with_value('password')
is_expected.to contain_neutron_config('placement/auth_url').with_value('http://127.0.0.1:35357') is_expected.to contain_neutron_config('placement/auth_url').with_value('http://127.0.0.1:5000')
is_expected.to contain_neutron_config('placement/username').with_value('nova') is_expected.to contain_neutron_config('placement/username').with_value('nova')
is_expected.to contain_neutron_config('placement/password').with_value('secrete') is_expected.to contain_neutron_config('placement/password').with_value('secrete')
is_expected.to contain_neutron_config('placement/password').with_secret( true ) is_expected.to contain_neutron_config('placement/password').with_secret( true )
@ -56,7 +56,7 @@ describe 'neutron::server::placement' do
context 'when overriding parameters' do context 'when overriding parameters' do
before :each do before :each do
params.merge!( params.merge!(
:auth_url => 'http://keystone:35357/v2.0', :auth_url => 'http://keystone:5000/v2.0',
:auth_type => 'v2password', :auth_type => 'v2password',
:username => 'joe', :username => 'joe',
:region_name => 'MyRegion', :region_name => 'MyRegion',
@ -68,7 +68,7 @@ describe 'neutron::server::placement' do
) )
end end
it 'should configure neutron server with overrided parameters' do it 'should configure neutron server with overrided parameters' do
is_expected.to contain_neutron_config('placement/auth_url').with_value('http://keystone:35357/v2.0') is_expected.to contain_neutron_config('placement/auth_url').with_value('http://keystone:5000/v2.0')
is_expected.to contain_neutron_config('placement/auth_type').with_value('v2password') is_expected.to contain_neutron_config('placement/auth_type').with_value('v2password')
is_expected.to contain_neutron_config('placement/username').with_value('joe') is_expected.to contain_neutron_config('placement/username').with_value('joe')
is_expected.to contain_neutron_config('placement/password').with_value('secrete') is_expected.to contain_neutron_config('placement/password').with_value('secrete')