X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fqa%2Fworkunits%2Frados%2Ftest_crash.sh;fp=ceph%2Fqa%2Fworkunits%2Frados%2Ftest_crash.sh;h=26a4c9bdc151f71fcd085b8f5938f0cb0ed3945f;hb=39ae355f72b1d71f2212a99f2bd9f6c1e0d35528;hp=6608d7872e232b12ac5b9586ca84e63d37d4bc2b;hpb=e04241aa9b639588fa6c864845287d2824cb6b55;p=ceph.git diff --git a/ceph/qa/workunits/rados/test_crash.sh b/ceph/qa/workunits/rados/test_crash.sh index 6608d7872..26a4c9bdc 100755 --- a/ceph/qa/workunits/rados/test_crash.sh +++ b/ceph/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