Need to increase vm_slave_memory_mb in config.sh for VBox

Bug #1358345 reported by Anastasia Palkina
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Dmitry Tyzhnenko

Bug Description

Now we have in config.sh:

vm_slave_memory_mb[1]=2048
vm_slave_memory_mb[2]=1024
vm_slave_memory_mb[3]=1024

But we need 2048 MB of memory for all nodes. Because even Ubuntu requires 2048 MB.

Tags: virtualbox
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: none → 5.1
Revision history for this message
Mike Scherbakov (mihgen) wrote :

Please provide a numbers which show that we need more memory. You can check memory consumption on nodes and paste results here for analysis. Increasing of memory can be damaging for our demo story: many people run demo under virtualbox on laptops, which are often 8Gb of RAM.

Changed in fuel:
status: New → Incomplete
tags: added: virtualbox
Revision history for this message
Vladimir Sharshov (vsharshov) wrote :

Mike, at least this scripts violates our recommendations for VirtualBox described in docs.

Naturally, we can warn a user to avoid HA mode without changing config.sh in accordance with the recommendations in launch.sh script.

Free memory in case: Ubuntu HA, nova vlan, controller+cinder.

root@node-4:~# free -m
             total used free shared buffers cached
Mem: 2001 1926 74 0 29 74
-/+ buffers/cache: 1822 178
Swap: 3827 1025 2802

root@node-5:~# free -m
             total used free shared buffers cached
Mem: 2001 1926 74 0 41 65
-/+ buffers/cache: 1819 181
Swap: 3827 908 2919

root@node-6:~# free -m
             total used free shared buffers cached
Mem: 2001 1932 68 0 23 59
-/+ buffers/cache: 1850 151
Swap: 3827 989 2838

Revision history for this message
Dmitry Tyzhnenko (dtyzhnenko) wrote :

For exclude problems with notebook owners in config.sh we can check RAM in host PC.
For example, if host PC have 8Gb or less use default vm_slave_memory_default=1536, and set vm_slave_memory_mb[0]=2048 as now. If more then 8Gb use 2048Mb by default for all VMs

In attach my solution.

Revision history for this message
Sebastian Kalinowski (prmtl) wrote :

Unfortunately this patch will not work on OS X (and probably Windows) hosts: free command is not available.

Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

I've set status to 'High' because it is unclear for me: will our virtualbox envs die without this change or not

Changed in fuel:
assignee: Dmitry Pyzhov (lux-place) → nobody
status: Incomplete → New
importance: Undecided → High
Revision history for this message
Łukasz Oleś (loles) wrote :

Dmitry, it will fail on controllers. I had to increase RAM for these nodes

Łukasz Oleś (loles)
Changed in fuel:
assignee: nobody → Łukasz Oleś (loles)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

Fix proposed to branch: master
Review: https://review.openstack.org/115954

Changed in fuel:
assignee: Łukasz Oleś (loles) → Dmitry Tyzhnenko (dtyzhnenko)
status: New → In Progress
Revision history for this message
Dmitry Tyzhnenko (dtyzhnenko) wrote :

Łukasz and Sebastian, please check review.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/115954
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=c3e8d48cc22ae2f51438ecbd02b93e788b299d83
Submitter: Jenkins
Branch: master

commit c3e8d48cc22ae2f51438ecbd02b93e788b299d83
Author: Dmitry Tyzhnenko <email address hidden>
Date: Wed Aug 20 19:35:37 2014 +0300

    Apply different configurations by separate launchers

    Add 3 lauchers for 4, 8 and 16 GB RAM on host PC.

    For Linux(Cygwin) and Darwin used different way of fetch total memory.

    Change-Id: I70487bda3e7492f72b5d5051de2e697bcae03377
    Closes-Bug: #1358345

Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.