Umbrella #25917: Move business logic from Django to middlewared and make websocket API feature complete
Convert Storage:Volume Lock/Unlock to Middlewared
We need to change legacy UI to lock and unlock of a volume using middlewared calls (this is to make sure v1.0 API will continue working as expected)
We need to create associated middlewared API transferring logic from legacy UI code.
This is a medium risk task, we may introduce new bugs on locking and unlocking a volume.
When this is done we should be able to continue to lock and unlock volume at full extent when using legacy UI.
Test Passed FreeNAS-11.3-MASTER-201903211102
Created a locked volume, created passphrase, downloaded Recovery Key. In Legacy UI, locked and unlocked volume successfully. In WebUI locked volume, switched to Legacy and successfully unlocked volume.