mirror of
https://github.com/ceph/ceph
synced 2025-01-02 00:52:22 +00:00
qa/workunits/rados/test_crash: chown crash files to ceph user
Fixes: https://tracker.ceph.com/issues/58098 Signed-off-by: Tim Serong <tserong@suse.com>
This commit is contained in:
parent
4f693d8a57
commit
93c0456159
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user