]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: support non-root ssh-user w permissions
authorChristoph Glaubitz <c.glaubitz@syseleven.de>
Thu, 31 Mar 2022 12:57:53 +0000 (12:57 +0000)
committerChristoph Glaubitz <c.glaubitz@syseleven.de>
Thu, 31 Mar 2022 13:06:15 +0000 (15:06 +0200)
commit452e52a7e39409e3409d59940133333416b830bc
tree58b85e49e4aa5a2c5765b223e861d9ce1f896149
parentd191b08bb674c91902ddb713859fec358e14a674
mgr/cephadm: support non-root ssh-user w permissions

Restructured code, so that in case of non-root, the resulting file will
be created with permissions set to the ssh-user. This allows the
subsequent scp to be able to write the file. The remaining code kept the
same, so that file permissions are restored to the expected ones, but
just runs after the scp.

Fixes: https://tracker.ceph.com/issues/54620
Signed-off-by: Christoph Glaubitz <c.glaubitz@syseleven.de>
src/pybind/mgr/cephadm/ssh.py