Install OpenStack-RDO-All-In-One(ocata) On CentOS 7.3(Minimal)

From: https://www.rdoproject.org/install/packstack/

vi /etc/sysconfig/network-scripts/ifcfg-ens33
IPADDR=10.0.0.2
PREFIX=24
GATEWAY=10.0.0.1

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


yum -y install net-tools

yum -y update

vi /etc/sysconfig/selinux
SELINUX=disabled

timedatectl set-timezone Asia/Hong_Kong

vi /etc/environment
LANG=en_US.utf-8
LC_ALL=en_US.utf-8

yum install -y chrony
systemctl enable chronyd.service
systemctl start chronyd.service

echo "controller.jason-tang.com" > /etc/hostname

echo "10.0.0.2 controller.jason-tang.com controller" > /etc/hosts

reboot

yum install -y centos-release-openstack-ocata
yum update -y

yum install -y openstack-packstack openstack-utils
yum update -y


packstack --gen-answer-file=/root/answerfile.txt

openstack-config --set /root/answerfile.txt general CONFIG_NEUTRON_OVS_BRIDGE_IFACES br-ex:ens33
openstack-config --set /root/answerfile.txt general CONFIG_PROVISION_DEMO n
openstack-config --set /root/answerfile.txt general CONFIG_PROVISION_DEMO_FLOATRANGE 10.0.0.0/24
openstack-config --set /root/answerfile.txt general CONFIG_PROVISION_TEMPEST_FLOATRANGE 10.0.0.0/24

packstack --answer-file=/root/answerfile.txt

source keystonerc_admin
neutron net-create external_network --provider:network_type flat --provider:physical_network extnet --router:external=True
neutron subnet-create --name external_subnet --enable_dhcp=False --allocation-pool=start=10.0.0.20,end=10.0.0.30 --gateway=10.0.0.1 external_network 10.0.0.0/24
neutron router-create router1
neutron router-gateway-set router1 external_network
neutron net-create private_network
neutron subnet-create --name private_subnet private_network 172.16.0.0/24
neutron router-interface-add router1 private_subnet

curl http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img | glance image-create --name='cirros image' --visibility=public --container-format=bare --disk-format=qcow2

reboot

http://10.0.0.2/dashboard