Bug 1631448

Summary: CloudForms allow user to submit disk size change when snapshots are attached
Product: Red Hat CloudForms Management Engine Reporter: David Luong <dluong>
Component: UI - OPSAssignee: Brian McLaughlin <bmclaugh>
Status: CLOSED CURRENTRELEASE QA Contact: Sudhir Mallamprabhakara <smallamp>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.9.4CC: abellott, bmidwood, dluong, dmetzger, gtanzill, hkataria, jprause, lavenel, mpovolny, mshriver, obarenbo, simaishi
Target Milestone: GAKeywords: Reopened, TestOnly, ZStream
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1696841 (view as bug list) Environment:
Last Closed: 2019-12-13 14:58:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1679295, 1692488, 1696841    

Description David Luong 2018-09-20 15:27:54 UTC
Description of problem:
Resize disk in reconfigure VM allows user to submit a disk size change despite it being an inoperable action when snapshots are attached in vCenter

Version-Release number of selected component (if applicable):
5.9

How reproducible:
Always

Steps to Reproduce:
1.  Attach snapshots to VM
2.  Change disk size in cloudforms
3.

Actual results:
Fails due to "Invalid config for device '0'"

Expected results:
Disable disk size change or alert user they need to delete snapshots attached to VM first

Additional info:

Comment 15 CFME Bot 2019-04-01 16:16:13 UTC
New commit detected on ManageIQ/manageiq-providers-vmware/master:

https://github.com/ManageIQ/manageiq-providers-vmware/commit/d27a8ea0c20aea46fd32cc23e3fe48c958c10c41
commit d27a8ea0c20aea46fd32cc23e3fe48c958c10c41
Author:     Brian McLaughlin <bmclaugh>
AuthorDate: Thu Mar 28 13:16:55 2019 -0400
Commit:     Brian McLaughlin <bmclaugh>
CommitDate: Thu Mar 28 13:16:55 2019 -0400

    Added unsupported reason for reconfiguring disksize when VM has snapshots.

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1631448

 app/models/manageiq/providers/vmware/infra_manager/vm.rb | 4 +-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comment 17 Antonin Pagac 2019-04-29 12:40:51 UTC
Verified with 5.11.0.1.