update/sw-patch/cgcs-patch
Lindley Werner Soares Vieira 5aae3b75d9 Fix system raising alarm due to outdated file in memory
In DX system, during a forced reboot in the active controller, when the
host recovers, a 900.002 alarm is raised.
This happens because handle-install removes a flag file, but the next
service starts up in less than 200ms and the python garbage collector
was not able to remove the file from memory.

Solution: Force a garbage collector call after removing the file.

Test Plan:
    PASS: In DX, apply a patch, force reboot the active controller.
After the host was recovered, the 900.002 alarm should not be raised.

Closes-bug: 2037724
Closes-bug: 2037725

Change-Id: Idb92d2295c4330704d1ad8b1110477d64ee26583
Signed-off-by: Lindley Werner <Lindley.Vieira@windriver.com>
2023-09-29 09:25:48 -03:00
..
cgcs_make_patch Improvements to sneaky patch utility 2023-06-30 22:15:48 +00:00
cgcs_patch Fix system raising alarm due to outdated file in memory 2023-09-29 09:25:48 -03:00
cgcs_patch_id Cleanup tox targets for debian patching 2022-04-28 21:35:30 +00:00
.coveragerc Fork cgcs-patch package as sw-patch for Debian 2022-03-29 20:35:14 +00:00
.stestr.conf Fork cgcs-patch package as sw-patch for Debian 2022-03-29 20:35:14 +00:00
LICENSE Fork cgcs-patch package as sw-patch for Debian 2022-03-29 20:35:14 +00:00
pylint.rc Fix failing zuul job caused by new pylint version 2023-02-07 17:55:28 +00:00
requirements.txt Debian: Remove sysinv references from sw-patch 2022-08-11 18:26:59 +00:00
setup.cfg Fork cgcs-patch package as sw-patch for Debian 2022-03-29 20:35:14 +00:00
setup.py Fork cgcs-patch package as sw-patch for Debian 2022-03-29 20:35:14 +00:00
test-requirements.txt Fork cgcs-patch package as sw-patch for Debian 2022-03-29 20:35:14 +00:00
tox.ini Update tox.ini to work with tox 4 2022-12-23 16:01:02 +00:00