Packstack install Newton
发布日期:2022-02-12 16:07:00 浏览次数:1 分类:技术文章

本文共 4289 字,大约阅读时间需要 14 分钟。

1. install minimal CentOS, and then:
cat << EOF > /etc/resolv.conf
nameserver 8.8.8.8
nameserver 114.114.114.114
EOF

yum install wget -y
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/epel-7.repo
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
scp 10.2.xxx:/etc/yum.repos.d/CentOS7-Base-163.repo /etc/yum.repos.d/
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$releasever - Updates - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - 163.com
baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

2.prepare installation:
#yum install epel-release -y
yum clean all
yum makecache
yum update -y

systemctl disable firewalld
systemctl stop firewalld
systemctl disable NetworkManager
systemctl stop NetworkManager
systemctl enable network
systemctl start network

yum install -y centos-release-openstack-newton
yum update -y
yum install -y openstack-packstack

3.配置免密:

cat << EOF >> .ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCmIAI4JjtlSBnrbbemIacc56M0v8m7nz/kcsK8oJwDrlMGKT42/u8rDA3DtarvLl9PDtP89P1jxzBcS87uZpnQcU6Pf3jq8OkNXA1R1yZozCmpaIt9bbPoO+hRacV2EF+WeJ/y/DM45J6tOxDCkjeBMFwBxE95OaxE/gBhdt5V1lTrvQ3nji7B5JVx28I2+DJpcNIDtKrI8fWiD58QIl95ZvGkh4NXzgmBL4wuzfIeMQ4D8eFy844t/I2IOT6BkTdBMqu3GBm//+gAuL0qsicrnw2yc+oBkYauomtonRzodFu4Qsp8C6gfJqRtDFHzaGiQivtKPG/lE9BAo+
EOF

4.配置hostname

cat << EOF >> /etc/hosts
10.xx.31 queens-ct
10.xx.32 queens-cp1
10.xx.33 queens-cp2
EOF
10.xx.87 o-ctr-vlan
10.xx.88 o-compute-vlan
##
方法3:修改了/etc/sysconfig/network下的HOSTNAME后,然后使用hostname命令使其生效
[root@Test ~]# hostname DB-Server
##        
     
yum install screen
screen
packstack --gen-answer-file=answer-vlan.conf

5.answer file 配置及安装:

sed -i 's/^CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS.*/CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=extnet:br-ex,physnet1:br-vlan/' answer-vlan.conf
sed -i 's/^CONFIG_NEUTRON_OVS_BRIDGE_IFACES.*/CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:eth0,br-vlan:eth1/' answer-vlan.conf
sed -i 's/^CONFIG_NEUTRON_OVS_BRIDGES_COMPUTE.*/CONFIG_NEUTRON_OVS_BRIDGES_COMPUTE=br-vlan/' answer-vlan.conf
sed -i 's/^CONFIG_NEUTRON_ML2_TYPE_DRIVERS.*/CONFIG_NEUTRON_ML2_TYPE_DRIVERS=vlan/' answer-vlan.conf
sed -i 's/^CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES.*/CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=vlan/' answer-vlan.conf
sed -i 's/^CONFIG_NEUTRON_ML2_VLAN_RANGES.*/CONFIG_NEUTRON_ML2_VLAN_RANGES=physnet1:10:2000/' answer-vlan.conf
sed -i 's/^CONFIG_COMPUTE_HOSTS.*/CONFIG_COMPUTE_HOSTS=10.240.230.32,10.240.230.33/' answer-vlan.conf

packstack --answer-file=answer-vlan.conf


my install: vlan mode
packstack --allinone --provision-demo=n --os-neutron-ovs-bridges-compute=br-vlan --os-neutron-ovs-bridge-mappings="extnet:br-ex,physnet1:br-vlan" --os-neutron-ovs-bridge-interfaces="br-ex:eth0,br-vlan:eth1" --os-neutron-ml2-type-drivers=vlan --os-neutron-ml2-tenant-network-types=vlan
 

转载地址:https://blog.csdn.net/wellsmith/article/details/94407115 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Ubuntu install node.js and npm
下一篇:react中循环输入框组件的事件调用

发表评论

最新留言

关注你微信了!
[***.36.149.105]2022年06月19日 09时58分07秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

最新文章