如果看了有点用处的话,动动小手点个赞呗
===========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
||
===========系统初始化(每个节点)
yum install -y vim wget net-tools telnet bash-completion.noarch
systemctl stop firewalld && systemctl disable firewalld
sed -ri 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
setenforce 0
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
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
=========
[root@kolla-1 ~]
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
yum -y install epel-release
yum -y install python-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 ~]
[root@kolla-1 ~]
[root@kolla-1 ~]
pip 20.2.3 from /usr/lib/python2.7/site-packages/