Filter AggregateImagePropertiesIsolation doesn't Work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Description
===========
I tried to use filter AggregateImageP
I think nova scheduler in pike release, filter AggregateImageP
Steps to reproduce
==================
# add filter to nova.conf and restart nova scheduler
[filter_scheduler]
enabled_filters = AggregateImageP
# 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-
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
python-
openstack-
openstack-
python2-
2. hypervisor
(nova-libvirt)
qemu-kvm-
libvirt-
qemu-kvm-
2. Storage
ceph version 12.2.1 (3e7492b9ada8bd
3. Networking
Neutron with OpenVSwitch
Logs & Configs
==============
$ tail -f nova-scheduler.log | grep AggregateImageP
2018-01-08 11:52:53.964 6 DEBUG nova.filters [req-3828686f-
# add filter to nova.conf and restart nova scheduler
[filter_scheduler]
enabled_filters = AggregateImageP
Changed in nova: | |
status: | Expired → Confirmed |
status: | Confirmed → New |
You should set the following parameters in nova configuration file (nova.conf).
(They are in 'filter_scheduler' section.)
* aggregate_ image_propertie s_isolation_ namespace image_propertie s_isolation_ separator
* aggregate_