nova-scheduler does not honor max_instances_per_host set to a host aggregate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Undecided
|
vinay harsha mitta |
Bug Description
Description: nova-scheduler schedules more than max_instances_
Root cause: nova-scheduler has NumInstancesFilter which filters out hosts exceeding max_instances_
Workaround Fix: Changed the NumInstancesFilter to rely on len(host_
Steps to reproduce:
1. I created 3 heat autoscaling stacks, forced to create instances on 1 host aggregate.
2. Load the cpu on instances of each of these stacks, also set the cooldown value for autoscale to 30 secs(typically some low value so that the we force the race condition).
3. Once the num of instances crosses max_instances_
4. But sometimes(due to some race condition), stats in compute_node objects becomes {} and AggregateNumIns
5. I start seeing more then max_instances_
Expected result:
Hosts in Host aggregates having max_instances_
Actual Result:
Hosts in Host aggregates having max_instances_
Environment:
openstack nova version: Newton release
Hypervisor: Libvirt + KVM
Changed in nova: | |
assignee: | nobody → vinay harsha mitta (vinay7) |
You might be the person who I was talking with about this issue in IRC. I pushed a couple of debug patches to see if we can see the same thing in our CI testing, but I haven't dug into the logs yet:
https:/ /review. openstack. org/#/q/ status: open+branch: master+ topic:num- instances- filter