Bug 871822 - RAM value listed should be "memory.memtotal" fact
Summary: RAM value listed should be "memory.memtotal" fact
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Subscription Asset Manager
Classification: Retired
Component: katello
Version: 1.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jordan OMara
QA Contact: Tazim Kolhar
URL:
Whiteboard:
: 871911 (view as bug list)
Depends On:
Blocks: sam13-tracker 873443
TreeView+ depends on / blocked
 
Reported: 2012-10-31 13:24 UTC by Tom McKay
Modified: 2016-04-26 00:54 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 873443 (view as bug list)
Environment:
Last Closed: 2013-10-01 10:52:28 UTC
Embargoed:


Attachments (Terms of Use)
Mem_total value is set (57.79 KB, image/png)
2013-08-12 12:16 UTC, Tazim Kolhar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2013:1390 0 normal SHIPPED_LIVE Release 1.3 of Subscription Asset Manager 2013-10-01 14:43:14 UTC

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


Note You need to log in before you can comment on or make changes to this bug.