Activity log for bug #1857448

Date Who What changed Old value New value Message
2019-12-24 12:06:33 tianxiang ai bug added bug
2019-12-24 12:07:37 tianxiang ai nova: status New In Progress
2019-12-24 12:07:44 tianxiang ai nova: assignee tianxiang ai (aitianxiang)
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.
2019-12-25 03:07:13 tianxiang ai summary Schedule a vm to a reporting compute node Scheduler a vm to a reporting compute node
2019-12-25 03:20:58 tianxiang ai summary Scheduler a vm to a reporting compute node Scheduling a vm to a reporting compute node cause the number of vms in the compute node exceed the limit
2020-01-02 15:59:58 sean mooney nova: importance Undecided Medium