Multi instance creation rescheduling fails due to a lack of alternates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Lee Yarwood |
Bug Description
Description
===========
When creating more than a single instance in the same request the filter scheduler will skip any host that has already been selected when attempting to find alternates. The lack of alternates will lead to instances not being rescheduled and entering an ERROR state if issues are encountered when spawning on their selected host.
For example, given a simple two node environment and a request to create 5 instances the following nested lists of selections is returned:
[
[Selection(
[Selection(
[Selection(
[Selection(
[Selection(
]
The above lists a single selection for each instance being created with no alternates present. Compare that to the following list from a request to create a single instance:
[
[Selection(
Selection(
]
Here we have two selections, the original selected host and an alternate. AFAICT the following conditional is at fault here as it currently checks if the potential alternate has been selected for any other instance within the request:
Steps to reproduce
==================
* Launch more than one instance in a single request using min_count/
* Ensure instances are unable to spawn on at least one compute host.
Expected result
===============
Instances that are unable to spawn on one compute host are rescheduled elsewhere.
Actual result
=============
Instances that are unable to spawn on one compute host are not rescheduled and end up in an ERROR state.
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://
master
2. Which hypervisor did you use?
(For example: Libvirt + KVM, Libvirt + XEN, Hyper-V, PowerKVM, ...)
What's the version of that?
Libvirt + KVM
2. Which storage type did you use?
(For example: Ceph, LVM, GPFS, ...)
What's the version of that?
N/A
3. Which networking type did you use?
(For example: nova-network, Neutron with OpenVSwitch, ...)
N/A
tags: | added: placement scheduler |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
status: | In Progress → Invalid |
Related fix proposed to branch: master /review. openstack. org/593073
Review: https:/