openstack 入门 准备篇一:整体介绍centos M版本

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openstack 入门 准备篇一:整体介绍centos M版本相关的知识,希望对你有一定的参考价值。

  本次搭建才用双节点  由于本人是大三学生  电脑配置不够所以就才用双节点  我把网络节点部署在controller上

 本次测试环境在vm下测试的 首先需要开启虚拟化

技术分享


本次环境是centos7 


内部网络  controller  :192.168.100.10 eth0    

     compute1:192.168.200.10   eth1

外部网络  controller:192.168.100.20   eth0

                compute1:192.168.200.10   eth1



管理网络(内部网络),用于OpenStack组件以及mysql DB Server, RabbitMQ
messaging server之间的通信

外部网络:用于本机和实例通信

硬件基本配置

控制节点: 1 processor, 2 GB memory, and 5 GB storage

计算节点: 1 processor, 2 GB memory, and 10 GB storage

hosts配置:
#控制节点:
192.168.100.10       controller

# 计算节点
192.168.100.20     compute1

网络节点

外网网卡配置:

编辑/etc/sysconfig/network-scripts/ifcfg-INTERFACE_NAME文件,完成下面内容
不要改变HWADDR 和 UUID keys.

?

1

2

3

4

[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eno16777736 

TYPE=Ethernet

BOOTPROTO=static

IPADDR=192.168.100.10

NETMASK=255.255.255.0

GATEWAY=192.168.100.2

NAME=eno16777736

DEVICE=eno16777736

ONBOOT=yes


[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eno16777736 

TYPE=Ethernet

BOOTPROTO=static

IPADDR=192.168.100.20

NETMASK=255.255.255.0

GATEWAY=192.168.100.2

NAME=eno16777736

DEVICE=eno16777736

ONBOOT=yes


检测网络互通性


1.从控制节点 ping外网
?

01

02

03

04

05

06

07

08

09

10

ping -c compute

PING openstack.org (192.168.100.20) 56(84) bytes of data.

64 bytes from 192.168.100.20: icmp_seq=1 ttl=54 time=18.3 ms

64 bytes from 192.168.100.20: icmp_seq=2 ttl=54 time=17.5 ms

64 bytes from 192.168.100.20: icmp_seq=3 ttl=54 time=17.5 ms

64 bytes from 192.168.100.20: icmp_seq=4 ttl=54 time=17.4 ms

 

--- openstack.org ping statistics ---

4 packets transmitted, 4 received, 0% packet loss, time 3022ms

rtt min/avg/max/mdev = 17.489/17.715/18.346/0.364 ms



2.从控制节点,ping计算节点管理网络


?

01

02

03

04

05

06

07

08

09

10

ping -c 4 compute1

PING compute1 (192.168.100.10) 56(84) bytes of data.

64 bytes from compute1 (192.168.100.10): icmp_seq=1 ttl=64 time=0.263 ms

64 bytes from compute1 (192.168.100.10): icmp_seq=2 ttl=64 time=0.202 ms

64 bytes from compute1 (192.168.100.10): icmp_seq=3 ttl=64 time=0.203 ms

64 bytes from compute1 (192.168.100.10): icmp_seq=4 ttl=64 time=0.202 ms

 

--- compute1 ping statistics ---

4 packets transmitted, 4 received, 0% packet loss, time 3000ms

rtt min/avg/max/mdev = 0.202/0.217/0.263/0.030 ms



3.从计算节点,ping外网


?

01

02

03

04

05

06

07

08

09

10

ping -c 4 compute1

PING openstack.org (192.168.100.20) 56(84) bytes of data.

64 bytes from 192.168.100.20: icmp_seq=1 ttl=54 time=18.3 ms

64 bytes from 192.168.100.20: icmp_seq=2 ttl=54 time=17.5 ms

64 bytes from 192.168.100.20: icmp_seq=3 ttl=54 time=17.5 ms

64 bytes from 192.168.100.20: icmp_seq=4 ttl=54 time=17.4 ms

 

--- openstack.org ping statistics ---

4 packets transmitted, 4 received, 0% packet loss, time 3022ms

rtt min/avg/max/mdev = 17.489/17.715/18.346/0.364 ms



4.从计算节点,ping控制节点管理网络


?

01

02

03

04

05

06

07

08

09

10

ping -c 4 controller

PING controller (192.168.100.10) 56(84) bytes of data.

64 bytes from controller (192.168.100.10): icmp_seq=1 ttl=64 time=0.263 ms

64 bytes from controller (192.168.100.10): icmp_seq=2 ttl=64 time=0.202 ms

64 bytes from controller (192.168.100.10): icmp_seq=3 ttl=64 time=0.203 ms

64 bytes from controller (192.168.100.10): icmp_seq=4 ttl=64 time=0.202 ms

 

--- controller ping statistics ---

4 packets transmitted, 4 received, 0% packet loss, time 3000ms

rtt min/avg/max/mdev = 0.202/0.217/0.263/0.030 ms


本文出自 “小熊的窝” 博客,请务必保留此出处http://li291027828.blog.51cto.com/9409727/1926963

以上是关于openstack 入门 准备篇一:整体介绍centos M版本的主要内容,如果未能解决你的问题,请参考以下文章

OpenStack入门之核心组件梳理——Glance篇

OpenStack入门篇之OpenStack环境准备

Python 入门基础篇

openstack 入门 准备篇二:基础环境的搭建和配置centos M版本

openstack环境准备系列-第一章openstack介绍与官网解释

openstack入门