Fix identity_admin
Remove the use of identity admin endpoint. The following patch removed the use of identity admin endpoint from devstack. Try to remove /identity_admin https://review.openstack.org/#/c/458226/ So this patch removes the use of identity admin endpoint from masakari in accordance with the above patch. Change-Id: I809c6323b68a97095dc904c65627535083ad08cc
This commit is contained in:
parent
00969f0bf2
commit
a61af823be
@ -113,7 +113,7 @@ function configure_masakari {
|
||||
|
||||
# Set os_privileged_user credentials (used for connecting nova service)
|
||||
iniset $MASAKARI_CONF DEFAULT os_privileged_user_name nova
|
||||
iniset $MASAKARI_CONF DEFAULT os_privileged_user_auth_url "${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_AUTH_HOST}/identity_admin"
|
||||
iniset $MASAKARI_CONF DEFAULT os_privileged_user_auth_url "${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_AUTH_HOST}/identity"
|
||||
iniset $MASAKARI_CONF DEFAULT os_privileged_user_password "$SERVICE_PASSWORD"
|
||||
iniset $MASAKARI_CONF DEFAULT os_privileged_user_tenant "$SERVICE_PROJECT_NAME"
|
||||
iniset $MASAKARI_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT"
|
||||
|
@ -40,7 +40,7 @@ class NovaClientTestCase(test.TestCase):
|
||||
self.override_config('os_privileged_user_name', 'adminuser')
|
||||
self.override_config('os_privileged_user_password', 'strongpassword')
|
||||
self.override_config('os_privileged_user_auth_url',
|
||||
'http://keystonehost/identity_admin')
|
||||
'http://keystonehost/identity')
|
||||
|
||||
@mock.patch('novaclient.api_versions.APIVersion')
|
||||
@mock.patch('novaclient.client.Client')
|
||||
@ -50,7 +50,7 @@ class NovaClientTestCase(test.TestCase):
|
||||
p_client, p_api_version):
|
||||
nova.novaclient(self.ctx)
|
||||
p_plugin_loader.return_value.load_from_options.assert_called_once_with(
|
||||
auth_url='http://keystonehost/identity_admin',
|
||||
auth_url='http://keystonehost/identity',
|
||||
password='strongpassword', project_name=None, username='adminuser'
|
||||
)
|
||||
p_client.assert_called_once_with(
|
||||
@ -67,7 +67,7 @@ class NovaClientTestCase(test.TestCase):
|
||||
p_client, p_api_version):
|
||||
nova.novaclient(self.ctx)
|
||||
p_plugin_loader.return_value.load_from_options.assert_called_once_with(
|
||||
auth_url='http://keystonehost/identity_admin',
|
||||
auth_url='http://keystonehost/identity',
|
||||
password='strongpassword', project_name=None, username='adminuser'
|
||||
)
|
||||
p_client.assert_called_once_with(
|
||||
@ -86,7 +86,7 @@ class NovaClientTestCase(test.TestCase):
|
||||
p_api_version):
|
||||
nova.novaclient(self.ctx)
|
||||
p_plugin_loader.return_value.load_from_options.assert_called_once_with(
|
||||
auth_url='http://keystonehost/identity_admin',
|
||||
auth_url='http://keystonehost/identity',
|
||||
password='strongpassword', project_name=None, username='adminuser'
|
||||
)
|
||||
p_client.assert_called_once_with(
|
||||
@ -104,7 +104,7 @@ class NovaClientTestCase(test.TestCase):
|
||||
self.override_config('os_region_name', 'farfaraway')
|
||||
nova.novaclient(self.ctx)
|
||||
p_plugin_loader.return_value.load_from_options.assert_called_once_with(
|
||||
auth_url='http://keystonehost/identity_admin',
|
||||
auth_url='http://keystonehost/identity',
|
||||
password='strongpassword', project_name=None, username='adminuser'
|
||||
)
|
||||
p_client.assert_called_once_with(
|
||||
|
Loading…
Reference in New Issue
Block a user