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

Source: Internet
Author: User
Tags rabbitmq

This section analyzes the instance start operation in detail through a log file.

here is the flowchart for start instance

    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"

View Log/opt/stack/logs/n-api.log

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.

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

preparing the Virtual network card

preparing the XML file for instance

preparing the instance image file

successfully started



The Start operation analysis is here, and the next section continues to discuss other Nova operations.

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