Bug 996488

Summary: Can't configure host with more than 2TB memory
Product: Red Hat Enterprise Virtualization Manager Reporter: Aharon Canan <acanan>
Component: ovirt-engineAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, iheim, lpeer, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-13 11:54: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
logs none

Description Aharon Canan 2013-08-13 09:28:56 UTC
Description of problem:
Can't configure host with more than 2TB memory

Version-Release number of selected component (if applicable):
3.2.2 (sf19.2)

How reproducible:
100%

Steps to Reproduce:
1. configure RHEV with 2 hosts
2. in /usr/share/vdsm/caps.py set caps['memSize'] = '2147483648'
3. restart vdsm process

Actual results:
host become non-responsive

Expected results:
host should be up

from engine.log
===============
2013-08-13 10:50:22,560 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] (QuartzScheduler_Worker-64) Failed to parse memSize value 2147483648 to integer: java.lang.NumberFormatException: For input string: "2147483648"

Changes made in /usr/share/vdsm/caps.py
=======================================
    caps['memSize'] = str(utils.readMemInfo()['MemTotal'] / 1024)
    #caps['memSize'] = '3221225472'
    caps['memSize'] = '2147483648'

Comment 1 Aharon Canan 2013-08-13 09:39:12 UTC
Created attachment 786094 [details]
logs

Comment 2 Aharon Canan 2013-08-13 11:54:49 UTC
by mistake we set the memSize in KB instead of MB.
as from the code you can see it gets the value in KB but split by 1024.

we need to set memSize(KB)/1024