Bug 1352509

Summary: RHEV VM Reconfigure: Cold Add/Remove memory fail on Error: divided by 0
Product: Red Hat CloudForms Management Engine Reporter: Ilanit Stein <istein>
Component: ProvidersAssignee: Moti Asayag <masayag>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.6.0CC: jfrey, jhardy, masayag, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rhev, VM Reconfigure
Fixed In Version: 5.7.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-04 12:56:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
evm.log relevant part none

Description Ilanit Stein 2016-07-04 09:36:05 UTC
Description of problem:
For a Powered OFF VM, with Guaranteed memory 512 MB, and Memory size 1024 MB,
CFME Reconfigure VM: change memory size to 2048 MB request fail on 

Version-Release number of selected component (if applicable):
CFME 5.6.0.11-rc2.2.20160614152915_f315c68
RHEVM-3.6.6.2-0.1.el6

How reproducible:
100%

Actual results:
The cold Add VM memory actually succeed (Checking it on RHEV side), in parallel to having the request itself fail on CFME side on the "divided by 0" Error.

Expected results:
Cold Add VM memory request should succeed, without errors.

Comment 2 Ilanit Stein 2016-07-04 09:59:39 UTC
Created attachment 1175937 [details]
evm.log relevant part

Comment 3 Ilanit Stein 2016-07-13 15:26:17 UTC
RHEV VM Cold memory remove request on CFME, fail on "Error divided by 0" as well.

For example, a VM with Memory 512MB, and guaranteed memory 100 MB, 
VM reconfigure-> memory update 512MB->100MB fail on "Error: divided by 0",
while on RHEV side this memory remove operation succeded (memory updated to 100MB)

Comment 4 Satoe Imaishi 2016-08-16 15:34:09 UTC
Moti, can you add PR link that fixed this issue?

Comment 5 Ilanit Stein 2016-08-22 10:49:28 UTC
Verified on manageiq-ovirt-master-201608192000-6658ccc8e  and RHEVM-3.6.8-0.1.
VM memory cold remove 1024M->2048M, for VM with guaranteed memory of 512MB, from CFME side succeeded.
No error was seen on evm.log, or in the request result, on CFME UI.

Comment 6 Ilanit Stein 2016-09-21 08:23:35 UTC
Verified on:

RHV-4.0.4.2-0.1.el7ev
5.7.0.1.20160913164703_66caf07

Memory cold add/remove succeed, with no errors on CFME, and the guaranteed memory is updated to the memory new set value.

Comment 8 errata-xmlrpc 2017-01-04 12:56:49 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