]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rados/test_crash: chown crash files to ceph user
authorTim Serong <tserong@suse.com>
Thu, 8 Dec 2022 00:09:16 +0000 (11:09 +1100)
committerTim Serong <tserong@suse.com>
Fri, 27 Jan 2023 11:27:45 +0000 (22:27 +1100)
Fixes: https://tracker.ceph.com/issues/58098
Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 93c0456159a87bb9c28b9b60998baeba1600af5f)

qa/workunits/rados/test_crash.sh

index 6608d7872e232b12ac5b9586ca84e63d37d4bc2b..26a4c9bdc151f71fcd085b8f5938f0cb0ed3945f 100755 (executable)
@@ -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