650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691630050021757.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691630050021757.png "alt=" Image184.5.png "style=" border:0px;line-height:1.5; "/ >
This section analyzes the instance start operation in detail through a log file.
Here is the flowchart for start instance
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691240052090493.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691432646002227.jpg "alt=" Image180.png "style=" border:0px;font-family: ' Microsoft ya Black '; />
Send a request to NOVA-API
Nova-api sending messages
Nova-compute Performing actions
Let's discuss each step in detail below.
send a request to Nova-api
The customer (which can be an OpenStack end-user or other program) sends a request to the API (NOVA-API): "Start this Instance for me"
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691218277058850.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691432685011230.jpg "style=" border:0px;white-space:normal;float:none; "/>
View Log/opt/stack/logs/n-api.log
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691218434089818.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691432717056841.jpg "style=" border:0px;white-space:normal;float:none; "/>
Nova-api sending Messages
Nova-api sent a message to Messaging (RabbitMQ): "Start this Instance" to view the 2002 lines of source code/opt/stack/nova/nova/compute/api.py by start.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691218441094330.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691432768003278.jpg "style=" border:0px;white-space:normal;float:none; "/>
The function of Self.compute_rpcapi.start_instance () is to send a start instance message to the Nova-compute message queue on RabbitMQ.
Nova-compute Performing Actions
View Log/opt/stack/logs/n-cpu.log
start Start
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691218545030194.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691432802086779.jpg "style=" border:0px;white-space:normal;float:none; "/>
preparing the Virtual network card
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691218545077728.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691432836057305.jpg "style=" border:0px;white-space:normal;float:none; "/>
preparing the XML file for instance
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691218615008184.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691432873042858.jpg "style=" border:0px;white-space:normal;float:none; "/>
preparing the instance image file
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691218659043975.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691432905016940.jpg "style=" border:0px;white-space:normal;float:none; "/>
successfully started
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691218676083179.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691432940057785.jpg "style=" border:0px;white-space:normal;float:none; "/>
The Start operation analysis is here, and the next section continues to discuss other Nova operations.
650) this.width=650; "title=" "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160508-1462691432974048644.jpg "style=" Border:0px;vertical-align:middle;color:rgb ( 63,63,63); font-family: ' Microsoft Yahei '; Font-size:15px;line-height:21.75px;text-align:justify;background-color: RGB (246,246,246); "/>
Start Instance Operation Details-5 minutes a day to play OpenStack (31)