Description of problem: VMware vCenter Provider : VM reconfigure (powered on or off) add disk error when more than 1 disk present. Deleting the existing second disk from CF or directly from vCenter and then adding a new disk to the VM which at that point only has 1 disk works. Version-Release number of selected component (if applicable): CFME 4.1 beta 2.5 How reproducible: Every time a VM is reconfigured adding a disk and has more than 1 disk. Steps to Reproduce: 1. Provision a vSphere VM with 1 or 2 disks 2. Reconfigure the VM from CFME adding a 3rd disk. 3. It will fail with "Invalid configuration for device '0'. Actual results: It will fail with Reconfigure virtual machine: status:"Invalid configuration for device '0'. Expected results: Reconfigure virtual machine: status: "Completed" Additional info:
https://github.com/ManageIQ/manageiq/pull/8791
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/79ae05ba6a9f239b7709973a30e7dfff4574e595 commit 79ae05ba6a9f239b7709973a30e7dfff4574e595 Author: Adam Grare <agrare> AuthorDate: Wed May 18 12:18:53 2016 -0400 Commit: Adam Grare <agrare> CommitDate: Wed May 18 14:20:43 2016 -0400 Fix calculation of the controller and unit number When calculating the controller key and unit number detect was used so that if there were more than 1 scsi controller or virtual disk on the target vm the new disk would be added to a populated slot on the scsi controller, leading to the error message from VMware "Invalid configuration for device '0'" https://bugzilla.redhat.com/show_bug.cgi?id=1336812 gems/pending/VMwareWebService/MiqVimVm.rb | 36 ++- .../pending/spec/VMwareWebService/MiqVimVm_spec.rb | 347 ++++++++++++++++++--- 2 files changed, 337 insertions(+), 46 deletions(-)
Verified in 5.6.0.9
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1348
New commit detected on cfme/5.5.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=a711f10895696e9ccb5a437eda2596a3a2a4a8f8 commit a711f10895696e9ccb5a437eda2596a3a2a4a8f8 Author: Adam Grare <agrare> AuthorDate: Wed May 18 12:18:53 2016 -0400 Commit: Drew Bomhof <dbomhof> CommitDate: Mon Aug 1 17:14:06 2016 -0400 Fix calculation of the controller and unit number When calculating the controller key and unit number detect was used so that if there were more than 1 scsi controller or virtual disk on the target vm the new disk would be added to a populated slot on the scsi controller, leading to the error message from VMware "Invalid configuration for device '0'" https://bugzilla.redhat.com/show_bug.cgi?id=1336812 gems/pending/VMwareWebService/MiqVimVm.rb | 36 ++- .../pending/spec/VMwareWebService/MiqVimVm_spec.rb | 347 ++++++++++++++++++--- 2 files changed, 337 insertions(+), 46 deletions(-)