From 295b0853268543143b0764ab2c0fcf5dcf9d3b69 Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Wed, 1 Apr 2015 09:04:13 +0000 Subject: Configure Nova to use the Ironic service --- openstack/etc/nova/nova.conf | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/openstack/etc/nova/nova.conf b/openstack/etc/nova/nova.conf index ca009273..3b520151 100644 --- a/openstack/etc/nova/nova.conf +++ b/openstack/etc/nova/nova.conf @@ -619,7 +619,7 @@ auth_version = v2.0 ########### # COMPUTE # ########### -compute_driver=libvirt.LibvirtDriver +compute_driver=nova.virt.ironic.IronicDriver instance_name_template=instance-%08x api_paste_config=/etc/nova/api-paste.ini @@ -627,6 +627,24 @@ api_paste_config=/etc/nova/api-paste.ini # # this flag is required for both nova-api and nova-compute allow_resize_to_same_host=True +scheduler_host_manager=nova.scheduler.ironic_host_manager.IronicHostManager + +# Virtual ram to physical ram allocation ratio which affects +# all ram filters. This configuration specifies a global ratio +# for RamFilter. For AggregateRamFilter, it will fall back to +# this configuration value if no per-aggregate setting found. +# (floating point value) +ram_allocation_ratio=1.0 + +# Amount of disk in MB to reserve for the host (integer value) +# reserved_host_disk_mb=0 +reserved_host_memory_mb=0 + +# Full class name for the Manager for compute (string value) +# compute_manager=nova.compute.manager.ComputeManager +compute_manager=ironic.nova.compute.manager.ClusteredComputeManager + + ############ ## LIBVIRT # ############ @@ -642,3 +660,23 @@ virt_type=qemu [serial_console] serialproxy_host=127.0.0.1 enabled=true + +########## +# IRONIC # +########## +[ironic] + +# Ironic keystone admin name +admin_username=##IRONIC_SERVICE_USER## + +# Ironic keystone admin password. +admin_password=##IRONIC_SERVICE_PASSWORD## + +# keystone API endpoint +admin_url=##IDENTITY_URI## + +# Ironic keystone tenant name. +admin_tenant_name=service + +# URL for Ironic API endpoint. +api_endpoint=##IRONIC_PUBLIC_URL## -- cgit v1.2.1