From 9e96fb9f7e38260e644ea006791748087377aa63 Mon Sep 17 00:00:00 2001 From: Yuriy Zveryanskyy Date: Fri, 25 Mar 2016 11:25:19 +0200 Subject: [PATCH] Fix boot policy for Intel Node Manager driver Correction time parameter does not apply to boot time policy and should be set to zero. Change-Id: I342c576508a2c65d3022d0f6e27ad5454178cf6b --- ironic_staging_drivers/intel_nm/nm_commands.py | 2 ++ ironic_staging_drivers/intel_nm/nm_vendor.py | 3 +++ ironic_staging_drivers/intel_nm/policy_schema.json | 2 +- .../tests/unit/intel_nm/test_commands.py | 5 ++--- .../tests/unit/intel_nm/test_vendor.py | 10 ++++++++++ .../intel-nm-boot-policy-fix-1d75c1b684ba5cda.yaml | 4 ++++ 6 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 releasenotes/notes/intel-nm-boot-policy-fix-1d75c1b684ba5cda.yaml diff --git a/ironic_staging_drivers/intel_nm/nm_commands.py b/ironic_staging_drivers/intel_nm/nm_commands.py index a1e4bd9..08cd0dd 100644 --- a/ironic_staging_drivers/intel_nm/nm_commands.py +++ b/ironic_staging_drivers/intel_nm/nm_commands.py @@ -262,6 +262,8 @@ def set_policy(policy): mode = 0x00 if policy['target_limit']['boot_mode'] == 'power' else 0x01 cores_disabled = policy['target_limit']['cores_disabled'] << 1 limit = mode | cores_disabled + # correction time does not apply to boot time policy + policy['correction_time'] = 0 policy_values = struct.pack('