When analyzing the ceph-process-states.log file, we observed a
recurring error scenario. In the /etc/init.d/ceph-init-wrapper
osd.0 script, the 'timeout' was consistently failing with error
code 125 on the execute_ceph_cmd function call. This failure was
due to the absence of a mandatory value parameter, causing
'timeout' to interpret 'ceph' as an invalid time interval.
To solve this bug, we introduced the necessary initialization
of the $WAIT_FOR_CMD variable. This ensures that the command is
executed correctly, addressing the issue and preventing the
recurrence of the 'timeout' error."
Test Plan:
- PASS: Force the disk process to be reported as hung and
check the aforementioned log for the desired output.
Reviewed: https:/ /review. opendev. org/c/starlingx /integ/ +/896952 /opendev. org/starlingx/ integ/commit/ 10a6701d7134a93 930c84e1555714e 8863218e8c
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 10a6701d7134a93 930c84e1555714e 8863218e8c
Author: Tiago Leal <email address hidden>
Date: Fri Sep 29 12:28:27 2023 -0300
Fix timeout command in ceph-init-wrapper
When analyzing the ceph-process- states. log file, we observed a d/ceph- init-wrapper
recurring error scenario. In the /etc/init.
osd.0 script, the 'timeout' was consistently failing with error
code 125 on the execute_ceph_cmd function call. This failure was
due to the absence of a mandatory value parameter, causing
'timeout' to interpret 'ceph' as an invalid time interval.
To solve this bug, we introduced the necessary initialization
of the $WAIT_FOR_CMD variable. This ensures that the command is
executed correctly, addressing the issue and preventing the
recurrence of the 'timeout' error."
Test Plan:
- PASS: Force the disk process to be reported as hung and
check the aforementioned log for the desired output.
Closes-Bug: 2037728 c76f25f4aaf9a99 d77f8d9250d
Change-Id: Ic337b212b74c0c
Signed-off-by: Tiago Leal <email address hidden>