]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
node-proxy: create entrypoint main()
authorGuillaume Abrioux <gabrioux@ibm.com>
Fri, 16 Jun 2023 09:13:56 +0000 (11:13 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 14:51:57 +0000 (14:51 +0000)
commit481e75ee0181c91a21bc337e0b72391497d4c6de
tree04521808ff059041da8968b47f5af78a360e037e
parent519a8d3b50f733e602312bc7d23fa6a7c9754656
node-proxy: create entrypoint main()

This creates a `main()` function in server.py that will be the
entrypoint of node-proxy.

This also implement arg parsing and add a `--config` parameter
to specify the configuration file.

Finally, this introduce a small refactor of class `Config` and class
`Logger` in util.py because there was a circular dependency between them.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit f2f87f4259bbfe1014f5a2309a82f5b08a8d78d3)
src/cephadm/node-proxy/server-v2.py
src/cephadm/node-proxy/util.py