"Turn" Openstack Grizzly specifies compute node Creation instance

Source: Internet
Author: User

Disclaimer: This document is only used for learning and communication purposes and should not be used for any other commercial purpose

Author: Chaoyang _tony

Email: [Email protected]

June 4, 2013 9:37:44 Tuesday

Reprint Please specify source:http://blog.csdn.net/linzhaolove



Sometimes we have a few compute node, and OpenStack defaults to create a balance, but there is a instance we want to create a particular compute node, what should we do?


1. View attached nodes

Check out which compute node we've hooked up, such as I've successfully hooked up node-1;node-0 is my controller node and my compute node;

# Nova-manage Service List
Binary Host Zone Status State updated_at
Nova-conductor node-0 Internal enabled:-) 2013-06-04 01:19:01
Nova-console node-0 Internal enabled:-) 2013-06-04 01:19:00
Nova-consoleauth node-0 Internal enabled:-) 2013-06-04 01:19:00
Nova-scheduler node-0 Internal enabled:-) 2013-06-04 01:19:03
Nova-cert node-0 Internal enabled:-) 2013-06-04 01:19:00
Nova-compute node-0 Nova enabled:-) 2013-06-04 01:18:55
Nova-computenode-1Nova enabled:-) 2013-05-28 03:31:39


2. See what image you have
# Nova Image-list
+--------------------------------------+--------------+--------+--------+
| ID | Name | Status | Server |
+--------------------------------------+--------------+--------+--------+
| fe64ff58-5a0d-48e0-972d-0f8455d28f1e |Fedora|        ACTIVE | |
+--------------------------------------+--------------+--------+--------+

I have an image of Fedora 17, which is downloaded on the Internet;
3. Specify compute node to create instance

$> Nova Help Boot

Using the above command, we found that there is such--availability-zone <availability-zone> the availability zone for instance placement. A parameter we pass it, we can know compute node;


For example:

$> Nova Boot--image Fedora--flavor 1 test1--availability-zone nova:node-1

We will create the Fedora image at the level of flavor 1, with the name Test1 created to the node-1 compute node;


4, verify where the actual start

# Nova Show Fd1
+-------------------------------------+----------------------------------------------------------+
| Property | Value |
+-------------------------------------+----------------------------------------------------------+
| Status | ACTIVE |
| Updated | 2013-06-03t12:20:45z |
| Os-ext-sts:task_state | None |
|Os-ext-srv-attr:host | node-1|


I have successfully created it in node-1;



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

"Turn" Openstack Grizzly specifies compute node Creation instance

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.