Bug 871822

Summary: RAM value listed should be "memory.memtotal" fact
Product: [Retired] Subscription Asset Manager Reporter: Tom McKay <tomckay>
Component: katelloAssignee: Jordan OMara <jomara>
Status: CLOSED ERRATA QA Contact: Tazim Kolhar <tkolhar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.3CC: athomas, cwelton, jweiss, mstead, sthirugn, tkolhar
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 873443 (view as bug list) Environment:
Last Closed: 2013-10-01 10:52:28 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:
Bug Depends On:    
Bug Blocks: 833466, 873443    
Attachments:
Description Flags
Mem_total value is set none

Description Tom McKay 2012-10-31 13:24:01 UTC
Instead of "dmi.memory.size" the fact "memory.memtotal" should be displayed since that is what candlepin uses for subscriptions. (The dmi fact also won't be available on all arch such as s390, ppc, and ia64.)

Display to the user should be converted to MB rather than the full integer.

Comment 2 Michael Stead 2012-10-31 13:37:05 UTC
subscription-manager actually converts the 'memory.memtotal' value to GB before comparing it to the subscription's 'ram' attribute value (which is specified in GB). Candlepin will have to do the same.

Perhaps katello could display the same calculated value?

This is how subscription-manager does the conversion (python):
ram_gb = int(round(memory_memtotal / 1024.0 / 1024.0))

Comment 3 Jordan OMara 2012-10-31 19:57:31 UTC
*** Bug 871911 has been marked as a duplicate of this bug. ***

Comment 4 Jordan OMara 2012-11-05 21:18:21 UTC
https://github.com/Katello/katello/pull/970

Comment 5 Bryan Kearney 2013-06-07 18:19:30 UTC
Moving all POST bugs to ON_QA since we have delivered a puddle with the bugs.

Comment 6 Tazim Kolhar 2013-08-12 12:16:44 UTC
Created attachment 785667 [details]
Mem_total value is set

VERIFIED :

# rpm -qa | grep katello
katello-selinux-1.4.4-2.el6sat.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-certs-tools-1.4.2-2.el6sat.noarch
katello-cli-common-1.4.3-5.el6sat.noarch
katello-cli-1.4.3-5.el6sat.noarch
katello-common-1.4.3-6.el6sam_splice.noarch
katello-configure-1.4.4-2.el6sat.noarch
katello-glue-elasticsearch-1.4.3-6.el6sam_splice.noarch
katello-headpin-all-1.4.3-6.el6sam_splice.noarch
katello-glue-candlepin-1.4.3-6.el6sam_splice.noarch
signo-katello-0.0.10-2.el6sat.noarch
katello-headpin-1.4.3-6.el6sam_splice.noarch

Comment 8 errata-xmlrpc 2013-10-01 10:52:28 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.

http://rhn.redhat.com/errata/RHEA-2013-1390.html