Switch to use keystone v3
Keystone v2 api's are removed in [1], so it's required
to use keystone v3 otherwise all requests fallbacks to
keystone v2.0 and fails.
[1] https://review.openstack.org/#/c/499783/
Change-Id: I0464d6b37c3e269d3bdc1eb5034ec751f977b6a8
Closes-Bug: #1723838
(cherry picked from commit 3f78b85cbf
)
This commit is contained in:
parent
48dc6a315b
commit
ef4eb45ed5
|
@ -3,7 +3,7 @@
|
|||
# == Parameters
|
||||
# [*auth_url*]
|
||||
# (Optional) The keystone public endpoint
|
||||
# Defaults to 'http://localhost:5000/v2.0'
|
||||
# Defaults to 'http://localhost:5000/v3'
|
||||
#
|
||||
# [*auth_region*]
|
||||
# (Optional) The keystone region of this node
|
||||
|
@ -48,7 +48,7 @@
|
|||
#
|
||||
class vitrage::auth (
|
||||
$auth_password,
|
||||
$auth_url = 'http://localhost:5000/v2.0',
|
||||
$auth_url = 'http://localhost:5000/v3',
|
||||
$auth_region = 'RegionOne',
|
||||
$auth_user = 'vitrage',
|
||||
$auth_tenant_name = 'services',
|
||||
|
|
|
@ -52,7 +52,7 @@ describe 'basic vitrage' do
|
|||
ssl => false,
|
||||
}
|
||||
class { '::vitrage::auth':
|
||||
auth_url => 'http://127.0.0.1:5000/v2.0',
|
||||
auth_url => 'http://127.0.0.1:5000/v3',
|
||||
auth_password => 'a_big_secret',
|
||||
}
|
||||
class { '::vitrage::client': }
|
||||
|
|
|
@ -3,7 +3,7 @@ require 'spec_helper'
|
|||
describe 'vitrage::auth' do
|
||||
|
||||
let :params do
|
||||
{ :auth_url => 'http://localhost:5000/v2.0',
|
||||
{ :auth_url => 'http://localhost:5000/v3',
|
||||
:auth_region => 'RegionOne',
|
||||
:auth_user => 'vitrage',
|
||||
:auth_password => 'password',
|
||||
|
@ -14,7 +14,7 @@ describe 'vitrage::auth' do
|
|||
shared_examples_for 'vitrage-auth' do
|
||||
|
||||
it 'configures authentication' do
|
||||
is_expected.to contain_vitrage_config('service_credentials/auth_url').with_value('http://localhost:5000/v2.0')
|
||||
is_expected.to contain_vitrage_config('service_credentials/auth_url').with_value('http://localhost:5000/v3')
|
||||
is_expected.to contain_vitrage_config('service_credentials/region_name').with_value('RegionOne')
|
||||
is_expected.to contain_vitrage_config('service_credentials/project_domain_id').with_value('default')
|
||||
is_expected.to contain_vitrage_config('service_credentials/user_domain_id').with_value('default')
|
||||
|
|
Loading…
Reference in New Issue