]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: add deploy-from command
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 11 May 2023 15:05:07 +0000 (11:05 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 15 Jun 2023 20:35:34 +0000 (16:35 -0400)
commitdfe9b48674f75ee0811c2aef8f8fd1c800a7b982
tree62607061b49a705b6908d008ca7af35cc11ae290
parent0f0f7681e97ea10b391b991b6609a08854dc9ed0
cephadm: add deploy-from command

Add the `deploy-from` command. This command is like `deploy` in
functionality but instead of sourcing input from a mixture of various
CLI arguments, CLI arguments that take JSON strings, and JSON data
provided on stdin - this command aims to take configuration from a
single unified JSON object provided on the commands stdin.

This change strives to be as reasonably backwards compatible with
`deploy` as possible and this leads to some awkward hoop-jumping,
including: needing to nest CLI arguments inside the JSON, because
that is what the manager constructs; duplicate sources of the fsid
(CLI and JSON); the strange behavior of CephadmContext when setting
values; and a few others I'm probably forgetting.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py