Install OpenStack on a bare machine using TripleO Quickstart

Installation director(MinimalCD --> UTC)[CPU:2X12=24CPUS, RAM:64G, Harddisk:1000G]

director(loing as root):

yum -y update

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

yum install -y net-tools
yum install -y ntpdate

/usr/sbin/ntpdate -s stdtime.gov.hk
/usr/sbin/hwclock --systohc

echo "LANG=en_US.utf-8" > /etc/environment
echo "LC_ALL=en_US.utf-8" >> /etc/environment

echo "192.168.1.113 director.jason-tang.com director" >> /etc/hosts

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

/usr/bin/sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

reboot

director(loing as root):
ssh-keygen
export VIRTHOST=127.0.0.2
ssh-copy-id root@$VIRTHOST
ssh root@$VIRTHOST uname -a

curl -O https://raw.githubusercontent.com/openstack/tripleo-quickstart/master/quickstart.sh

vi /root/quickstart.sh
add a line as below:
/usr/bin/sed -i 's/deploy_timeout: 90/deploy_timeout: 120/g' /root/.quickstart/usr/local/share/ansible/roles/overcloud-deploy/defaults/main.yml

after the line as below:
echo "Current run is logged in _quickstart.log file in current directory"

bash quickstart.sh --install-deps

bash quickstart.sh -R pike -c /root/.quickstart/config/general_config/pacemaker.yml -N /root/.quickstart/config/nodes/3ctlr_3comp.yml --tags all $VIRTHOST

......

##################################
Virtual Environment Setup Complete
##################################

Access the undercloud by:

    ssh -F /root/.quickstart/ssh.config.ansible undercloud

Follow the documentation in the link below to complete your deployment.

    http://ow.ly/c44w304begR

##################################
Virtual Environment Setup Complete
##################################



director(loing as root):
ssh -F /root/.quickstart/ssh.config.ansible undercloud

sudo hiera admin_password
c15a069b0e6b20ef8182ecf8da1e665cad9224b3

Google Chrome:(https://192.168.1.113 in this case)
https://director's IP
admin
c15a069b0e6b20ef8182ecf8da1e665cad9224b3


Overcloud information:
Overcloud IP address: 10.0.0.5
Username: admin
Password: rxZsDaGZetVcgwuD9e6wu7EMh


Start all of the Undercloud and Overclouds after reboot director:
director(loing as root):
echo 'su - stack -c "virsh start undercloud"' > /root/start_undercloud_overclouds
echo 'sleep 30' >> /root/start_undercloud_overclouds
echo 'su - stack -c "virsh start control_0"' >> /root/start_undercloud_overclouds
echo 'sleep 30' >> /root/start_undercloud_overclouds
echo 'su - stack -c "virsh start control_1"' >> /root/start_undercloud_overclouds
echo 'sleep 30' >> /root/start_undercloud_overclouds
echo 'su - stack -c "virsh start control_2"' >> /root/start_undercloud_overclouds
echo 'sleep 30' >> /root/start_undercloud_overclouds
echo 'su - stack -c "virsh start compute_0"' >> /root/start_undercloud_overclouds
echo 'sleep 30' >> /root/start_undercloud_overclouds
echo 'su - stack -c "virsh start compute_1"' >> /root/start_undercloud_overclouds
echo 'sleep 30' >> /root/start_undercloud_overclouds
echo 'su - stack -c "virsh start compute_2"' >> /root/start_undercloud_overclouds

chmod +x /root/start_undercloud_overclouds

/root/start_undercloud_overclouds

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/selinux/config
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