From 57df186c132c522231aab1e577d879f7fa51c992 Mon Sep 17 00:00:00 2001 From: Clenimar Filemon Date: Thu, 30 Jun 2016 17:30:26 -0300 Subject: [PATCH] Make Nova/Ironic communication use Identity v3 As long as nova already supports an Identity v3 auth flow when talking to ironic (Id837d26bb21c158de0504627e488c0692aef1e24), make it use v3 by default. This way we don't fail in a keystone v3-only situation, for example. Change-Id: I028dfb52108d0630f47a53f8b420b70d4979eb55 --- lib/nova_plugins/hypervisor-ironic | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/nova_plugins/hypervisor-ironic b/lib/nova_plugins/hypervisor-ironic index c40427c089..7ffd14d046 100644 --- a/lib/nova_plugins/hypervisor-ironic +++ b/lib/nova_plugins/hypervisor-ironic @@ -45,11 +45,13 @@ function configure_nova_hypervisor { iniset $NOVA_CONF DEFAULT ram_allocation_ratio 1.0 iniset $NOVA_CONF DEFAULT reserved_host_memory_mb 0 # ironic section - iniset $NOVA_CONF ironic admin_username admin - iniset $NOVA_CONF ironic admin_password $ADMIN_PASSWORD - iniset $NOVA_CONF ironic admin_url $KEYSTONE_AUTH_URI/v2.0 - iniset $NOVA_CONF ironic admin_tenant_name demo - iniset $NOVA_CONF ironic api_endpoint $IRONIC_SERVICE_PROTOCOL://$IRONIC_HOSTPORT/v1 + iniset $NOVA_CONF ironic auth_type password + iniset $NOVA_CONF ironic username admin + iniset $NOVA_CONF ironic password $ADMIN_PASSWORD + iniset $NOVA_CONF ironic auth_url $KEYSTONE_AUTH_URI/v3 + iniset $NOVA_CONF ironic project_domain_id default + iniset $NOVA_CONF ironic user_domain_id default + iniset $NOVA_CONF ironic project_name demo } # install_nova_hypervisor() - Install external components