Clean up NFS unmount during unstack
Don't run umount run if no shares are mounted, which reduces umount noise. Change-Id: Ib062afbdbc2ae0ff773741e29402eb13a925d40e
This commit is contained in:
@@ -108,7 +108,7 @@ if [[ "$1" == "unstack" ]]; then
|
|||||||
# Unmount any NFS shares mounted by Cinder
|
# Unmount any NFS shares mounted by Cinder
|
||||||
if [[ -d ${DATA_DIR}/cinder/mnt ]]; then
|
if [[ -d ${DATA_DIR}/cinder/mnt ]]; then
|
||||||
find ${DATA_DIR}/cinder/mnt -mindepth 1 -maxdepth 1 -type d \
|
find ${DATA_DIR}/cinder/mnt -mindepth 1 -maxdepth 1 -type d \
|
||||||
| sudo xargs umount -l
|
| sudo xargs --no-run-if-empty umount -l
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo rm -f ${STACK_NFS_CONF}
|
sudo rm -f ${STACK_NFS_CONF}
|
||||||
|
Reference in New Issue
Block a user