2019-12-25 01:39:03 |
tianxiang ai |
description |
Description
===========
When scheduling a vm to a reporting compute node,
update_available_resource will clear self.stats and update compute_nodes
table in db firstly, and update this table after calculating all
instances on this node. At this moment, the scheduler filter will pass
this node because there is no num_instances in compute_nodes.stats.
Steps to reproduce
==================
1,create a new az,there is noly one compute node in this az;
2,set max_instances_per_host = 100 on the compute node;
3,boot 100 vms to this az, the vms will be scheduled to the specified node;
4,set max_instances_per_host = 80 on this compute node;
5,boot some vms to this az once again.
Expected result
===============
boot vm fails and return no valid host error
Actual result
=============
some vms failed but some vms will be scheduled to the compute node successfully when the compute node is reporting available resources. |
Description
===========
When scheduling a vm to a reporting compute node,
update_available_resource will clear self.stats and update compute_nodes
table in db firstly, and update this table after calculating all
instances on this node. At this moment, the scheduler filter will pass
this node because there is no num_instances in compute_nodes.stats.
Steps to reproduce
==================
1,create a new az,there is noly one compute node in this az;
2,set max_instances_per_host = 100 on the compute node;
3,boot 100 vms to this az, the vms will be scheduled to the specified node;
4,boot some vms to this az once again.
Expected result
===============
boot vm fails and return no valid host error
Actual result
=============
some vms failed but some vms will be scheduled to the compute node successfully when the compute node is reporting available resources. |
|