CLOUDSTACK-7152. Attaching datadisk to VMs that have VM snapshot throws 'Unexpected exception'.
Like with other API commands, ensure input parameter validation for AttachVolume happens outside the job queue.
Fix string encoding problem reported by coverity
Remove dead code
Fix equality check using != on objects

Cleanup in the code, removing dead code
Set mapped device path while detaching rbd disk