Public bug reported: Description ===========
when i boot a vm with a flavor extra_specs is empty. vm will boot on aggregate host . in my openstack environment, i have 3 nova-compute(compute01,compute02,compute03). Add i create a host aggregate in nova zone with metadata "ssd=true". i put compute01 in this aggregate. leave compute02 compute03 in nova zone with out any aggregate set. when i boot vm with flavor aggregate_instance_extra_specs:ssd=true vm can boot on compute01 but when i boot vm with flavor extra_specs is empty ,it also can boot on compute01. when i see nova-scheduler log it debug info is aggregate intance extra filter return 3 available host . but i expect vm can only boot on "compute02,compute03". as we all know aggregate is used to tag host with some features like SSD and so on. if other vm without aggregate metadata can boot on aggregate host ,i think this is a bug. so i think we can change this scheduler filter code to "vm with flavor extra_specs is empty should not be booted on aggregate host" Expected result =============== the vm will only be booted on compute02 or compute03 Actual result ============= the vm be booted on compute01 . Environment =========== Mitaka openstack release code and 3 nova-compute host(compute01,compute02,compute03) . and set compute01 a aggregate SSD with metata (ssd=true) Logs & Configs ============== 2016-10-14 17:17:03.143 14215 DEBUG nova.filters [req-e847975e-afe6 -463a-856e-a76e70252de0 193476835b5e4598a703878ed321ca5e ab68910b5767441887a08b48d38efc96 - - -] Filter AggregateInstanceExtraSpecsFilter returned 3 host(s) get_filtered_objects /usr/lib/python2.7/site- packages/nova/filters.py:104 ** Affects: nova Importance: Undecided Status: 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/1634032 Title: vm will boot on aggregate host Status in OpenStack Compute (nova): New Bug description: Description =========== when i boot a vm with a flavor extra_specs is empty. vm will boot on aggregate host . in my openstack environment, i have 3 nova-compute(compute01,compute02,compute03). Add i create a host aggregate in nova zone with metadata "ssd=true". i put compute01 in this aggregate. leave compute02 compute03 in nova zone with out any aggregate set. when i boot vm with flavor aggregate_instance_extra_specs:ssd=true vm can boot on compute01 but when i boot vm with flavor extra_specs is empty ,it also can boot on compute01. when i see nova-scheduler log it debug info is aggregate intance extra filter return 3 available host . but i expect vm can only boot on "compute02,compute03". as we all know aggregate is used to tag host with some features like SSD and so on. if other vm without aggregate metadata can boot on aggregate host ,i think this is a bug. so i think we can change this scheduler filter code to "vm with flavor extra_specs is empty should not be booted on aggregate host" Expected result =============== the vm will only be booted on compute02 or compute03 Actual result ============= the vm be booted on compute01 . Environment =========== Mitaka openstack release code and 3 nova-compute host(compute01,compute02,compute03) . and set compute01 a aggregate SSD with metata (ssd=true) Logs & Configs ============== 2016-10-14 17:17:03.143 14215 DEBUG nova.filters [req-e847975e-afe6 -463a-856e-a76e70252de0 193476835b5e4598a703878ed321ca5e ab68910b5767441887a08b48d38efc96 - - -] Filter AggregateInstanceExtraSpecsFilter returned 3 host(s) get_filtered_objects /usr/lib/python2.7/site- packages/nova/filters.py:104 To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1634032/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp