Default m1.tiny has 512Mb, which doesn’t allow to run demo VM with VBox scripts

Bug #1318512 reported by Mike Scherbakov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Vladimir Kuklin

Bug Description

By default, virtual box scripts create 3 VMs, with the only one of them of 2Gb RAM size. It is usually chosen for controller. 1Gb is enough for compute, however more than half of it is used for host OS, and nova-compute reports less than 512Mb is available for VMs:
 > Free ram (MB): 481

Minumal flavor requires 512Mb to be available on the host:
root@node-1:~# nova flavor-list
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |

even though our Cirros image requires just 64Mb:
root@node-1:~# glance details
….
Minimum Ram Required (MB): 64

So my suggestion would be to create “m1.micro” with 64Mb memory for it. BTW, OSTF passes instances creation just because it temporarily creates such a micro flavor.

Revision history for this message
Vladimir Sharshov (vsharshov) wrote :

I suggest to add a command to Astute (create micro template) as a post-deploy action, because it is similar with cirros upload image operation: run a special command once in only one node in the cluster.

Mike Scherbakov (mihgen)
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Sergey Vasilenko (xenolog)
status: New → Confirmed
Mike Scherbakov (mihgen)
Changed in fuel:
milestone: 5.0 → 5.1
Revision history for this message
Sergey Vasilenko (xenolog) wrote :

in 5.0 we should increase memory allocation size in VB scripts for compute node.

in 5.1 we should make Puppet resources for managing Nova flavors and decrease compute nodes memory allocation back

Changed in fuel:
assignee: Sergey Vasilenko (xenolog) → nobody
Changed in fuel:
status: Confirmed → Fix Committed
status: Fix Committed → Confirmed
assignee: nobody → Fuel Library Team (fuel-library)
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Please elaborate the ticket state, was it fixed in astute?

Changed in fuel:
status: Confirmed → Incomplete
assignee: Fuel Library Team (fuel-library) → Vladimir Sharshov (vsharshov)
status: Incomplete → Confirmed
Changed in fuel:
milestone: 5.1 → 6.0
Revision history for this message
Vladimir Sharshov (vsharshov) wrote :

This tasks looks like pre/post deployment actions in case of 'remove'. I believe that i will be good to release this after we implement 'granular deployment' (~ 6.1) or using Nailgun plugins mechanizm (6.0). More update will be after implementation of Nailgun plugins

Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

Let's solve this bug finally and create m1.micro instance flavor with no disk. We don't need an astute trick. Let's just add this to nova class deployment.

Changed in fuel:
assignee: Vladimir Sharshov (vsharshov) → Matthew Mosesohn (raytrac3r)
Revision history for this message
Mike Scherbakov (mihgen) wrote :

Matt, are you working on it? If not, please assign to the fuel-library and we can find free hands for it.

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

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

Changed in fuel:
status: Confirmed → In Progress
Changed in fuel:
assignee: Matthew Mosesohn (raytrac3r) → Vladimir Kuklin (vkuklin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/136786
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=2502bc0bcc1fd8e13699f7268c50113a8028684e
Submitter: Jenkins
Branch: master

commit 2502bc0bcc1fd8e13699f7268c50113a8028684e
Author: Matthew Mosesohn <email address hidden>
Date: Mon Nov 24 18:08:14 2014 +0400

    Create m1.micro nova flavor

    m1.micro flavor contains 64MB RAM, 1vcpu, and no disk.

    This enables users to deploy Cirros VM on compute nodes with
    only 1GB memory for testing.

    Note that this is implemented with an exec because of the lack of
    nova flavor management in upstream puppet-nova, which will take
    several months before it has novaclient support.

    Change-Id: I827a14a96ecb3c1174b1e1a013f22bcb625afbfa
    Closes-Bug: #1318512

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

Other bug subscribers

Remote bug watches

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