openstack 云计算架构部署实验

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

Openstack云计算架构部署实验versionIcehouseLion.Cui声明文档基本参照openstack官网、Ceph官网结合自己部署撰写的仅供学习本人从事Citrix虚拟化相关工作openstack只是兴趣学习文档中如有不对的地方可以指正网络规划IP地址规划HostnamePublicIP(eth1)InternalIP(eth0)Gateway(eth0)FunctioncontrollerN/A10.0.0.11/2410.0.0.1ControllerNodeneutron10.0.1.21/2410.0.0.21/24NeutronNodecompute10.0.1.31/2410.0.0.31/24ComputeNodeceph0110.0.1.41/2410.0.0.41/24MON/MDSNodecehp0210.0.1.42/2410.0.0.42/24OSDNode注意:neutron服务器拥有三块网卡,第三块网卡无须配置IP地址后端存储:统一使用ceph,提供块设备、文件目录共享NAS、对象存储虚拟网络:GRE基础操作系统:CentOSrelease6.5X86_64内网:API调用、虚拟网络GRE隧道、服务验证外网:外部访问、读取CEPH分布式存储计算节点:相互免密码登陆、使用共享存储、实现相互迁移块设备节点:支持多个存储后端,并对不同后端设置qos主机基本配置版本信息如下所有节点都是使用CentOS6.5x86_64位操作系统配置Yum源这里使用中科大的yum源#cd/etc/yum.repo.d/#rm-f*#删除默认yum源#vim/etc/yum.repo.d/ustc.repo[ustc]name=ustcbaseurl==0enable=1导入RPM包签名信息[root@rhel]#rpm--import/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6关闭iptables和SELinux[root@rhel]#viustc.repo[root@rhel]#serviceiptablesstop[root@rhel]#chkconfig--level35iptablesoff[root@rhel]#sed-i's/enforcing/disabled/g'/etc/selinux/config添加主机hosts解析[root@rhel]#vim/etc/hosts#添加一下内容10.0.0.11controller10.0.0.21neutron10.0.0.31compute10.0.0.41ceph0110.0.0.42ceph02配置NTP时间服务器#yuminstallntp-y#sed-i's/server0.rhel.pool.ntp.org/#server0.rhel.pool.ntp.org/g'/etc/ntp.conf#sed-i's/server1.rhel.pool.ntp.org/#server1.rhel.pool.ntp.org/g'/etc/ntp.conf#sed-i's/server2.rhel.pool.ntp.org/#server2.rhel.pool.ntp.org/g'/etc/ntp.conf#sed-i's/server3.rhel.pool.ntp.org/#server3.rhel.pool.ntp.org/g'/etc/ntp.conf//controllerhost#echo“server127.127.1.0”/etc/ntp.conf#echo“fudge127.127.1.0stratum10”/etc/ntp.conf#servicentpdstart#chkconfigntpdon//otherhost#echo“servercontroller”/etc/ntp.conf配置MYSQL数据库数据库密码表PasswordnameDescriptionDatabasepassword(novariableused)RootpasswordforthedatabaseKEYSTONE_DBPASSDatabasepasswordofIdentityserviceDEMO_PASSPasswordofuserdemoADMIN_PASSPasswordofuseradminGLANCE_DBPASSDatabasepasswordforImageServiceGLANCE_PASSPasswordofImageServiceuserglanceNOVA_DBPASSDatabasepasswordforComputeserviceNOVA_PASSPasswordofComputeserviceusernovaDASH_DBPASSDatabasepasswordforthedashboardCINDER_DBPASSDatabasepasswordfortheBlockStorageserviceCINDER_PASSPasswordofBlockStorageserviceusercinderNEUTRON_DBPASSDatabasepasswordfortheNetworkingserviceNEUTRON_PASSPasswordofNetworkingserviceuserneutron//controllerhost安装MYSQL数据库#yuminstallmysqlmysql-serverMySQL-python-y#vi/etc/my.cnf#修改添加一下..................bind-address=0.0.0.0default-storage-engine=innodbinnodb_file_per_tablecollation-server=utf8_general_ciinit-connect='SETNAMESutf8'character-set-server=utf8.......................#servicemysqldstart#chkconfigmysqldon删除默认数据表#mysql_install_db#mysql_secure_installation创建数据库与用户#mysql-uroot-pmysqlcreatedatabasekeystone;mysqlcreatedatabaseglance;mysqlcreatedatabasenova;mysqlcreatedatabasecinder;mysqlcreatedatabasedashboard;mysqlcreatedatabaseneutron;mysqlGRANTALLPRIVILEGESONkeystone.*TO'keystone'@'localhost'IDENTIFIEDBY'KEYSTONE_DBPASS';mysqlGRANTALLPRIVILEGESONkeystone.*TO'keystone'@'%'IDENTIFIEDBY'KEYSTONE_DBPASS';mysqlGRANTALLPRIVILEGESONglance.*TO'glance'@'localhost'IDENTIFIEDBY'GLANCE_DBPASS';mysqlGRANTALLPRIVILEGESONglance.*TO'glance'@'%'IDENTIFIEDBY'GLANCE_DBPASS_DBPASS';mysqlGRANTALLPRIVILEGESONnova.*TO'nova'@'localhost'IDENTIFIEDBY'NOVA_DBPASS';mysqlGRANTALLPRIVILEGESONnova.*TO'nova'@'%'IDENTIFIEDBY'NOVA_DBPASS';mysqlGRANTALLPRIVILEGESONcinder.*TO'cinder'@'localhost'IDENTIFIEDBY'CINDER_DBPASS';mysqlGRANTALLPRIVILEGESONcinder.*TO'cinder'@'%'IDENTIFIEDBY'CINDER_DBPASS';mysqlGRANTALLPRIVILEGESONdashboard.*TO'dashboard'@'localhost'IDENTIFIEDBY'DASHBOARD_DBPASS';mysqlGRANTALLPRIVILEGESONdashboard.*TO'dashboard'@'%'IDENTIFIEDBY'DASHBOARD_DBPASS';mysqlGRANTALLPRIVILEGESONneutron.*TO'neutron'@'localhost'IDENTIFIEDBY'NEUTRON_DBPASS';mysqlGRANTALLPRIVILEGESONneutron.*TO'neutron'@'%'IDENTIFIEDBY'NEUTRON_DBPASS';配置OpenstackYum源//controllercomputeneutronhost#yuminstallyum-plugin-priorities–y#yuminstall://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm#yuminstallopenstack-selinux–y#yumupgrade–y#init6部署配置Ceph存储节点添加源安装ceph//ceph01ceph02host添加ceph的rpm库key#rpm--import'=ceph.git;a=blob_plain;f=keys/release.asc'#rpm--import'=ceph.git;a=blob_plain;f=keys/autobuild.asc'添加ceph-extras库#vi/etc/yum.repos.d/ceph-extras[ceph-extras]name=CephExtrasPackagesbaseurl==1priority=2gpgcheck=1type=rpm-mdgpgkey==ceph.git;a=blob_plain;f=keys/release.asc[ceph-extras-noarch]name=CephExtrasnoarchbaseurl==1priority=2gpgcheck=1type=rpm-mdgpgkey==ceph.git;a=blob_plain;f=keys/release.asc[ceph-extras-source]name=CephExtrasSourcesbaseurl==1priori

1 / 30
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功