Bug 1352566 - RHEV VM Reconfigure: Hot VM memory Hot add/remove succeed, but give Error: "divided by 0"
Summary: RHEV VM Reconfigure: Hot VM memory Hot add/remove succeed, but give Error: "d...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: GA
: 5.7.0
Assignee: Moti Asayag
QA Contact: Ilanit Stein
URL:
Whiteboard: rhev
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-04 11:17 UTC by Ilanit Stein
Modified: 2017-03-13 13:58 UTC (History)
4 users (show)

Fixed In Version: 5.7.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-04 12:56:53 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
evm.log: VM hot add memory request egrep. (21.90 KB, text/plain)
2016-07-04 11:38 UTC, Ilanit Stein
no flags Details
evm.log: VM hot remove memory request egrep. (21.92 KB, text/plain)
2016-07-04 11:39 UTC, Ilanit Stein
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0012 0 normal SHIPPED_LIVE CFME 5.7.0 bug fixes and enhancement update 2017-01-04 17:50:36 UTC

Description Ilanit Stein 2016-07-04 11:17:36 UTC
Description of problem:
VM Reconfigure: VM Hot add/remove memory request, fail on Error: divided by 0.

On RHEV side,
For VM Hot add memory, the memory is indeed increased to the desired size.
For VM Hot remove, the following expected event appear: 
Failed to hot set memory to VM <vm name>. Underlying error message: Hot un-plugging memory is not supported for cluster version 3.6 and architecture x86_64. 

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%

Comment 2 Ilanit Stein 2016-07-04 11:36:44 UTC
Not sure why, and if this is a general case in CFME:
CFME request for VM Reconfigure memory add/remove,
Under Services->Requests, "last update" tab, display a certain time, 
while in evm.log, records on the same request, continue for 2-3 min afterwards.

Comment 3 Ilanit Stein 2016-07-04 11:38:18 UTC
Created attachment 1175969 [details]
evm.log: VM hot add memory request egrep.

Comment 4 Ilanit Stein 2016-07-04 11:39:19 UTC
Created attachment 1175972 [details]
evm.log: VM hot remove memory request egrep.

Comment 5 Ilanit Stein 2016-07-05 12:58:40 UTC
Please propagate the RHEV Error messages 
(like "Failed to hot set memory to VM <vm name>. Underlying error message: Hot un-plugging memory is not supported for cluster version 3.6 and architecture x86_64.") to CFME.

Comment 6 Ilanit Stein 2016-07-13 15:10:39 UTC
Another example, when configuring memory hot add to a size larger than hosts's free memory. 
The request on CFME side fail on "Error: divided by 0", while on rhev side,
the event error is:
"Failed to hot set memory to VM <vmname>. Underlying error message: internal error: unable to execute QEMU command 'object-add': cannot set up guest memory 'memdimm1': Cannot allocate memory"

Comment 7 Ilanit Stein 2016-07-14 06:30:41 UTC
Another example, when configuring memory hot add to a size that is not a multiply of 256: "Failed to hot set memory to VM <vmname>. Underlying error message: Cannot hot set memory VM. Plugged memory must be multiplication of 256."

All the errors (and other errors if any), should be propagated to CFME.

Comment 8 Moti Asayag 2016-08-04 12:55:32 UTC
PR [1] should fix this bug as well.

https://github.com/ManageIQ/ovirt/pull/59/

Please verify.

Comment 9 Ilanit Stein 2016-09-21 10:15:24 UTC
Tested on 5.7.0.1.20160913164703_66caf07:

1. For  RHV-4.0.4.2-0.1.el7ev, 
where VM memory hot remove is supported,
Both memory hot add & remove succeed on RHV side & CFME side.
(There seem to be a RHV bug, yet opened, that guaranteed memory is updated to the same value as the physical memory)

2. For RHEVM-3.6.8-0.1,
where VM memory hot remove is not supported,

* VM memory hot remove fail on RHEVM side:
"Failed to hot set memory to VM test_prov_order_1. Underlying error message: Hot un-plugging memory is not supported for cluster version 3.6 and architecture x86_64."
But on CFME this request end up with message:
"VM Reconfigure complete"
In this case VM had memory of 1024M, and guaranteed memory 512M, and I tried to chenge memory from 1024M to 512M.

* VM memory hot add, from 1024M to 2048M,
failed on RHEVM side on:
" Failed to hot set memory to VM test_prov_order_1. Underlying error message: Cannot hot set memory VM. Plugged memory must be multiplication of 256."
and on CFME side on:
"Error: [Cannot edit VM. Physical Memory Guaranteed cannot exceed Memory Size.]"

Comment 10 Ilanit Stein 2016-09-22 09:30:24 UTC
It seems the issues mentioned in comment #9, cannot be addressed on CFME side.  The bug in the description is resolved, therefore, moving bug to verified.

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


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