]> git.apps.os.sepia.ceph.com Git - ceph-ci.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:43:30 +0000 (14:43 +0000)
commitf2f87f4259bbfe1014f5a2309a82f5b08a8d78d3
treeb8627a1e4cd3414756a72ef090452b832ec3471d
parent3bb2863d5ac14fbadd609cfb3c494acc3ba8c9f0
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>
src/cephadm/node-proxy/server-v2.py
src/cephadm/node-proxy/util.py