← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1741810] Re: Filter AggregateImagePropertiesIsolation doesn't Work

 

** Changed in: nova
       Status: Expired => Confirmed

** Changed in: nova
       Status: Confirmed => New

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

Title:
  Filter AggregateImagePropertiesIsolation doesn't Work

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========
  I tried to use filter AggregateImagePropertiesIsolation to isolate Windows instance for reducing number of Windows Licenses.

  I think nova scheduler in pike release, filter
  AggregateImagePropertiesIsolation always returned all hosts. If this
  is a bug, filter AggregateImagePropertiesIsolation needs to be fixed.

  
  Steps to reproduce
  ==================
  # add filter to nova.conf and restart nova scheduler
  [filter_scheduler]
  enabled_filters = AggregateImagePropertiesIsolation,RetryFilter,AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter

  # image create with os property
  openstack image create --min-disk 3 --min-ram 512 --disk-format qcow2 --public --file windows.img img_windows
  openstack image create --min-disk 1 --min-ram 64 --disk-format qcow2 --public --file cirros-0.3.5-x86_64-disk.img img_linux
  openstack image set --property os=windows img_windows
  openstack image set --property os=linux img_linux

  # host aggregate create with os property
  openstack aggregate create os_win
  openstack aggregate add host os_win compute01
  openstack aggregate add host os_win compute02
  openstack aggregate set --property os=windows os_win
   
  openstack aggregate create os_linux
  openstack aggregate add host os_linux compute03
  openstack aggregate add host os_linux compute04
  openstack aggregate add host os_linux compute05
  openstack aggregate set --property os=linux os_linux

  # create flavor
  openstack flavor create --ram 1024 --disk 1 --vcpus 1 --public small
  openstack flavor create --ram 4096 --disk 20 --vcpus 2 --public medium

  # create windows instances
  openstack server create --image img_windows --network test-net --flavor medium --max 10 test-win

  
  Expected result
  ===============
  Windows instances can be found in compute01, compute02 only

  Actual result
  =============
  Windows instance was found in every hosts.


  Environment
  ===========
  1. Nova's version
  (nova-scheduler)[nova@control01 /]$ rpm -qa | grep nova
  python-nova-17.0.0-0.20171206190932.cbdc893.el7.centos.noarch
  openstack-nova-scheduler-17.0.0-0.20171206190932.cbdc893.el7.centos.noarch
  openstack-nova-common-17.0.0-0.20171206190932.cbdc893.el7.centos.noarch
  python2-novaclient-9.1.0-0.20170804194758.0a53d19.el7.centos.noarch

  2. hypervisor
  (nova-libvirt)[root@compute01 /]# rpm -qa | grep kvm
  qemu-kvm-common-ev-2.9.0-16.el7_4.11.1.x86_64
  libvirt-daemon-kvm-3.2.0-14.el7_4.5.x86_64
  qemu-kvm-ev-2.9.0-16.el7_4.11.1.x86_64

  2. Storage
  ceph version 12.2.1 (3e7492b9ada8bdc9a5cd0feafd42fbca27f9c38e) luminous (stable)

  3. Networking
  Neutron with OpenVSwitch

  
  Logs & Configs
  ==============
  $ tail -f nova-scheduler.log | grep AggregateImagePropertiesIsolation
  2018-01-08 11:52:53.964 6 DEBUG nova.filters [req-3828686f-1d46-407a-bebb-14f7a573c52e 9b1f4f0bcea2428c93b8b4276ba67cb7 188be4011b2b49529cbdd6eade152233 - default default] Filter AggregateImagePropertiesIsolation returned 5 host(s) get_filtered_objects /usr/lib/python2.7/site-packages/nova/filters.py:104

  # add filter to nova.conf and restart nova scheduler
  [filter_scheduler]
  enabled_filters = AggregateImagePropertiesIsolation,RetryFilter,AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter

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


References