yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #83905
[Bug 1741810] Re: Filter AggregateImagePropertiesIsolation doesn't Work
We discussed this on IRC today [1]. In short, we realize that this was a
change in behaviour introduced in Liberty that should have been better
discussed at the time. However, Liberty was many years ago and it's
genuinely debatable whether this was ever intended behaviour, let alone
something we'd want to reintroduce support for.
Having discussed this, we're going to document this change in behaviour
in the docs and leave it there. If this (support for arbitrary image
metadata properties in this filter) is something you still see value in,
we'd probably have to treat it as a new feature. I'd encourage you to
file a spec [2] so we can evaluate the idea. If not, hopefully the
documentation change helps clarify things.
[1] http://eavesdrop.openstack.org/irclogs/%23openstack-nova/%23openstack-nova.2020-09-16.log.html#t2020-09-16T13:18:37
[2] https://specs.openstack.org/openstack/nova-specs/readme.html
** Changed in: nova
Status: New => Won't Fix
--
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):
Won't Fix
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