Skip to content

Commit

Permalink
add notes for implementing iscsi-logout
Browse files Browse the repository at this point in the history
  • Loading branch information
kmova committed Apr 3, 2017
1 parent 6216343 commit 5b1b5fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion k8s/lib/plugin/flexvolume/openebs-iscsi
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,13 @@ unmount() {
err "{ \"status\": \"Failed\", \"message\": \"Failed to unmount volume at ${MNTPATH}\"}"
exit 1
fi

VOLUME_NAME=`basename ${MNTPATH}`
debug "dounmount volume ${VOLUME_NAME} and ${MNTPATH}"
#TBD
#Check if the volume exists using iscsiadm sessions
#Logout of the session for this specific volume

log '{"status": "Success"}'
exit 0
}
Expand Down Expand Up @@ -372,4 +379,4 @@ exit 1

esac

exit 1;
exit 1;

0 comments on commit 5b1b5fa

Please sign in to comment.