在每个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无密码登陆:

Copy Deployment hos的public key到taget /root/.ssh/authorized_keys

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 

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

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

# echo 'bonding' >> /etc/modules
# echo '8021q' >> /etc/modules

Configure NTP

Reboot the host to activate the changes

Configuring LVM

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

pvcreate --metadatasize  /dev/vdb
vgcreate cinder-volumes /dev/vdb
 

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文件如下:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(). # The loopback network interface
auto lo
iface lo inet loopback # Source interfaces
# Please check /etc/network/interfaces.d before changing this file
# as interfaces may have been defined in /etc/network/interfaces.d
# NOTE: the primary ethernet device is defined in
# /etc/network/interfaces.d/eth0
# See LP: #
source /etc/network/interfaces.d/*.cfg # Physical interface 1
auto eth1
iface eth1 inet manual
bond-master bond0
bond-primary eth1 # Physical interface 2
auto eth2
iface eth2 inet manual
bond-master bond1
bond-primary eth2 # Physical interface 3
auto eth3
iface eth3 inet manual
bond-master bond0 # Physical interface 4
auto eth4
iface eth4 inet manual
bond-master bond1 # Bond interface 0 (physical interfaces 1 and 3)
auto bond0
iface bond0 inet static
bond-slaves eth1 eth3
bond-mode active-backup
bond-miimon 100
bond-downdelay 200
bond-updelay 200
address 192.168.2.112
netmask 255.255.255.0
gateway 192.168.2.1
dns-nameservers 69.20.0.164 69.20.0.196 # Bond interface 1 (physical interfaces 2 and 4)
auto bond1
iface bond1 inet manual
bond-slaves eth2 eth4
bond-mode active-backup
bond-miimon 100
bond-downdelay 250
bond-updelay 250 # Container management VLAN interface
iface bond0.10 inet manual
vlan-raw-device bond0 # OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
iface bond1.30 inet manual
vlan-raw-device bond1 # Storage network VLAN interface (optional)
iface bond0.20 inet manual
vlan-raw-device bond0 # Container management bridge
auto br-mgmt
iface br-mgmt inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
# Bridge port references tagged interface
bridge_ports bond0.10
address 172.29.236.11
netmask 255.255.252.0
dns-nameservers 69.20.0.164 69.20.0.196 # OpenStack Networking VXLAN (tunnel/overlay) bridge
auto br-vxlan
iface br-vxlan inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
# Bridge port references tagged interface
bridge_ports bond1.30
address 172.29.240.11
netmask 255.255.252.0 # OpenStack Networking VLAN bridge
auto br-vlan
iface br-vlan inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
# Bridge port references untagged interface
bridge_ports bond1 # Storage bridge (optional)
auto br-storage
iface br-storage inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
# Bridge port reference tagged interface
bridge_ports bond0.20
address 172.29.244.11
netmask 255.255.252.0

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

service networking restart

之后验证网络配置:

ubuntu@rpc-3:~$ ifconfig -a

bond0     Link encap:Ethernet  HWaddr fa::3e::7b:0a

          inet addr:192.168.2.112  Bcast:192.168.2.255  Mask:255.255.255.0

          inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link

          UP BROADCAST RUNNING MASTER MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          RX bytes: (89.5 KB)  TX bytes: (4.3 KB)

bond1     Link encap:Ethernet  HWaddr fa::3e::2d:1a

          inet6 addr: fe80::f816:3eff:fe51:2d1a/ Scope:Link

          UP BROADCAST RUNNING MASTER MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          RX bytes: (89.6 KB)  TX bytes: (3.3 KB)

bond0.  Link encap:Ethernet  HWaddr fa::3e::7b:0a

          inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          RX bytes: (0.0 B)  TX bytes: (1.3 KB)

bond0.  Link encap:Ethernet  HWaddr fa::3e::7b:0a

          inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          RX bytes: (0.0 B)  TX bytes: (1.3 KB)

bond1.  Link encap:Ethernet  HWaddr fa::3e::2d:1a

          inet6 addr: fe80::f816:3eff:fe51:2d1a/ Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          RX bytes: (0.0 B)  TX bytes: (1.2 KB)

br-mgmt   Link encap:Ethernet  HWaddr fa::3e::7b:0a

          inet addr:172.29.236.11  Bcast:172.29.239.255  Mask:255.255.252.0

          inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          RX bytes: (0.0 B)  TX bytes: (648.0 B)

br-storage Link encap:Ethernet  HWaddr fa::3e::7b:0a

          inet addr:172.29.244.11  Bcast:172.29.247.255  Mask:255.255.252.0

          inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          RX bytes: (0.0 B)  TX bytes: (648.0 B)

br-vlan   Link encap:Ethernet  HWaddr fa::3e::2d:1a

          inet6 addr: fe80::f816:3eff:fe51:2d1a/ Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          RX bytes: (12.4 KB)  TX bytes: (180.0 B)

br-vxlan  Link encap:Ethernet  HWaddr fa::3e::2d:1a

          inet addr:172.29.240.11  Bcast:172.29.243.255  Mask:255.255.252.0

          inet6 addr: fe80::f816:3eff:fe51:2d1a/ Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          RX bytes: (0.0 B)  TX bytes: (648.0 B)

eth0      Link encap:Ethernet  HWaddr fa::3e:1b:3f:

          inet addr:192.168.2.22  Bcast:192.168.2.255  Mask:255.255.255.0

          inet6 addr: fe80::f816:3eff:fe1b:3f54/ Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          RX bytes: (68.3 KB)  TX bytes: (104.3 KB)

eth1      Link encap:Ethernet  HWaddr fa::3e::7b:0a

          inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link

          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          RX bytes: (44.7 KB)  TX bytes: (3.5 KB)

eth2      Link encap:Ethernet  HWaddr fa::3e::2d:1a

          inet6 addr: fe80::f816:3eff:fe51:2d1a/ Scope:Link

          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          RX bytes: (44.7 KB)  TX bytes: (2.7 KB)

eth3      Link encap:Ethernet  HWaddr fa::3e::7b:0a

          inet6 addr: fe80::f816:3eff:fe59:7b0a/ Scope:Link

          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          RX bytes: (44.8 KB)  TX bytes: (856.0 B)

eth4      Link encap:Ethernet  HWaddr fa::3e::2d:1a

          inet6 addr: fe80::f816:3eff:fe51:2d1a/ Scope:Link

          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:  Metric:

          RX packets: errors: dropped: overruns: frame:

          TX packets: errors: dropped: overruns: carrier:

          collisions: txqueuelen:

          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. 三、docker官网注册docker id

    docker官网注册docker ID 电脑注册docker没有成功,网上有人说用手机注册,试了一下确实可以注册. 1.下载蓝灯软件开启FQ代理. 2.登录网站,按照提示注册.

  2. mysql_表_操作

    1.创建表 # 基本语法: create table 表名( 列名 类型 是否可以为空 默认值 自增 主键, 列名 类型 是否可以为空 )ENGINE=InnoDB DEFAULT CHARSET=u ...

  3. 九度OJ 1360:乐透之猜数游戏 (递归)

    时间限制:2 秒 内存限制:32 兆 特殊判题:否 提交:955 解决:261 题目描述: 六一儿童节到了,YZ买了很多丰厚的礼品,准备奖励给JOBDU里辛劳的员工.为了增添一点趣味性,他还准备了一些 ...

  4. 中文Ubuntu里用户目录里的路径改成英文

    (附注:转载于http://www.linuxdiyf.com/linux/201105/56.html) 为了使用起来方便,装了Ubuntu中文版,自然在home文件里用户目录的"桌面&q ...

  5. 算法训练 s01串

    问题描述 s01串初始为"0" 按以下方式变换 0变1,1变01 输入格式 1个整数(0~19) 输出格式 n次变换后s01串 样例输入 3 样例输出 101 数据规模和约定 0~ ...

  6. python 中 for使用小技巧

    testDict = {i: i * i for i in xrange(10)} testSet = {i * 2 for i in xrange(10)} print(testSet) print ...

  7. hadoop学习第七天-HBase的原理、安装、shell命令

    一. hbase的原理知识 1. hbase介绍 hbase是hadoop的一个重要成员,主要用于存储结构化数据,构建在hdfs之上的分布式存储系统,它主要通过横向扩展,通用不断增加廉价服务器增加计算 ...

  8. 剑指offer 面试62题

    面试62题: 题目:圆圈中最后剩下的数字 题:0,1,...,n-1这n个数字排成一个圆圈,从数字0开始,每次从这个圆圈里删除第m个数字.求出这个圆圈里剩下的最后一个数字. 解题思路:约瑟夫环问题,可 ...

  9. spark学习(1)--ubuntu14.04集群搭建、配置(jdk)

    环境:ubuntu14.04 jdk-8u161-linux-x64.tar.gz 1.文本模式桌面模式切换 ctrl+alt+F6 切换到文本模式 ctrl + alt +F7 /输入命令start ...

  10. python有哪些好的学习资料或者博客?

    推荐Full Stack Python 有各种python资源汇总,从基础入门到各种框架web应用开发和部署,再到高级的ORM.Docker都有.以下是Full Stack Python 上总结的一些 ...