To create a virtual machine, for example
1. Entrance setup.cfg project file
The nova-compute = nova.cmd.compute: main functions inlet Found
3.nova / api / openstack / compute / servers.py carried out in create rpc call (self, req, body) in
4. go nova / compute / api.py the create () method, where for example call self._create_instance ()
5. Enter nova / compute / api in _create_instance () method, which calls for rpc schedule_and_build_instance () method
6. Enter nova / conductor / api.py in schedule_and_build_instances () method, which calls for rpc schedule_and_build_instances () method
7. Enter nova / conductor / rpcapi.py in schedule_and_build_instances () method call using asynchronous rpc scheduler_and_build_instance () method
8. Jump according to scheduler_and_build_instance asynchronous nova / conductor / manager.py in scheduler_and_build_instance () method
9.nova / conductor / manager.py in scheduler_and_build_instance () method call rpc build_and_run_instance () method
10. Go nova / compute / rpcapi.py in build_and_run_instance () method, using asynchronous call rpc build_and_run_instance () method, thus ending the task conductor, subsequent tasks are performed by compute / manager.py
11. enter nova / compute / manager.py in build_and_run_instance () method to create virtual machines to perform actions