650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039685865070802.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039864956011499.jpg "style=" border:0px;float:none; "/>
This section analyzes Nova Terminate operations in detail through logs.
Terminate operation is to delete instance, the following is the flowchart of Terminate instance
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039685764071455.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039865145016017.jpg "style=" border:0px;white-space:normal;float:none; "/>
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 another program) sends a request to the API (NOVA-API): "Remove this Instance for me"
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039685572093229.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039865388095849.jpg "style=" border:0px;white-space:normal;float:none; "/>
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039685828007984.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039865472023927.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-20160512-1463039685902096431.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039865555039219.jpg "style=" border:0px;font-family: ' Microsoft ya black '; white-space:normal; Float:none; "/>
Nova-api sending Messages
Nova-api sent a message to Messaging (RabbitMQ): "Delete this Instance" source code in/opt/stack/nova/nova/compute/api.py, by _do_force_delete.
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039686033047560.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039865657044749.jpg "style=" border:0px;white-space:normal;float:none; "/>
Nova-compute Performing Actions
View Log/opt/stack/logs/n-cpu.log
Close instance
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039686027072675.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039865862084812.jpg "style=" border:0px;white-space:normal;float:none; "/>
Delete a instance image file
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039686081060373.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039866022032381.jpg "style=" border:0px;white-space:normal;float:none; "/>
Freeing other resources such as virtual networks
650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039686177096283.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039866218002906.jpg "style=" border:0px;white-space:normal;float:none; "/>
The above is a detailed analysis of terminate, the next section we continue to analyze pause/resume operations.
650) this.width=650; "title=" "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160512-1463039866309045554.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;white-space: Normal;background-color:rgb (246,246,246); "/>
Terminate Instance Operation Details-5 minutes a day to play OpenStack (33)