kolla 部署openstack train版本(三节点controller+compute+storage)

如果看了有点用处的话,动动小手点个赞呗
===========kolla 部署openstack train版本 拓扑结构


eth0: 管理网段,可上网,下载安装包(nat模式)
eth1: provider网卡,(桥接模式),up with no ip


------------+---------------------------+---------------------------+----------------------
            |                           |                           |                               
        eth0|10.0.0.10              eth0|10.0.0.25              eth0|10.0.0.41           
            |                           |                           |
+-----------+------------+  +-----------+------------+  +-----------+------------+        
|    kolla-1(controller) |  |   kolla-2(compute)     |  |    kolla-3(storage)  |           
|                        |  |                        |  |                        |
|                        |  |                        |  |                        |
|                        |  |                        |  |                        |
+-----------++-----------+  +-----------+------------+  +-----------+------------+
            ||
            ||
        eth1 up with no ip
            ||


===========系统初始化(每个节点)

###1.下载基础工具
yum install -y vim wget net-tools telnet bash-completion.noarch


###2.关闭fw
systemctl stop firewalld  && systemctl disable firewalld
sed -ri 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
setenforce 0	


###3.更改上海时间
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime


###4. 安装docker

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install docker-ce -y
systemctl start docker && systemctl enable  docker

mkdir -p /etc/systemd/system/docker.service.d/
tee /etc/systemd/system/docker.service.d/kolla.conf << 'EOF'
[Service]
MountFlags=shared
EOF

cat << EOF > /etc/docker/daemon.json
{
   
  "registry-mirrors": ["https://6u0i88u7.mirror.aliyuncs.com"]
}

EOF

systemctl daemon-reload  && systemctl restart docker



=========

#### 三台配置hosts  且  免密互通(略)

[root@kolla-1 ~]# cat /etc/hosts
127.0.0.1 localhost
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6


10.0.0.71 kolla-1
10.0.0.72 kolla-2
10.0.0.73 kolla-3



########################## kolla-1 安装 ansible
yum -y install epel-release
yum -y install python-pip


####pip源

for line in `cat /etc/hosts  | sed 1,2d  | awk '{print $2}' `
do
echo $line
ssh $line "mkdir ~/.pip"
ssh $line "cat << EOF > ~/.pip/pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn

EOF"
done


[root@kolla-1 ~]# yum -y install python-devel libffi-devel gcc openssl-devel libselinux-python
[root@kolla-1 ~]# pip install ansible
[root@kolla-1 ~]# pip --version
pip 20.2.3 from /usr/lib/python2.7/site-packages/
  • 2
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值