Bug 1336812 - VMware vCenter Provider : VM reconfigure (powered on or off) add disk error when more than 1 disk present
Summary: VMware vCenter Provider : VM reconfigure (powered on or off) add disk error w...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.6.0
Hardware: All
OS: Unspecified
high
high
Target Milestone: GA
: 5.6.0
Assignee: Adam Grare
QA Contact: luke couzens
URL:
Whiteboard: vmware:reconfigure
Depends On:
Blocks: 1358509
TreeView+ depends on / blocked
 
Reported: 2016-05-17 13:38 UTC by Andre Motta
Modified: 2017-09-05 07:41 UTC (History)
6 users (show)

Fixed In Version: 5.6.0.8
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1358509 (view as bug list)
Environment:
Last Closed: 2016-06-29 16:03:04 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Andre Motta 2016-05-17 13:38:13 UTC
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:

Comment 4 CFME Bot 2016-05-19 12:40:48 UTC
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(-)

Comment 5 luke couzens 2016-06-02 10:22:12 UTC
Verified in 5.6.0.9

Comment 7 errata-xmlrpc 2016-06-29 16:03:04 UTC
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

Comment 8 CFME Bot 2016-08-02 22:01:33 UTC
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(-)


Note You need to log in before you can comment on or make changes to this bug.