Terminate Instance Operation Details-5 minutes a day to play OpenStack (33)

Source: Internet
Author: User

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; "/>

    1. Send a request to NOVA-API

    2. Nova-api sending messages

    3. 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.