]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
node-proxy: Add a `NodeProxyManager` class
authorGuillaume Abrioux <gabrioux@ibm.com>
Fri, 1 Dec 2023 08:11:31 +0000 (08:11 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 16:00:58 +0000 (16:00 +0000)
commit204dcd5ccccba1525b1f5d38607cbabbd1ccde25
treebc8a081e895c20ff257774b4bab5e3606fd7e102
parent29f5df38472badf5ce58936f813eaa3ac0d0b432
node-proxy: Add a `NodeProxyManager` class

The current approach with `init_node_proxy()` and `node_proxy_loop_check()`
is 'cumbersome' and gives the heebie-jeebies.

Sub-classing `Thread()` makes the code a bit more clearer and readable.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 2a840d7ce4d64dd38f7aea381207bbecfef629cd)
src/cephadm/cephadm.py
src/cephadm/cephadmlib/node_proxy/main.py
src/cephadm/tests/test_agent.py