在每个target host上执行以下操作:

  • Naming target hosts.
  • Install the operating system.
  • Generate and set up security measures.
  • Update the operating system and install additional software packages.
  • Create LVM volume groups.
  • Configure networking devices.

Deployment host到taget host无密码登陆:

  1. Copy Deployment hospublic keytaget /root/.ssh/authorized_keys
  2.  
  3. ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.2.22

Configuring the operating system

kernel版本为3.13.0-34-generic or later 

  1. $ uname -a
  2. Linux rpc- 3.13.--generic #-Ubuntu SMP Tue Mar :: UTC x86_64 x86_64 x86_64 GNU/Linux
  1. # apt-get install bridge-utils debootstrap ifenslave ifenslave-2.6 \
  2. lsof lvm2 ntp ntpdate openssh-server sudo tcpdump vlan

加入kernel 模块到/etc/modules来enable VLAN和接口bond

  1. # echo 'bonding' >> /etc/modules
  2. # echo '8021q' >> /etc/modules

Configure NTP

Reboot the host to activate the changes

Configuring LVM

Cinder节点上要一个cinder-volumes VGmetadata size必须是 2048

  1. pvcreate --metadatasize /dev/vdb
  2. vgcreate cinder-volumes /dev/vdb
  1.  

Configuring the network

target hosts上的网络必须手动配置因为它们随环境不同而变化很大。

target hosts contains the following components:

可以配置bond:

Bond1 (eth0/2) static IP address 作为管理网络

Bond2 (eth1/3) without an IP address

Bond0 interface and br-mgmt bridge with a static IP address.

bond1 interface and br-vxlan bridge with a static IP address.

VLAN br-vlan bridge on the bond1 interface without an IP

the bond0 interface and br-storage bridge with a static IP address.

  • VLANs:
    • Host management: Untagged/Native
    • Container management: 10
    • Tunnels: 30
    • Storage: 20

Networks:

    • Host management: 10.240.0.0/22
    • Container management: 172.29.236.0/22
    • Tunnel: 172.29.240.0/22
    • Storage: 172.29.244.0/22

Addresses:

    • Host management: 10.240.0.11
    • Host management gateway: 10.240.0.1
    • DNS servers: 69.20.0.164 69.20.0.196
    • Container management: 172.29.236.11
    • Tunnel: 172.29.240.11
    • Storage: 172.29.244.11

控制节点的网络图

计算节点网络图:

存储节点网络图:

配置taget上的 /etc/network/interfaces文件如下:

  1. # This file describes the network interfaces available on your system
  2. # and how to activate them. For more information, see interfaces().
  3.  
  4. # The loopback network interface
  5. auto lo
  6. iface lo inet loopback
  7.  
  8. # Source interfaces
  9. # Please check /etc/network/interfaces.d before changing this file
  10. # as interfaces may have been defined in /etc/network/interfaces.d
  11. # NOTE: the primary ethernet device is defined in
  12. # /etc/network/interfaces.d/eth0
  13. # See LP: #
  14. source /etc/network/interfaces.d/*.cfg
  15.  
  16. # Physical interface 1
  17. auto eth1
  18. iface eth1 inet manual
  19. bond-master bond0
  20. bond-primary eth1
  21.  
  22. # Physical interface 2
  23. auto eth2
  24. iface eth2 inet manual
  25. bond-master bond1
  26. bond-primary eth2
  27.  
  28. # Physical interface 3
  29. auto eth3
  30. iface eth3 inet manual
  31. bond-master bond0
  32.  
  33. # Physical interface 4
  34. auto eth4
  35. iface eth4 inet manual
  36. bond-master bond1
  37.  
  38. # Bond interface 0 (physical interfaces 1 and 3)
  39. auto bond0
  40. iface bond0 inet static
  41. bond-slaves eth1 eth3
  42. bond-mode active-backup
  43. bond-miimon 100
  44. bond-downdelay 200
  45. bond-updelay 200
  46. address 192.168.2.112
  47. netmask 255.255.255.0
  48. gateway 192.168.2.1
  49. dns-nameservers 69.20.0.164 69.20.0.196
  50.  
  51. # Bond interface 1 (physical interfaces 2 and 4)
  52. auto bond1
  53. iface bond1 inet manual
  54. bond-slaves eth2 eth4
  55. bond-mode active-backup
  56. bond-miimon 100
  57. bond-downdelay 250
  58. bond-updelay 250
  59.  
  60. # Container management VLAN interface
  61. iface bond0.10 inet manual
  62. vlan-raw-device bond0
  63.  
  64. # OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
  65. iface bond1.30 inet manual
  66. vlan-raw-device bond1
  67.  
  68. # Storage network VLAN interface (optional)
  69. iface bond0.20 inet manual
  70. vlan-raw-device bond0
  71.  
  72. # Container management bridge
  73. auto br-mgmt
  74. iface br-mgmt inet static
  75. bridge_stp off
  76. bridge_waitport 0
  77. bridge_fd 0
  78. # Bridge port references tagged interface
  79. bridge_ports bond0.10
  80. address 172.29.236.11
  81. netmask 255.255.252.0
  82. dns-nameservers 69.20.0.164 69.20.0.196
  83.  
  84. # OpenStack Networking VXLAN (tunnel/overlay) bridge
  85. auto br-vxlan
  86. iface br-vxlan inet static
  87. bridge_stp off
  88. bridge_waitport 0
  89. bridge_fd 0
  90. # Bridge port references tagged interface
  91. bridge_ports bond1.30
  92. address 172.29.240.11
  93. netmask 255.255.252.0
  94.  
  95. # OpenStack Networking VLAN bridge
  96. auto br-vlan
  97. iface br-vlan inet manual
  98. bridge_stp off
  99. bridge_waitport 0
  100. bridge_fd 0
  101. # Bridge port references untagged interface
  102. bridge_ports bond1
  103.  
  104. # Storage bridge (optional)
  105. auto br-storage
  106. iface br-storage inet static
  107. bridge_stp off
  108. bridge_waitport 0
  109. bridge_fd 0
  110. # Bridge port reference tagged interface
  111. bridge_ports bond0.20
  112. address 172.29.244.11
  113. netmask 255.255.252.0

 注意:bond0的IP每个taget都应该不同

  1. service networking restart

之后验证网络配置:

ubuntu@rpc-3:~$ ifconfig -a

  1. bond0 Link encap:Ethernet HWaddr fa::3e::7b:0a
  2.  
  3. inet addr:192.168.2.112 Bcast:192.168.2.255 Mask:255.255.255.0
  4.  
  5. inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link
  6.  
  7. UP BROADCAST RUNNING MASTER MULTICAST MTU: Metric:
  8.  
  9. RX packets: errors: dropped: overruns: frame:
  10.  
  11. TX packets: errors: dropped: overruns: carrier:
  12.  
  13. collisions: txqueuelen:
  14.  
  15. RX bytes: (89.5 KB) TX bytes: (4.3 KB)
  16.  
  17. bond1 Link encap:Ethernet HWaddr fa::3e::2d:1a
  18.  
  19. inet6 addr: fe80::f816:3eff:fe51:2d1a/ Scope:Link
  20.  
  21. UP BROADCAST RUNNING MASTER MULTICAST MTU: Metric:
  22.  
  23. RX packets: errors: dropped: overruns: frame:
  24.  
  25. TX packets: errors: dropped: overruns: carrier:
  26.  
  27. collisions: txqueuelen:
  28.  
  29. RX bytes: (89.6 KB) TX bytes: (3.3 KB)
  30.  
  31. bond0. Link encap:Ethernet HWaddr fa::3e::7b:0a
  32.  
  33. inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link
  34.  
  35. UP BROADCAST RUNNING MULTICAST MTU: Metric:
  36.  
  37. RX packets: errors: dropped: overruns: frame:
  38.  
  39. TX packets: errors: dropped: overruns: carrier:
  40.  
  41. collisions: txqueuelen:
  42.  
  43. RX bytes: (0.0 B) TX bytes: (1.3 KB)
  44.  
  45. bond0. Link encap:Ethernet HWaddr fa::3e::7b:0a
  46.  
  47. inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link
  48.  
  49. UP BROADCAST RUNNING MULTICAST MTU: Metric:
  50.  
  51. RX packets: errors: dropped: overruns: frame:
  52.  
  53. TX packets: errors: dropped: overruns: carrier:
  54.  
  55. collisions: txqueuelen:
  56.  
  57. RX bytes: (0.0 B) TX bytes: (1.3 KB)
  58.  
  59. bond1. Link encap:Ethernet HWaddr fa::3e::2d:1a
  60.  
  61. inet6 addr: fe80::f816:3eff:fe51:2d1a/ Scope:Link
  62.  
  63. UP BROADCAST RUNNING MULTICAST MTU: Metric:
  64.  
  65. RX packets: errors: dropped: overruns: frame:
  66.  
  67. TX packets: errors: dropped: overruns: carrier:
  68.  
  69. collisions: txqueuelen:
  70.  
  71. RX bytes: (0.0 B) TX bytes: (1.2 KB)
  72.  
  73. br-mgmt Link encap:Ethernet HWaddr fa::3e::7b:0a
  74.  
  75. inet addr:172.29.236.11 Bcast:172.29.239.255 Mask:255.255.252.0
  76.  
  77. inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link
  78.  
  79. UP BROADCAST RUNNING MULTICAST MTU: Metric:
  80.  
  81. RX packets: errors: dropped: overruns: frame:
  82.  
  83. TX packets: errors: dropped: overruns: carrier:
  84.  
  85. collisions: txqueuelen:
  86.  
  87. RX bytes: (0.0 B) TX bytes: (648.0 B)
  88.  
  89. br-storage Link encap:Ethernet HWaddr fa::3e::7b:0a
  90.  
  91. inet addr:172.29.244.11 Bcast:172.29.247.255 Mask:255.255.252.0
  92.  
  93. inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link
  94.  
  95. UP BROADCAST RUNNING MULTICAST MTU: Metric:
  96.  
  97. RX packets: errors: dropped: overruns: frame:
  98.  
  99. TX packets: errors: dropped: overruns: carrier:
  100.  
  101. collisions: txqueuelen:
  102.  
  103. RX bytes: (0.0 B) TX bytes: (648.0 B)
  104.  
  105. br-vlan Link encap:Ethernet HWaddr fa::3e::2d:1a
  106.  
  107. inet6 addr: fe80::f816:3eff:fe51:2d1a/ Scope:Link
  108.  
  109. UP BROADCAST RUNNING MULTICAST MTU: Metric:
  110.  
  111. RX packets: errors: dropped: overruns: frame:
  112.  
  113. TX packets: errors: dropped: overruns: carrier:
  114.  
  115. collisions: txqueuelen:
  116.  
  117. RX bytes: (12.4 KB) TX bytes: (180.0 B)
  118.  
  119. br-vxlan Link encap:Ethernet HWaddr fa::3e::2d:1a
  120.  
  121. inet addr:172.29.240.11 Bcast:172.29.243.255 Mask:255.255.252.0
  122.  
  123. inet6 addr: fe80::f816:3eff:fe51:2d1a/ Scope:Link
  124.  
  125. UP BROADCAST RUNNING MULTICAST MTU: Metric:
  126.  
  127. RX packets: errors: dropped: overruns: frame:
  128.  
  129. TX packets: errors: dropped: overruns: carrier:
  130.  
  131. collisions: txqueuelen:
  132.  
  133. RX bytes: (0.0 B) TX bytes: (648.0 B)
  134.  
  135. eth0 Link encap:Ethernet HWaddr fa::3e:1b:3f:
  136.  
  137. inet addr:192.168.2.22 Bcast:192.168.2.255 Mask:255.255.255.0
  138.  
  139. inet6 addr: fe80::f816:3eff:fe1b:3f54/ Scope:Link
  140.  
  141. UP BROADCAST RUNNING MULTICAST MTU: Metric:
  142.  
  143. RX packets: errors: dropped: overruns: frame:
  144.  
  145. TX packets: errors: dropped: overruns: carrier:
  146.  
  147. collisions: txqueuelen:
  148.  
  149. RX bytes: (68.3 KB) TX bytes: (104.3 KB)
  150.  
  151. eth1 Link encap:Ethernet HWaddr fa::3e::7b:0a
  152.  
  153. inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link
  154.  
  155. UP BROADCAST RUNNING SLAVE MULTICAST MTU: Metric:
  156.  
  157. RX packets: errors: dropped: overruns: frame:
  158.  
  159. TX packets: errors: dropped: overruns: carrier:
  160.  
  161. collisions: txqueuelen:
  162.  
  163. RX bytes: (44.7 KB) TX bytes: (3.5 KB)
  164.  
  165. eth2 Link encap:Ethernet HWaddr fa::3e::2d:1a
  166.  
  167. inet6 addr: fe80::f816:3eff:fe51:2d1a/ Scope:Link
  168.  
  169. UP BROADCAST RUNNING SLAVE MULTICAST MTU: Metric:
  170.  
  171. RX packets: errors: dropped: overruns: frame:
  172.  
  173. TX packets: errors: dropped: overruns: carrier:
  174.  
  175. collisions: txqueuelen:
  176.  
  177. RX bytes: (44.7 KB) TX bytes: (2.7 KB)
  178.  
  179. eth3 Link encap:Ethernet HWaddr fa::3e::7b:0a
  180.  
  181. inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link
  182.  
  183. UP BROADCAST RUNNING SLAVE MULTICAST MTU: Metric:
  184.  
  185. RX packets: errors: dropped: overruns: frame:
  186.  
  187. TX packets: errors: dropped: overruns: carrier:
  188.  
  189. collisions: txqueuelen:
  190.  
  191. RX bytes: (44.8 KB) TX bytes: (856.0 B)
  192.  
  193. eth4 Link encap:Ethernet HWaddr fa::3e::2d:1a
  194.  
  195. inet6 addr: fe80::f816:3eff:fe51:2d1a/ Scope:Link
  196.  
  197. UP BROADCAST RUNNING SLAVE MULTICAST MTU: Metric:
  198.  
  199. RX packets: errors: dropped: overruns: frame:
  200.  
  201. TX packets: errors: dropped: overruns: carrier:
  202.  
  203. collisions: txqueuelen:
  204.  
  205. RX bytes: (44.8 KB) TX bytes: (578.0 B)

安装rackspace private cloud --4 配置Target hosts的更多相关文章

  1. 在openstack环境中安装rackspace private cloud --1 环境准备

    在一个openstack环境中安装rackspace private cloud, 环境准备: 在good-net网络中创建3个虚拟机vm Network Detail: good-net Netwo ...

  2. 中安装rackspace private cloud --6 Deployment rpc

    运行ansible playbook安装之前的准备工作: Perform deployment host initial setup Build containers on target hosts ...

  3. 安装rackspace private cloud --5 Deployment configuration

    运行Ansible playbooks之前,需要配置taget host Prerequisites . cp -r /opt/openstack-ansible/etc/openstack_depl ...

  4. 安装rackspace private cloud --2 overview

    Target hosts 包含以下 network bridges: LXC internal lxcbr0: 必须的,自动生成,containers的外网连接,不连接到host上任何物理/逻辑接口, ...

  5. 安装rackspace private cloud --3 Deployment host

    on deploy host: 在deploy host上安装 Ubuntu Server 14.04 (Trusty Tahr) LTS 64-bit # apt-get install aptit ...

  6. 虚拟私有云(Virtual Private Cloud,专有网络)配置方式总结

    虚拟私有云 虚拟私有云(Virtual Private Cloud)是用户在云上申请的隔离的.私密的虚拟网络环境.用户可以自由配置VPC内的IP地址段.子网.安全组等子服务,也可以申请弹性带宽和弹性公 ...

  7. CentOS7下安装Nexus私服及基础配置

    环境准备 VMware上安装CentOS7 XShell/Xftp NexusOSS-3.10 jdk1.8 安装 使用root用户登录,将安装包均放置在/usr/local文件夹下 使用Xshell ...

  8. Windows Azure Cloud Service (36) 在Azure Cloud Service配置SSL证书

    <Windows Azure Platform 系列文章目录> 在某些时候,我们需要在Azure PaaS Cloud Service配置HTTPS连接.本章将介绍如何在本地创建证书,然后 ...

  9. 使用VMware安装linux虚拟机以及相关配置

    前言 使用VMware安装虚拟机这个一般都知道,操作简单.而本文主要讲使用虚拟机的后续相关配置.并记录使用过程中遇到的问题以及一些技巧.本篇文章以后回持续更新的... 安装包准备 VM:12 Linu ...

随机推荐

  1. ExtJS4 给同一个formpanel不同的url

    formpanel能够这样使用,api上的样例: var panel=Ext.create('Ext.form.Panel', { title: 'Simple Form', bodyPadding: ...

  2. python 获取当前运行的 class 和 方法的名字

    # coding=utf-8 import sys class Hello(): def hello(self): print('the name of method is ## {} ##'.for ...

  3. python3爬虫-分析Ajax,抓取今日头条街拍美图

    # coding=utf-8 from urllib.parse import urlencode import requests from requests.exceptions import Re ...

  4. 004-ibus输入法,快捷键,浏览器

    一.输入法 用 root 身份在终端下,运行下面命令: yum install ibus-pinyin ibus ibus-gtk ibus-qt 使用im-chooser命令,选择ibus为默认输入 ...

  5. ansible的主机变量

    ansible的主机变量(常用):ansible_ssh_host     #用于指定被管理的主机的真实IPansible_ssh_port     #用于指定连接到被管理主机的ssh端口号,默认是2 ...

  6. 2.5 使用ARDUINO做主控,手机发送短信控制开关LED

    需要准备的硬件 MC20开发板 1个 https://item.taobao.com/item.htm?id=562661881042 GSM/GPRS天线 1根 https://item.taoba ...

  7. js文件操作

    IE下 1. 写入 FileSystemObject可以将文件翻译成文件流. 第一步: 例: 复制代码代码如下: Var fso=new ActiveXObject(Scripting.FileSys ...

  8. iOS 单例模式 学习 "52个方法 第6章 45条 使用 dispath_once 来执行只需运行一次的线程安全代码"

    百度定义:单例模式是一种常用的软件设计模式.在它的核心结构中只包含一个被称为单例的特殊类.通过单例模式可以保证系统中一个类只有一个实例. 维基百科:在软件工程中,单例是一种用于实现单例的数学概念,即将 ...

  9. 七 、linux正则表达式

    为处理大量的字符串而定义的一套规则和方法 1)linux正则表达式以行为单位处理 2)alians grep = “grep –color=auto”,让匹配的内容显示颜色 3)注意字符集,expor ...

  10. Unity 简易监听框架

    全局维护一个字典,字典中的key为字符串或者自定义类型,value为委托, using System.Collections; using System.Collections.Generic; us ...