Red Hat Bugzilla – Bug 845975
ovirt-engine-backend [TEXT]: Error message when trying to create a disk on a DC which the vm is not on should be fixed
Last modified: 2016-02-10 11:52:27 EST
Created attachment 602483 [details]
Description of problem:
when creating a disk we are able to select a DC that the vm is not located on (vm exists on DC NFS and I am trying to create the disk on DC iSCSI).
the error backend gives is:
Cannot add Virtual Machine Disk. The target Data Center does not contain the Virtual Machine Disk.
since I am trying to create the disk I think that its pretty obvious that the disk will not be in the target Data Center :)
we need to remove the work Disk and just leave the virtual machine part.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a vm on one DC
2. create the disk on a second dc
Error while executing action: Cannot add Virtual Machine Disk. The target Data Center does not contain the Virtual Machine Disk.
it should be:
Error while executing action: Cannot add Virtual Disk. The target Data Center does not contain the Virtual Machine
Additional info: engine log
1. agree on error for API
2. for GUI - why isn't the bug on not showing irrelevant DCs?
(In reply to comment #1)
> 1. agree on error for API
> 2. for GUI - why isn't the bug on not showing irrelevant DCs?
Can this be related to Bug 845977 ?
You're creating a disk from within the context of a VM and you can change the DC? that sounds like the bug, not the error message (see Itamar's comment #1)
there should be a UI bug on being able to select a different DC (I think I have seen or even opened it myself on earlier versions) but this should also be blocked with correct message because of API.
When creating a disk within a VM context, you cannot choose a DC (this field is hidden, DC selection is possible only when adding a disk from the main disks tab 'new' dialog).
Patch submitted: http://gerrit.ovirt.org/#/c/8319/
merged change id I1740658f448d5281b6b406346ae41487f48915ba
Verified on SI20