From c527ded91bef5d4c56cbdb2402a4d68015364b37 Mon Sep 17 00:00:00 2001 From: Clenimar Filemon Date: Thu, 31 Mar 2016 15:43:51 -0300 Subject: [PATCH] Update auth params in Nova Hypervisor-Ironic As Nova hypervisor uses deprecated parameters when trying to authenticate to Ironic, as well as a hardcoded /v2.0 endpoint, a fatal error occurs when creating a keystone v3-only devstack. This patch updates auth parameters (ironic section in nova.conf) that Nova uses when trying to connect to Ironic to v3 parameters. Change-Id: I2d7ebf750115613aa917448f20daaece614633ef --- lib/nova_plugins/hypervisor-ironic | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/nova_plugins/hypervisor-ironic b/lib/nova_plugins/hypervisor-ironic index 43e7797371..7224fe3f42 100644 --- a/lib/nova_plugins/hypervisor-ironic +++ b/lib/nova_plugins/hypervisor-ironic @@ -45,10 +45,12 @@ 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 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 iniset $NOVA_CONF ironic api_endpoint $IRONIC_SERVICE_PROTOCOL://$IRONIC_HOSTPORT/v1 }