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: Ie2794d5fb12785e7c620c4ec8e3ccc2fb64d9e3b
Closes-Bug: #1723838
This commit is contained in:
ZhongShengping 2017-10-19 14:03:10 +08:00 committed by zhongshengping
parent 8e87d862bf
commit 893a54e984
3 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@
#
class aodh::auth (
$auth_password,
$auth_url = 'http://localhost:5000/v2.0',
$auth_url = 'http://localhost:5000/v3',
$auth_region = 'RegionOne',
$auth_user = 'aodh',
$auth_tenant_name = 'services',

View File

@ -51,7 +51,7 @@ describe 'basic aodh' do
ssl => false,
}
class { '::aodh::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 { '::aodh::client': }

View File

@ -3,7 +3,7 @@ require 'spec_helper'
describe 'aodh::auth' do
let :params do
{ :auth_url => 'http://localhost:5000/v2.0',
{ :auth_url => 'http://localhost:5000/v3',
:auth_region => 'RegionOne',
:auth_user => 'aodh',
:auth_password => 'password',
@ -14,7 +14,7 @@ describe 'aodh::auth' do
shared_examples_for 'aodh-auth' do
it 'configures authentication' do
is_expected.to contain_aodh_config('service_credentials/auth_url').with_value('http://localhost:5000/v2.0')
is_expected.to contain_aodh_config('service_credentials/auth_url').with_value('http://localhost:5000/v3')
is_expected.to contain_aodh_config('service_credentials/region_name').with_value('RegionOne')
is_expected.to contain_aodh_config('service_credentials/project_domain_id').with_value('default')
is_expected.to contain_aodh_config('service_credentials/user_domain_id').with_value('default')