代码追踪
首先我们给出函数的调用顺序图:
nova/api/openstack/compute/server.py: _action_reboot()
nova/compute/api.py: reboot()
nova/compute/api.py: _hard_reboot()
nova/compute/rpcapi.py: reboot_instance()
--> RPC调用
nova/compute/manager.py: reboot_instance()
nova/virt/libvirt/driver.py: reboot()
nova/virt/libvirt/driver.py: _hard_reboot()
nova/virt/libvirt/driver.py: _get_guest_xml()
nova/virt/libvirt/driver.py: _create_domain_and_network()
Last updated
Was this helpful?