Bug 1193513

Summary: Wrong memory detection in the discovery ramdisk
Product: Red Hat OpenStack Reporter: Dmitry Tantsur <dtantsur>
Component: instack-undercloudAssignee: James Slagle <jslagle>
Status: CLOSED ERRATA QA Contact: Alexander Chuzhoy <sasha>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0 (Juno)CC: calfonso, mburns, rhel-osp-director-maint
Target Milestone: gaKeywords: TestOnly, Triaged
Target Release: Director   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-05 13:50:27 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:

Description Dmitry Tantsur 2015-02-17 13:55:43 UTC
Description of problem:
Discovery ramdisk detects _possible_ amount of RAM, not actual one. It was fixed in Git master by commit https://github.com/rdo-management/instack-undercloud/commit/9327553ecbbb7cc20bf32dd940bb32d02edb5b94 and in DIB ramdisk by patch https://review.openstack.org/#/c/156173/.

How reproducible:
on bare metal machines with RAM != maximum RAM

Steps to Reproduce:
1. go through discovery on such a machine
2. Node.extra[memory_mb] in Ironic will be updated with wrong value

Comment 3 Dmitry Tantsur 2015-02-20 14:23:38 UTC
Fixed in stable/juno branch of instack-undercloud as commit https://github.com/rdo-management/instack-undercloud/commit/02853ff37851736d0aecdda3d30afe94db35b782

Comment 6 Alexander Chuzhoy 2015-06-18 14:58:04 UTC
Verified:

Environment:
openstack-ironic-common-2015.1.0-4.el7ost.noarch
openstack-ironic-discoverd-1.1.0-3.el7ost.noarch
python-ironic-discoverd-1.1.0-3.el7ost.noarch
python-ironicclient-0.5.1-5.el7ost.noarch
openstack-ironic-conductor-2015.1.0-4.el7ost.noarch
openstack-ironic-api-2015.1.0-4.el7ost.noarch
instack-undercloud-2.1.2-1.el7ost.noarch


The machine has 48GB of ram.
After the discovery, running "ironic node-show <id>":
{u'memory_mb': u'49152'

Comment 8 errata-xmlrpc 2015-08-05 13:50:27 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://access.redhat.com/errata/RHEA-2015:1549