where the scheduling is done

asked 2015-12-05 23:43:24 -0500

mehdi-alisoltani-u gravatar image

Hi dear nova developer

I am reviewing nova code, and I face to confusing point in /nova/compute/api.py . In the comment of method create https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1528 (https://github.com/openstack/nova/blo...) mentioned """Provision instances, sending instance information to the scheduler. The scheduler will determine where the instance(s) go and will handle creating the DB entries. Returns a tuple of (instances, reservation_id) """ “the scheduler will determine where ...”and also in create_instance https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1124 (https://github.com/openstack/nova/blo...)

"""Verify all the input parameters regardless of the provisioning strategy being performed and schedule the instance(s) for creation. """ “schedule the instances” this is confusing for me. As I know compute node is chosen after scheduler determine by which host an instance should run. Whereas this part of code is run by compute node.

edit retag flag offensive close merge delete