Browse Source

Clean up NFS unmount during unstack

Don't run umount run if no shares are mounted, which
reduces umount noise.

Change-Id: Ib062afbdbc2ae0ff773741e29402eb13a925d40e
changes/45/688145/1
Eric Harney 2 years ago
parent
commit
0151149833
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      devstack/plugin.sh

+ 1
- 1
devstack/plugin.sh View File

@ -108,7 +108,7 @@ if [[ "$1" == "unstack" ]]; then
# Unmount any NFS shares mounted by Cinder
if [[ -d ${DATA_DIR}/cinder/mnt ]]; then
find ${DATA_DIR}/cinder/mnt -mindepth 1 -maxdepth 1 -type d \
| sudo xargs umount -l
| sudo xargs --no-run-if-empty umount -l
fi
sudo rm -f ${STACK_NFS_CONF}


Loading…
Cancel
Save