← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1469749] [NEW] RamFilter logging partially considers ram-allocation-ratio

 

Public bug reported:

Package: nova-scheduler
Version: 1:2014.1.4-0ubuntu2.1

RamFilter accurately skips a host because RAM resource is not enough for
requested VM. However, I think log should be more explicit on numbers,
taking into account ram-allocation-ratio can be different from 1.0.

Log excerpt:
2015-06-29 12:04:21.422 15708 DEBUG nova.scheduler.filters.ram_filter [req-d14d9f04-c2b1-42be-b5b9-669318bb0030 3cca8ee6898e42f287adbd4f5dac1801 a0ae7f82f577413ab0d73f3dc09fb906] (hostname, hostname.tld) ram:10148 disk:264192 io_ops:0 instances:39 does not have 2048 MB usable ram, it only has 480.4 MB usable ram. host_passes /usr/lib/python2.7/dist-packages/nova/scheduler/filters/ram_filter.py:60

On log above, RAM says 10148 (MB), which seems enough for a 2048MB VM.
First number (10148) is calculated as: TotalMB - UsedMB. Additional
(real) number should be: TotalMB * RamAllocRatio - UsedMB.

In this case, ram-allocatioin-ratio is 0.9, which results in 480.4MB.

Please let me know if you'd need more details.

Cheers,
-Alvaro.

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: canonical-bootstack

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1469749

Title:
  RamFilter logging partially considers ram-allocation-ratio

Status in OpenStack Compute (Nova):
  New

Bug description:
  Package: nova-scheduler
  Version: 1:2014.1.4-0ubuntu2.1

  RamFilter accurately skips a host because RAM resource is not enough
  for requested VM. However, I think log should be more explicit on
  numbers, taking into account ram-allocation-ratio can be different
  from 1.0.

  Log excerpt:
  2015-06-29 12:04:21.422 15708 DEBUG nova.scheduler.filters.ram_filter [req-d14d9f04-c2b1-42be-b5b9-669318bb0030 3cca8ee6898e42f287adbd4f5dac1801 a0ae7f82f577413ab0d73f3dc09fb906] (hostname, hostname.tld) ram:10148 disk:264192 io_ops:0 instances:39 does not have 2048 MB usable ram, it only has 480.4 MB usable ram. host_passes /usr/lib/python2.7/dist-packages/nova/scheduler/filters/ram_filter.py:60

  On log above, RAM says 10148 (MB), which seems enough for a 2048MB VM.
  First number (10148) is calculated as: TotalMB - UsedMB. Additional
  (real) number should be: TotalMB * RamAllocRatio - UsedMB.

  In this case, ram-allocatioin-ratio is 0.9, which results in 480.4MB.

  Please let me know if you'd need more details.

  Cheers,
  -Alvaro.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1469749/+subscriptions


Follow ups

References