From: Tim Serong Date: Thu, 8 Dec 2022 00:09:16 +0000 (+1100) Subject: qa/workunits/rados/test_crash: chown crash files to ceph user X-Git-Tag: v16.2.13~182^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1a990887fc604674bb64e2b85b971522c72d7cd0;p=ceph.git qa/workunits/rados/test_crash: chown crash files to ceph user Fixes: https://tracker.ceph.com/issues/58098 Signed-off-by: Tim Serong (cherry picked from commit 93c0456159a87bb9c28b9b60998baeba1600af5f) --- diff --git a/qa/workunits/rados/test_crash.sh b/qa/workunits/rados/test_crash.sh index 6608d7872e23..26a4c9bdc151 100755 --- a/qa/workunits/rados/test_crash.sh +++ b/qa/workunits/rados/test_crash.sh @@ -24,6 +24,11 @@ for f in $(find $TESTDIR/archive/coredump -type f); do fi done +# ceph-crash runs as the unprivileged "ceph" user, but when under test +# the ceph osd daemons are running as root, so their crash files aren't +# readable. let's chown them so they behave as they would in real life. +sudo chown -R ceph:ceph /var/lib/ceph/crash + # let daemon find crashdumps on startup sudo systemctl restart ceph-crash sleep 30