先电云计算Iaas云平台 compute节点搭建过程
------------------------修改网卡地址--------------------------------vi /etc/sysconfig/network-scripts/ifcfg-eth0
------------------------修改Hosts-----------------------
vi /etc/hosts
------------------------重启网络------------------------------------
systemctl restart network.service
------------------------关闭防火墙----------------------------------
systemctl stop firewalld.service
systemctl enable firewalld.service
setenforce 0
----------------------------移除默认yum文件--------------------------------
mv /etc/yum.repos.d/* /opt/
----------------------------配置yum文件-------------------------------
vi /etc/yum.repos.d/local.repos
-----添加---------(注:具体的yum源根据真实环境controller节点地址的配置)
[centos]
name=centos
baseurl=ftp://192.168.100.100/centos7
gpgcheck=0
enabled=1
[openstack]
name=Openstack
baseurl=ftp://192.168.100.100/iaas-repo
gpgcheck=0
enabled=1
-----------安装openstack包--------------(等controller的vsftp安装好后执行)(iaas-install.pre.sh)
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
---------------同步时钟------------------
yum -y install ntpdate
ntpdate controller
systemctl start ntpdate.service
systemctl enable ntpdate.service
------------运行相应的脚本文件------------------
iaas-install-nova-compute.sh
iaas-install-neutron-compute.sh
iaas-install-neutron-compute-flat.sh
or(二选一)
iaas-install-neutron-compute-gre.sh
iaas-install-cinder-compute.sh
通过分析和学习,已经参考技术文档所总结出来的如有不当之处,敬请指点批评!