From edc07019c6e70950d697ec0d7f3756065ac64b92 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 7 Oct 2021 16:23:07 +0200 Subject: [PATCH] cephadm: bootstrap --apply-spec shouldn't enforce :z There's no need to mount this file with the `:z` option. read-only access is enough for this file. Fixes: https://tracker.ceph.com/issues/52855 Signed-off-by: Guillaume Abrioux --- src/cephadm/cephadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index fd64aef1129..265ed52e9f7 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -4614,7 +4614,7 @@ def command_bootstrap(ctx): out, err, code = call_throws(ctx, ['sudo', '-u', ctx.ssh_user, 'ssh-copy-id', '-f', '-i', ssh_key, '-o StrictHostKeyChecking=no', '%s@%s' % (ctx.ssh_user, split[1])]) mounts = {} - mounts[pathify(ctx.apply_spec)] = '/tmp/spec.yml:z' + mounts[pathify(ctx.apply_spec)] = '/tmp/spec.yml:ro' out = cli(['orch', 'apply', '-i', '/tmp/spec.yml'], extra_mounts=mounts) logger.info(out) -- 2.39.5