This (sort of) reverts a small part of
442904bf2da, in order to
work correctly with
82d30afc413. The problem is that the latter
commit sets CONTAINER_INIT=False, which means we need to explicitly
pass --container-init to cephadm if we want that behaviour turned on.
There's a kink though: --container-init is only valid with cephadm's
"adopt", "bootstrap" and "deploy" commands; it's not a global option.
The cephadm mgr module doesn't invoke "adopt" or "bootstrap", only
"deploy", so we're only setting it in that specific case.
Fixes: https://tracker.ceph.com/issues/52064
Signed-off-by: Tim Serong <tserong@suse.com>
if not no_fsid:
final_args += ['--fsid', self._cluster_fsid]
+ if self.container_init and command == 'deploy':
+ final_args += ['--container-init']
+
final_args += args
# exec