← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1239009] Re: scheduler filter disk_filter doesn't take swap into account

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
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/1239009

Title:
  scheduler filter disk_filter doesn't take swap into account

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  from nova/scheduler/filters/disk_filter.py

      def host_passes(self, host_state, filter_properties):
          """Filter based on disk usage."""
          instance_type = filter_properties.get('instance_type')
          requested_disk = 1024 * (instance_type['root_gb'] +
                                   instance_type['ephemeral_gb'])

  
  This should take into account swap, which is stored in MB, as well.

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