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:
parent
73b8b0842e
commit
0151149833
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue