Install OpenStack on a bare machine using TripleO Quickstart
- 詳細內容
- 分類: Cloud
- 發佈: 2018-06-06, 週三 07:53
- 作者 Super User
- 點擊數: 23573
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