您的位置:首页 > 运维架构

OpenStack Nova 虚拟机创建流程分析

2017-05-27 11:32 435 查看

Nova 版本信息

[root@localhost ~]#  nova --version
8.0.0


基于源码分析创建虚拟机流程

+-----------------+
| Dashboard / CLI |
|        |        |
|   nova client   |
+--------|--------+
RESTful API
+--------|--------+
|    nova-api     |
+--------|--------+
RPC CAST
+--------------------|-------------------+
|              nova-conductor            |
|                    |                   |
|                  RPC CALL              |
|   +----------------|---------------+   |
|   |         nova-scheduler         |   |
|   |  host-manager filter hosts     |   |
|   |                |               |   |
|   |  host-manager weigh hosts      |   |
|   |                |               |   |
|   |  random-choice one target host |   |
|   +----------------|---------------+   |
| +------------------|-----------------+ |
| | DB create VM(building + scheduling)| |
| |           DB create RBD            | |
| +------------------|-----------------+ |
+--------------------|-------------------+
PRC CAST
+------------------------|------------------------+
|                   nova-compute                  |
|                        |                        |
|            DB update VM(building + None)        |
|     +------------------|------------------+     |
|     | DB update VM(building + networking) |     |
|     | neutron client: allocate network    |     |
|     +------------------|------------------+     |
| +----------------------|----------------------+ |
| |DB update VM(building + block_device_mapping)| |
| |cinder client:                               | |
| |    create volume from image                 | |
| |    check volume status                      | |
| |    attach volume                            | |
| +----------------------|----------------------+ |
|     +------------------|------------------+     |
|     | DB update VM(building + spawning)   |     |
|     |      compute-driver spawn VM        |     |
|     +------------------|------------------+     |
|                        |                        |
|           DB update VM(active + None)           |
+-------------------------------------------------+


源码详细分析,后面更新上来。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  openstack nova vm