From 7137a717002ffa140ec9468bb8659e59eaa435e8 Mon Sep 17 00:00:00 2001
From: jinyuan <liujinyuan@inspur.com>
Date: Tue, 20 Apr 2021 14:26:02 +0800
Subject: [PATCH] Host resource scale adjustment about ironic

Ironic does not need to reserve system resources, otherwise it will cause flavor to be unable to schedule.

Change-Id: I454d0468ae3424cc92d470c15a40ad96c01cf311
---
 nova/Chart.yaml              | 2 +-
 nova/values.yaml             | 3 +++
 releasenotes/notes/nova.yaml | 1 +
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/nova/Chart.yaml b/nova/Chart.yaml
index 487aec8bf3..efb46d4128 100644
--- a/nova/Chart.yaml
+++ b/nova/Chart.yaml
@@ -14,7 +14,7 @@ apiVersion: v1
 appVersion: v1.0.0
 description: OpenStack-Helm Nova
 name: nova
-version: 0.1.18
+version: 0.1.19
 home: https://docs.openstack.org/nova/latest/
 icon: https://www.openstack.org/themes/openstack/images/project-mascots/Nova/OpenStack_Project_Nova_vertical.png
 sources:
diff --git a/nova/values.yaml b/nova/values.yaml
index 63d6394f60..1225bfcd1b 100644
--- a/nova/values.yaml
+++ b/nova/values.yaml
@@ -1648,6 +1648,9 @@ conf:
     DEFAULT:
       scheduler_host_manager: ironic_host_manager
       compute_driver: ironic.IronicDriver
+      ram_allocation_ratio: 1.0
+      cpu_allocation_ratio: 1.0
+      reserved_host_memory_mb: 0
   libvirt:
     # Get the IP address to be used as the target for live migration traffic using interface name.
     # If this option is set to None, the hostname of the migration target compute node will be used.
diff --git a/releasenotes/notes/nova.yaml b/releasenotes/notes/nova.yaml
index a0197a9bff..2db222edff 100644
--- a/releasenotes/notes/nova.yaml
+++ b/releasenotes/notes/nova.yaml
@@ -19,3 +19,4 @@ nova:
   - 0.1.16 Use first IP address for migration
   - 0.1.17 Add multipathd support for ISCSI backed volume VMs
   - 0.1.18 Fix the nova-compute-ironic label issue
+  - 0.1.19 Host resource scale adjustment about ironic