Remove support for nova-volume
* nova-volume has been removed in Grizzly
* part of delete-nova-volume
Change-Id: Iba91d69950767823d77aaaa93243b0f476dbb04d
diff --git a/unstack.sh b/unstack.sh
index 6b34aa3..1a2cad8 100755
--- a/unstack.sh
+++ b/unstack.sh
@@ -26,7 +26,6 @@
# Get project function libraries
source $TOP_DIR/lib/cinder
-source $TOP_DIR/lib/n-vol
# Determine what system we are running on. This provides ``os_VENDOR``,
# ``os_RELEASE``, ``os_UPDATE``, ``os_PACKAGE``, ``os_CODENAME``
@@ -58,11 +57,7 @@
SCSI_PERSIST_DIR=$CINDER_STATE_PATH/volumes/*
# Get the iSCSI volumes
-if is_service_enabled cinder n-vol; then
- if is_service_enabled n-vol; then
- SCSI_PERSIST_DIR=$NOVA_STATE_PATH/volumes/*
- fi
-
+if is_service_enabled cinder; then
TARGETS=$(sudo tgtadm --op show --mode target)
if [ $? -ne 0 ]; then
# If tgt driver isn't running this won't work obviously
@@ -88,10 +83,6 @@
sudo rm -rf $CINDER_STATE_PATH/volumes/*
fi
- if is_service_enabled n-vol; then
- sudo rm -rf $NOVA_STATE_PATH/volumes/*
- fi
-
if [[ "$os_PACKAGE" = "deb" ]]; then
stop_service tgt
else