SAIO probe tests fail if /var/cache/swift* directories don't exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
New
|
Undecided
|
Unassigned |
Bug Description
recent changes in the probe tests, i.e. stop probe test if 'resetswift' script fails (perhaps this commit: https:/
line 21 of resetswift (http://
As a fix, I propose wrapping it with an if statement:
if [ $(find /var/cache -type d -name "swift*" 2>/dev/null | wc -l ) != "0" ] ; then
sudo find /var/cache/swift* -type f -name *.recon -exec rm -f {} \;
fi
In addition, assuming the script is being run as the swift user, 'sudo' should be used with the find command.