云计算之Iaas 平台(controller节点)配置过程 学习心得及总结

2019-04-14 17:51发布

------------------------修改网卡地址--------------------------------
vi /etc/sysconfig/network-scripts/ifcfg-eth0
------------------------重启网络------------------------------------
systemctl restart network.service
------------------------关闭防火墙----------------------------------
systemctl stop firewalld.service
systemctl enable firewalld.service
----------------------------移除默认yum文件--------------------------------
mv /etc/yum.repos.d/* /opt/
----------------------------配置yum文件-------------------------------
vi /etc/yum.repos.d/local.repos
-----添加---------(注:具体的yum源根据真实环境controller节点地址的配置)
[centos]
name=centos
baseurl=file:///opt/centos7/
gpgcheck=0
enabled=1
[openstack]
name=Openstack
baseurl=file:///opt/iaas-repo/
gpgcheck=0
enabled=1
--------------------------------------
用CRT上传镜像文件至opt
mount -o loop //挂载命令
------------------安装VSFTP----------------
yum -y install vsftpd
vi /etc/vsftpd/vsftpd.conf
加上anon_root=/opt/
-----------安装openstack包--------------(iaas-pre-host.sh 包括openstack ntp 
yum -y install openstack-utils open -selinux python-openstackclient
yum upgrade
----------------安装脚本文件和配置文件------------------------
yum -y install iaas-xiandian
-------------------注释openrc---------------------
vi /etc/xiandian/openrc.sh
-----修改--------
HOST_IP=192.168.100.100
HOST_NAME=controller
HOST_IP=192.168.100.200
HOST_NAME=compute
RABBIT_USER=openstack
RABBIT_PASS=000000
DB_PASS=000000
DOMAN_NAME=admin
ADMIN_PASS=000000
DEMO_PASS=000000
KEYSTONE_DBPASS=000000
GLANCE_DBPASS=000000
GLANCE_PASS=000000
NOVA_DBPASS=000000
NOVA_PASS=000000
NEUTRON_DBPASS=000000
NEUTRON_PASS=000000
METADATA=SECRET=000000
INTERFACE_NAME=enp9s0
CINDER_DBPASS=000000
CINDER_PASS=000000
BLOCK_DISK=md126p4
SWIFT_PASS=000000
OBJECT_DISK=md126p5
STORAGE_LOCAL_NET_IP=192.168.100.200
HEAT_DBPASS=000000
HEAT_PASS=000000
CEILOMETER_DBPASS=000000
CEILOMETER_PASS=000000
AODH_DBPASS=000000
AODH_PASS=000000

------------------NTP安装-------------(可用pre脚本)
yum -y install ntp
vi /etc/ntp.conf
server 127.127.1.0
fudge 127.127.1.0 stratum 10

#systemctl enable ntpdate.service-----------------------------------------
iaas-install-mysql.sh
-----------------------------------------
iaas-install-keystone.sh
-----------------------------------------
iaas-install-glance.sh
-----------------------------------------
source /etc/keystone/admin-openrc.sh
glance image-create --name "centos7" --disk-format qcow2 --container-format bare < /opt/images/centos_7.qcow2--------------NOVA安装--------------
iaas-install-nova-controller
---------------neutron----------------
iaas-install-neutron--controller
------------------flat---------------------
iaas-install-neutron-controller-flat.sh   OR    iaas-install-neutron-controller-gre.sh  //安装gre网络
---------------dashboard----------------
iaas-install-dashboard.sh
###################拓展的服务########################
iaas-install-cinder-controller.sh  //安装cinder云硬盘
iaas-install-swift-controller.sh   //安装swift云存储
iaas-install-heat.sh               //安装heat
iaas-install-ceilometer-controller.sh //安装ceilometer监控通过分析和学习,已经参考技术文档所总结出来的如有不当之处,敬请指点批评!