When Hypertreading is disabled, system host-cpu-modify fails since
ensure definition is not set. At reboot phase, on Grub Audit, due
the lack of ensure definition, it will get a Mismatched CPUs error.
Adding ensure definition made the Grub Audit phase pass with no
errors and the host-cpu-modify work properly.
TEST PLAN:
PASS: Change the number of Platform Cores to 4.
PASS: Change the number of Platform Cores to 1.
(get succssesfully two core minimum message).
PASS: Check puppet logs: No error on Grub Audit.
PASS: Check puppet logs: No error about ensure.
PASS: Extra reboot: Not happening.
PASS: Disable nohz successfully.
Reviewed: https:/ /review. opendev. org/c/starlingx /stx-puppet/ +/872556 /opendev. org/starlingx/ stx-puppet/ commit/ 09e3887518d2a4a 01e5df680d6dbad 42f7d67142
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 09e3887518d2a4a 01e5df680d6dbad 42f7d67142
Author: Romão Martines <email address hidden>
Date: Tue Mar 7 13:32:46 2023 -0500
Resolving "unknown variable ensure".
When Hypertreading is disabled, system host-cpu-modify fails since
ensure definition is not set. At reboot phase, on Grub Audit, due
the lack of ensure definition, it will get a Mismatched CPUs error.
Adding ensure definition made the Grub Audit phase pass with no
errors and the host-cpu-modify work properly.
TEST PLAN:
PASS: Change the number of Platform Cores to 4.
PASS: Change the number of Platform Cores to 1.
(get succssesfully two core minimum message).
PASS: Check puppet logs: No error on Grub Audit.
PASS: Check puppet logs: No error about ensure.
PASS: Extra reboot: Not happening.
PASS: Disable nohz successfully.
Bug: 2004593
Signed-off-by: Romão Martines <email address hidden> ec4f382bcfd44d3 08184aa2e5a
Change-Id: I62d55d796621e3