]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: limit mounts for shell and ceph-volume commands
authorAdam King <adking@redhat.com>
Mon, 22 Apr 2024 12:25:56 +0000 (08:25 -0400)
committerAdam King <adking@redhat.com>
Mon, 22 Jul 2024 17:36:20 +0000 (13:36 -0400)
commiteda437b9a117f680b1958c0b194545fbecaba95a
tree612182d0140c0fae5f16819ee07f345357f93304
parentb177f2ee972ccc9a41f063c787385cd17a2bc2ac
cephadm: limit mounts for shell and ceph-volume commands

This drops the /sys, /dev, and / (on rootfs) mounts from
the shell, as these shouldn't be required and it also makes
the ceph-volume commands monut of / a slave mount so there
isn't an issue unmounting things on the host due to the
container having this mount.

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit ff4be2873499dacf15652a77f970edabc404ddee)
src/cephadm/cephadm.py
src/cephadm/cephadmlib/daemons/ceph.py
src/cephadm/tests/test_cephadm.py