]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: compile cephadm
authorPatrick Seidensal <pseidensal@suse.com>
Tue, 15 Jun 2021 08:24:20 +0000 (10:24 +0200)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 13 Sep 2022 16:17:20 +0000 (12:17 -0400)
commit18fcfb022d19af1e69addf1729d4593272e4ac20
tree0fd0359ee33fb5e861144767b653393b68dc84de
parent2bdccfd5eab5a18a4b6a69ef7ee31916a3f1968e
cephadm: compile cephadm

Compiling cephadm into an single binary offers the ability to split the
code from cephadm up into several files/modules. A side effect of having
a `cephadm.py` file (which, by renaming to cephadm.py has already become
a module) is that it can properly be imported and static type checking
inside `src/cephadm/tests/test_cephadm.py` is not an issue anymore.

Next steps would to split up cephadm into several modules and adapting
the test_cephadm.py import mechanism, as well as fixing the typing
issues, which are revealed by using a proper important statement.

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
12 files changed:
src/cephadm/CMakeLists.txt
src/cephadm/build.sh [new file with mode: 0755]
src/cephadm/cephadm [deleted file]
src/cephadm/cephadm.py [new file with mode: 0755]
src/cephadm/tests/fixtures.py
src/cephadm/tests/test_cephadm.py
src/cephadm/tests/test_enclosure.py
src/cephadm/tests/test_networks.py
src/cephadm/tox.ini
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/serve.py
src/vstart.sh