Start Instance Operation Details-5 minutes a day to play OpenStack (31)

Source: Internet
Author: User
Tags rabbitmq

650) this.width=650; "Title=" Upload-ueditor-image-20160508-1462691630050021757.png "src=" 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=" Upload-ueditor-image-20160508-1462691240052090493.png "src=" Upload-ueditor-image-20160508-1462691432646002227.jpg "alt=" Image180.png "style=" border:0px;font-family: ' Microsoft ya Black '; />

    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 other program) sends a request to the API (NOVA-API): "Start this Instance for me"

650) this.width=650; "Title=" Upload-ueditor-image-20160508-1462691218277058850.png "src=" 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=" Upload-ueditor-image-20160508-1462691218434089818.png "src=" 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/ by start.

650) this.width=650; "Title=" Upload-ueditor-image-20160508-1462691218441094330.png "src=" 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=" Upload-ueditor-image-20160508-1462691218545030194.png "src=" Upload-ueditor-image-20160508-1462691432802086779.jpg "style=" border:0px;white-space:normal;float:none; "/>

preparing the Virtual network card

650) this.width=650; "Title=" Upload-ueditor-image-20160508-1462691218545077728.png "src=" 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=" Upload-ueditor-image-20160508-1462691218615008184.png "src=" Upload-ueditor-image-20160508-1462691432873042858.jpg "style=" border:0px;white-space:normal;float:none; "/>

preparing the instance image file

650) this.width=650; "Title=" Upload-ueditor-image-20160508-1462691218659043975.png "src=" Upload-ueditor-image-20160508-1462691432905016940.jpg "style=" border:0px;white-space:normal;float:none; "/>

successfully started

650) this.width=650; "Title=" Upload-ueditor-image-20160508-1462691218676083179.png "src=" 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=" 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)

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: 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.