]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: add exchange types and use them for deploy
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 18 May 2023 19:10:16 +0000 (15:10 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 15 Jun 2023 20:35:34 +0000 (16:35 -0400)
commit83f8a1b687506573b119804532ad37ad3ce0d393
tree49d1e3c23082a3c50c8de7457fefe62ec06f019b
parent0e6f18c4f6b9e7c42d7094db5e38ddc02c983e5a
mgr/cephadm: add exchange types and use them for deploy

Add an exchange module for defining the "exchange protocol" that the
mgr module uses for communicating with the cephadm binary.  The
exchange module classes use data descriptors to define supported
fields in the resulting data and will be serialized to JSON for
communicating with cephadm.

The cephadm binary does not use these types because it currently
doesn't import anything outside of the standard library. A suggested
future change would be to move 'exhange.py' to python-common somewhere
and have the module be imported by both the mgr and cephadm and used
for both serialization and deserialization.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/cephadm/exchange.py [new file with mode: 0644]
src/pybind/mgr/cephadm/serve.py