声明:此文档仅仅做学习交流使用,请勿用作其它商业用途

作者:朝阳_tony

邮箱:linzhaolover@gmail.com

2013年6月4日9:37:44 星期二

转载请注明出处:http://blog.csdn.net/linzhaolove

有时我们有几个 compute node 。openstack默认是进行平衡创建,但有是我们想将某个instance 特定创建在某个compute node ,我们该如何做呢?

1、查看挂接的节点

查看一下我们挂接了哪些compute node,如我已经成功挂接了node-1;node-0是我的controller节点,也是我的计算节点;

# 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-compute      node-1                          nova             enabled     :-)   2013-05-28 03:31:39

2、查看有哪些image


# nova image-list

+--------------------------------------+--------------+--------+--------+

| ID                                   | Name         | Status | Server |

+--------------------------------------+--------------+--------+--------+
| fe64ff58-5a0d-48e0-972d-0f8455d28f1e | fedora       | ACTIVE |        |

+--------------------------------------+--------------+--------+--------+

我有一个fedora 17 的image。是在网上下载的;

3、指定compute node 创建instance

$> nova help boot

採用上面命令。我们发现有这样 --availability-zone <availability-zone>             The availability zone for instance placement. 一个參数我们通过它,就能够知道compute node;

比如:

$>  nova boot --image fedora  --flavor 1  test1  --availability-zone nova:node-1

我们将fedora这个image 创建级别为flavor 1  , 名字为 test1    创建到node-1 这个计算节点上;

4、验证一下实际启动在哪

# 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    
                                        |

我已经成功创建在node-1了;

《转》 Openstack Grizzly 指定 compute node 创建 instance的更多相关文章

  1. openstack 用nova API 指定 compute node 创建 instance

    感谢朋友支持本博客,欢迎共同探讨交流,因为能力和时间有限,错误之处在所难免,欢迎指正! 假设转载,请保留作者信息. 博客地址:http://blog.csdn.net/qq_21398167 原博文地 ...

  2. Openstack组件部署 — Nova_Install and configure a compute node

    目录 目录 前文列表 Prerequisites 先决条件 Install and configure a compute node Install the packages Edit the etc ...

  3. Icehouse 创建Instance代码分析

    1. nova-api接收到request 在/etc/nova/api-paste.ini中,是这样配置nova v2的 [app:osapi_compute_app_v2] paste.app_f ...

  4. OpenStack Grizzly详细安装指导

    一.环境介绍: 控制节点 eth0 (10.10.10.51), eth1 (192.168.100.51) 网络节点 eth0 (10.10.10.52), eth1 (10.20.20.52), ...

  5. OpenStack 虚机网卡的创建过程

    原文链接:https://www.cnblogs.com/potato-chip/p/9127083.html OpenStack虚机网卡的创建过程 OpenStack最基本和常用的操作就是启动虚机. ...

  6. OpenStack虚机网卡的创建过程

    OpenStack虚机网卡的创建过程 OpenStack最基本和常用的操作就是启动虚机.虚机启动的过程中涉及很多内容,其中非常重要的一个环节就是创建并绑定虚机的虚拟网卡.虚机的创建和管理是Nova的任 ...

  7. openstack setup demo Compute service

    本文包含以下部分 Compute service overview Install and configure controller node Prerequisites Install and co ...

  8. [原][openstack-pike][compute node][issue-1]openstack-nova-compute.service holdoff time over, scheduling restart.

    在安装pike  compute node节点的时候遇到启动nova-compute失败,问题如下(注意红色字体): [root@compute1 nova]# systemctl start ope ...

  9. Kubernetes集群向指定节点上创建容器

    如果需要限制Pod到指定的Node上运行,则可以给Node打标签并给Pod配置NodeSelector. 给节点添加标签 首先查看节点信息 [root@k8s-master ~]# kubectl g ...

随机推荐

  1. WPF4多点触摸事件

    原文 WPF4多点触摸事件 UIElement在WPF4下添加了很多支持多点触摸的事件,通过它们可以在硬件支持的情况下处理多点触摸,以下通过代码来说明通过处理这些事件,我们可以做些什么: 一.触摸相关 ...

  2. mysql启动的四种方式

    mysql的四种启动方式: .mysqld 启动mysql服务器:./mysqld --defaults-file=/etc/my.cnf --user=root 客户端连接: mysql --def ...

  3. linux下的软件包安装

    linux下安装软件包有两种方法:源文件编译安装(source)和 rpm 安装. 1.源文件包安装的通用方法. 一般安装源代码的程序你得要看它的README,一般在它的目录下都有的. 01.配置: ...

  4. ESRI Shapefiles (SHP)

    ESRI Shapefiles (SHP) Also known as ESRI ArcView Shapefiles or ESRI Shapefiles. ESRI is the company ...

  5. Android Camera系列开发 (二)通过Intent录制视频

    Android Camera系列开发 (二)通过Intent录制视频 作者:雨水  2013-8-18 CSDN博客:http://blog.csdn.net/gobitan/ 概述 使用Camera ...

  6. UVA 718 - Skyscraper Floors(数论)

    UVA 718 - Skyscraper Floors 题目链接 题意:在一个f层高的楼上,有e个电梯,每一个电梯有x,y表示y + k * x层都能够到,如今要问从a层是否能到达b层(中间怎么换乘电 ...

  7. PHP - 子类使用父类的构造函数

    /* * 子类使用父类中的构造方法. */ //父类方法 class Person { //父类中的构造方法 function __construct(){ echo '这是父类中的构造方法!'; } ...

  8. PHP - 点击更换头像

    原理: 操作流程: 首先点击头像图片,弹出选择窗口,选中其中一个则窗口推出头像更换. 效果: 主页面代码: <tr> <td>头像:</td> <td> ...

  9. Eclipse用法和技巧二十三:查看JDK源码

    使用java开发,如果能阅读JDK的经典代码,对自己的水平提高是很有帮助的.笔者在实际工作中总结了两种阅读JDK源码的方式.第一种下载android源代码,直接在android源码代码中,这里的代码虽 ...

  10. 在 Visual Studio 调试器中指定符号 (.pdb) 和源文件

    查找并指定符号文件和源文件:指定符号加载行为.使用符号和源服务器上:加载符号自动或在要求.   内容 查找符号 (.pdb) 文件 查找源文件   查找符号 (.pdb) 文件 说明 在之前的 Vis ...