Inconsistency when deleting volume attached to iSCSI target
|Reported by:||gcooper||Owned by:||william|
Deleting an iSCSI target with a volume that's currently in use warns the user that it's in use instead of providing a "are you sure you wish to delete this extent", kind of error. This is inconsistent with deleting volumes, ZFS volumes, and datasets, where the user is given an option to cascade delete all shares associated with the volume(s).
- Go to "Storage" -> "Volumes" -> "Create Volume".
- Add a volume of type "ZFS" named "test".
- Go to "Create ZFS Volume".
- Create a ZFS volume named "test2" using the "test" ZFS pool.
- Go to "iSCSI" -> "Device Extent".
- Add an extent named "test3", pointing to the ZFS volume "test2".
- Go to "View all Volumes".
- Try and delete "test2" (this will fail citing that the ZFS volume is in use by "test3").
- Try and delete "test" zpool. Click "Yes" (this will succeed).
The user should be presented with a dialog asking if they wish to disable all services associated with the "test2" ZFS volume (i.e. the "test3" extent). If they press no, nothing should occur. Otherwise, it should cascade down and delete the iSCSI extent as well.
The user is blocked from deleting the iSCSI extent, but not when deleting the "test" ZFS pool.