]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: bootstrap --apply-spec shouldn't enforce :z
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 7 Oct 2021 14:23:07 +0000 (16:23 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 7 Oct 2021 14:23:07 +0000 (16:23 +0200)
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 <gabrioux@redhat.com>
src/cephadm/cephadm

index fd64aef1129e74244316d9cbe119f13a35363574..265ed52e9f752616ee6e175c24714e808e930f96 100755 (executable)
@@ -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)