]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
dashboard: ensure nodeenv downloaded content is owned by current user 63099/head
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 2 May 2025 15:17:53 +0000 (11:17 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 2 May 2025 19:17:57 +0000 (15:17 -0400)
commit24dbfb5da4813c6588f9cd199b9f527bb67f1e88
tree8057fae84395c448539273e2f77fb8357edda4ff
parente9525ee0cd75be635b7cf717ce7e835baeb6989d
dashboard: ensure nodeenv downloaded content is owned by current user

When testing ceph builds in a container we discovered that certain files
could not be deleted by jenkins after a build. This was due to the way
the container maps IDs - files owned by the root user in the container
become owned by the "real" user/jenkins user on the "host".
However, the node tarball that is fetched and unpacked by nodeenv has
a different owner name/uid that is preserved in the tree and this id
gets mapped to something that can be managed by the "fake root" of the
container but not by the "regular" user outside the container.

The simplest workaround I can think of is to chown the tree back
to the current user and avoid leaving files on disk with uncleanly
mapped uids.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/dashboard/frontend/CMakeLists.txt