Created attachment 653314 [details] engine.log - attempted move Description of problem: Storage domain is in maintenance. Disks on this storage domain can be moved and removed (the options are enabled). These options should be disabled when the storage domain is inactive. Version-Release number of selected component (if applicable): 3.1 DC and cluster. How reproducible: Always. Steps to Reproduce: 1. Put a storage domain with disks on it in maintenance 2. See that the move and remove options are enabled 3. Actual results: User can attempt removing or moving a disk, followed by an error message: ------------------------------------------------------------------------- Error while executing action: Cannot move Virtual Machine Disk. The relevant Storage Domain is inaccessible. -Please handle Storage Domain issues and retry the operation. ------------------------------------------------------------------------- Log: CanDoAction of action MoveOrCopyDisk failed. Reasons:VAR__ACTION__MOVE,VAR__TYPE__VM_DISK,ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL Expected results: move and remove options should be disabled, user shouldn't be able to attempt this action. Additional info: attached log
devel ack for greying out the button depending on the SD's status.
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.
Suggested solution, Move/Copy disk dialogs: * Each "problematic" [1] disk should be marked by an exclamation mark (located left to each row) with a tool-tip for explanation. [1] problematic - source/target storage domain is not available. * In addition to an exclamation mark, a warning should be displayed; e.g. "Some of the disks cannot be moved/copied since the source or target domains are inactive". * When pressing "OK", only non-problematic disks should be sent to the backend.
(In reply to comment #6) > Suggested solution, > > Move/Copy disk dialogs: > * Each "problematic" [1] disk should be marked by an exclamation mark > (located left to each row) with a tool-tip for explanation. > [1] problematic - source/target storage domain is not available. > * In addition to an exclamation mark, a warning should be displayed; > e.g. "Some of the disks cannot be moved/copied since the source or target > domains are inactive". > * When pressing "OK", only non-problematic disks should be sent to the > backend. Note that current behaviour is to move the ones we can and fail the rest so behaviour doesn't change with this solution, just the way we report the problems to the user (inside the dialog instead of canDoAction)
sf9. when trying to move disk when its storage domain in maintenance move disk dialog shows the following message: No active Storage Domain is available - check Storage Domains and Hosts status. user can only hit close button. closing as verified.
3.2 has been released