openstack nova create a virtual machine process

1 document nova.api.openstack.coumpute.servers
a function def create (Self, REQ, body):
a call (instances, resv_id) = self.compute_api.create (context,
2 file nova.compute.api
2 function def create (Self, context, INSTANCE_TYPE,
2 self._create_instance call return (
. 3 files nova.compute.api
. 3 _create_instance function DEF (Self, context, INSTANCE_TYPE,
. 3 calls self.compute_task_api.build_instances (context,
. 4 file nova.conductor.manager
. 4 build_instances function DEF (Self, context, instances, Image, filter_properties,
5 = self.scheduler_client.select_destinations calls hosts (context,
6 call self.compute_rpcapi.build_and_run_instance (context,
5 file nova.scheduler.manager
5 select_destinations function DEF (Self, context, request_spec, filter_properties):
5 = self.driver.select_destinations call Dests (context, request_spec,
5 nova.scheduler.filter_scheduler file
5 select_destinations function DEF (Self, context, request_spec, filter_properties):
. 6 file nova.compute.api.manager
6 build_and_run_instance function DEF (Self, context, instance, Image, request_spec,
6 call self._do_build_and_run_instance (* args, ** kwargs)
7 file nova.compute.api.manager
7 function def _do_build_and_run_instance ( Self, context, instance, Image,
7 call _build_and_run_instance
----------------
Disclaimer: This article is the original article CSDN bloggers "cakincqm", following copyright CC 4.0 BY-SA agreement, reproduced, please attach the original source link and this statement.
original link: https: //blog.csdn.net/chengqiuming/article/details/79719906

Guess you like

Origin www.cnblogs.com/wangjq19920210/p/11815623.html