Browse Source

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
changes/69/513269/2
ZhongShengping 5 years ago committed by zhongshengping
parent
commit
893a54e984
  1. 2
      manifests/auth.pp
  2. 2
      spec/acceptance/aodh_wsgi_apache_spec.rb
  3. 4
      spec/classes/aodh_auth_spec.rb

2
manifests/auth.pp

@ -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',

2
spec/acceptance/aodh_wsgi_apache_spec.rb

@ -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': }

4
spec/classes/aodh_auth_spec.rb

@ -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')

Loading…
Cancel
Save