]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerAdam King <adking@redhat.com>
Tue, 3 May 2022 00:48:33 +0000 (20:48 -0400)
commit17abb310d36289a569f9fc348c3a40f65322d03a
treecce225036b48e318d29af1c995cf8200fd639d59
parentda63183e6ae2f2148fb6ca1ac4a4dc11cebae011
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>
(cherry picked from commit 452e52a7e39409e3409d59940133333416b830bc)
src/pybind/mgr/cephadm/ssh.py