]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
node-proxy: add a lock mechanism
authorGuillaume Abrioux <gabrioux@ibm.com>
Mon, 22 May 2023 12:20:54 +0000 (14:20 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 14:50:20 +0000 (14:50 +0000)
commit8fb4cb806d056f00a5331609c93519d22d7a248d
tree85d4d8c7363c15b28f704443f7ca0705424a7d97
parentcfb389003b85f2fa0710f5dda55dad1573bc8225
node-proxy: add a lock mechanism

The loop in the reporter agent has to wait that the data are all
collected before checking and pushing them to the ceph-mgr (if needed).
The idea is to use the lock mechanism offered by the threading module
from python.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit fe03bf3676ee2b351a0155491bc5eb4bb7b3d1a3)
src/cephadm/node-proxy/redfish_system.py
src/cephadm/node-proxy/reporter.py