Bug 1391711

Summary: RHV VM Reconfigure: Remove disks section, in case of no storage associated with the VM or api version is not supported
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Moti Asayag <masayag>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: cpelland, jfrey, jhardy, lcouzens, obarenbo, oourfali, simaishi
Target Milestone: GA   
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rhev
Fixed In Version: 5.7.0.10 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1373916 Environment:
Last Closed: 2017-01-04 13:08:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM Target Upstream Version:
Embargoed:
Bug Depends On: 1373916    
Bug Blocks:    

Comment 2 CFME Bot 2016-11-07 20:51:08 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/52942b490b9b72979e3ed43735fa8a17385598d2

commit 52942b490b9b72979e3ed43735fa8a17385598d2
Author:     Greg Blomquist <blomquisg>
AuthorDate: Thu Nov 3 15:46:14 2016 -0400
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Mon Nov 7 15:45:58 2016 -0500

    Merge pull request #11971 from masayag/enable_vm_reconfigure_disk_for_supported_rhevm
    
    Enable VM reconfigure disks for supported rhevm version
    (cherry picked from commit 3a72731ae15df71f2d066d1638fc7ffd969d3b3b)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1391711

 .../application_controller/ci_processing.rb        |  6 +++
 .../redhat/infra_manager/api_integration.rb        |  2 +-
 .../manageiq/providers/redhat/infra_manager/vm.rb  | 10 +++++
 .../manageiq/providers/vmware/infra_manager/vm.rb  |  2 +
 app/models/mixins/supports_feature_mixin.rb        |  1 +
 app/views/vm_common/_reconfigure.html.haml         |  2 +-
 .../application_controller/ci_processing_spec.rb   | 32 ++++++++++++++++
 .../providers/redhat/infra_manager/vm_spec.rb      | 44 ++++++++++++++++++++++
 8 files changed, 97 insertions(+), 2 deletions(-)

Comment 3 Ilanit Stein 2016-11-13 14:18:16 UTC
Verified on CFME-5.7.0.10.
Works as expected:

For RHV-4.0.4, VM that had no disks attached, had no VM reconfigure->Disks section 
For RHV-4.0.4, VM that disks attached, there was a VM reconfigure->Disks section
For RHV-3.6, up/down VMs, that have disks, had no VM reconfigure->Disks section

Comment 5 errata-xmlrpc 2017-01-04 13:08:26 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://rhn.redhat.com/errata/RHBA-2017-0012.html