drbdadm stacktraces in sysinv.log
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Fabricio Henrique Ramos |
Bug Description
Brief Description
-----------------
A stacktrace occurs regularly in sysinv.log after an AIO-SX is unlocked
Severity
--------
Minor
Steps to Reproduce
------------------
Build and boot a system after March 27 2023, unlock AIO-SX and wait a minute
Expected Behavior
------------------
sysinv.log should not show FileNotFound exceptions for drbdadm
Actual Behavior
----------------
lots of them
Reproducibility
---------------
100%
System Configuration
-------
AIO-SX
Branch/Pull Time/Commit
-------
March 27, 2023
Last Pass
---------
March 26, 2023
Timestamp/Logs
--------------
sysinv 2023-03-27 20:21:00.744 64135 INFO sysinv.
sysinv 2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
2023-03-27 20:21:00.757 69763 ERROR oslo_service.
Test Activity
-------------
Developer Testing
Workaround
----------
Revert https:/
The problem is that that change introduces a default empty dictionary for the environment variable in subprocess.Popen
drbdadm is located under /usr/sbin, and that PATH is not in the env, it cannot be found
This problem likely impacts many methods that use that sysinv.common.utils "execute" method
The code that introduced this issue has been reverted. Review: https:/ /review. opendev. org/c/starlingx /config/ +/878844
Based on the revert, this issue can be marked as Fix Released since it's been addressed. The original code ( review: https:/ /review. opendev. org/c/starlingx /config/ +/869109 ) will need to be re-worked to avoid this issue on resubmission.