Set longer shutdown time and fix power state error log
1.Extended the timeout to 14mins to accommodate the longer shutdown time.
2.Fixed the power state error log so that it logs the requested state
instead of the current power_state.
Test Plan:
PASS: Verify logged version is 2.2
PASS: Verify success path with no FIT delay ; HP and ZT servers
PASS: Verify timing of the loop with timeout of 14 minutes
PASS: Verify shutdown timeout handling when shutdown exceeds 14
minutes.
PASS: Verify install completes successfully when Power Off takes
close to but less than 14 minutes
PASS: Verify power state failure log reports proper state
Closes-Bug: 2038484
Signed-off-by: Li Zhu <email address hidden>
Change-Id: Ic99a06dca9962fcae43b20e00d8ebcb127a80560
Reviewed: https:/ /review. opendev. org/c/starlingx /metal/ +/896657 /opendev. org/starlingx/ metal/commit/ bfbaba57310a03e 60f30d44b6dc127 de5c77f960
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit bfbaba57310a03e 60f30d44b6dc127 de5c77f960
Author: Li Zhu <email address hidden>
Date: Mon Sep 25 14:04:21 2023 -0400
Set longer shutdown time and fix power state error log
1.Extended the timeout to 14mins to accommodate the longer shutdown time.
2.Fixed the power state error log so that it logs the requested state
instead of the current power_state.
Test Plan:
PASS: Verify logged version is 2.2
PASS: Verify success path with no FIT delay ; HP and ZT servers
PASS: Verify timing of the loop with timeout of 14 minutes
PASS: Verify shutdown timeout handling when shutdown exceeds 14
minutes.
PASS: Verify install completes successfully when Power Off takes
close to but less than 14 minutes
PASS: Verify power state failure log reports proper state
Closes-Bug: 2038484
Signed-off-by: Li Zhu <email address hidden> cae43b20e00d8eb cb127a80560
Change-Id: Ic99a06dca9962f