RAM usage in Exosphere is inconsistent with Horizon
Problem/Opportunity Statement
The RAM usage and total quota displayed in the Instance overview page does not match the RAM usage/total in Horizon. Take TRA230023 as an example.
The convention in the world of RAM is that 1 MB = 1 mibibyte = 2^20 bytes (not megabytes, or 10^6 bytes). This means the RAM reporting from Openstack (displayed as MB) is actually in mibibytes , rather than megabytes. Horizon converts this value to GB (1 GB = 1 gibibyte = 2^30 bytes) by dividing by 1024, while it appears that Exosphere just divides by 1000.
Fun fact, this means the units of RAM currently shown in Exosphere are neither gigabytes or gibibytes, but 'thousands of mibibytes'.
What would success / a fix look like?
By dividing by 1024 the usage and total quota of RAM displayed in Exosphere will match the display in Horizon.