backend [multiple domains]: trying to create snapshot for a vm with multiple disks on multiple domains while one domain is in maintenance is not blocked by backend and will fail by vdsm
Description of problem:
trying to create a snapshot on vm with multiple disks on multiple domains will while one of the domains is in maintenance will not be blocked by backend.
the command is sent to the vdsm which fails the command with Storage domain does not exist error.
also, the error presented to the user will be "Error: A Request to the Server failed with the following Status Code: 500"
Version-Release number of selected component (if applicable):
si4
How reproducible:
100%
Steps to Reproduce:
1. create two domains
2. create a vm with multiple disks located on both domains
3. put one domain in maintenance
4. try to create snapshot
Actual results:
1. the action is sent to vdsm and failed with Storage domain does not exist error when it should be blocked in backend side
2. the error presented to the user is A Request to the Server failed with the following Status Code: 500" which is not the correct code or correct message.
Expected results:
1. action should be blocked by backend
2. we need to present a correct error message
Additional info: full logs are attached
CreateAllSnapshotsFromVm fails in backend:
2012-07-02 15:58:39,085 WARN [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand] (ajp-/0.0.0.0:8009-11) [78ff498e] CanDoAction of action CreateAllSnapshotsFromVm failed. Reasons:ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL,VAR__ACTION__CREATE,VAR__TYPE__SNAPSHOT
there is a different UI bug which will not close the dialogue after CanDoAction from backend.
verified on si8