diff --git a/lib/nova_plugins/hypervisor-ironic b/lib/nova_plugins/hypervisor-ironic index 7d47ef070c..d59473ca1c 100644 --- a/lib/nova_plugins/hypervisor-ironic +++ b/lib/nova_plugins/hypervisor-ironic @@ -42,7 +42,11 @@ function configure_nova_hypervisor { iniset $NOVA_CONF DEFAULT compute_driver ironic.IronicDriver iniset $NOVA_CONF DEFAULT firewall_driver $LIBVIRT_FIREWALL_DRIVER iniset $NOVA_CONF DEFAULT scheduler_host_manager ironic_host_manager - iniset $NOVA_CONF filter_scheduler use_baremetal_filters True + + if [[ "$IRONIC_USE_RESOURCE_CLASSES" == "False" ]]; then + iniset $NOVA_CONF filter_scheduler use_baremetal_filters True + fi + iniset $NOVA_CONF DEFAULT ram_allocation_ratio 1.0 iniset $NOVA_CONF DEFAULT reserved_host_memory_mb 0 # ironic section