OpenStack Installation Notes

Source: Internet
Author: User
Tags mysql delete mysql view

Lift the installation of OpenStack, the whole people feel bad, for nearly a week time also failed to fix Redhat, CentOS 6.5 system installation, finally changed to CentOS7.0 last installation success. In order to later less detours, write down their own dull footsteps.

The first time you install OpenStack, the server you get is a Redhat6.5 system with a CentOS6.5 system disc in hand. Developers are very lazy, can use, there is a problem on the study of a tendon (I am not a good developer, to the end of the problem can not be solved), so that the unfortunate installation process.

The first headache problem is redhat on the configuration of the Yum source, the article said the configuration of the source after the installation of the following steps to complete, seemingly very simple thing, now look at RDO (Https://openstack.redhat.com/Quickstart RDO official website) All-in-one deployment is really so many steps, why do I encounter so many problems, perhaps you chose the wrong path yourself. The OpenStack package and Yum Source updates are fast, so the installation was very smooth and now it's not difficult to explain. So we recommend that you start a new thing when you should choose the latest beginning, as the technology will become more and more mature, easier to learn the same truth, the following list CentOS7.0 on the installation method.

First, configure the Yum source

Yum is a package management tool on Fedora and Redhat and CentOS,

CD cd/etc/yum.repos.d/

Find out which Yum sources are already included

Many of the online practices are replaced by third-party sources, most of which is the Yum source of NetEase, which gives a description of the use of NetEase yum source http://mirrors.163.com/.help/centos.html

1, NetEase source use

Download centos6-base-163.com using the wget file Download command, which will download the corresponding version according to your own system

wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo

The wget command downloads the file to the current directory and then backs up the system base source, replacing it with the NetEase source

MV Centos-base.repo Centos-base.repo.back

MV Centos6-base-163.repo Centos-base.repo

So the NetEase base source is replaced

2. Eple Source

rpm-uvh http://ftp.sjtu.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpmrpm-uvh http:// FTP.SJTU.EDU.CN/FEDORA/EPEL/7/X86_64/E/EPEL-RELEASE-7-5.NOARCH.RPM Select the corresponding eple source installation according to its own system version, after installation will be in  /etc/ Yum.repos.d/generated Eple-release.repo source, the system contains epel-release package, can be viewed with  rpm-qa|grep-i epel-release.  3, RDO package install Yum install-y https://repos.fedorapeople.org/repos/openstack/openstack-havana/ Rdo-release-havana-6.noarch.rpmyum install-y https://rdo.fedorapeople.org/ RDO-RELEASE.RPM behind is the official website of the latest RDO installation, CentOS and Redhat 7.0 before the recommended installation of the RDO package, RDO has many versions specific to https://repos.fedorapeople.org view. After installation, you can use  rpm-qa|grep-i rdo-release to view installed packages.   II, openstack-packstack package install Yum install-y openstack-packstack here installed there may be a package dependency problem, if there is a problem, first perform the Yum update package dependencies and the system after the installation is complete , it is best to perform the next Yum update dependency package and then perform a reboot reboot under which the individual feels it best to update the machine under reboot. Update may have more than 400 files updated, need patience and so on.   Third, execute packstack1, directly execute Packstack--allinone2, Mr. Cheng Opensatck answer file, modify the configuration in the answer file, execute Packstackpackstack According to the answer file Gen-answer-file=openstack-answer.txtpackstack--aThe nswer-file=openstack-answer.txt answer file will be generated in the/root/directory, first installation or the first method is recommended.   If all goes well (almost impossible on a low version), a keystonerc_admin file is generated in the/root/directory that contains the Horizon login username and password. Horizon Login Address is Http://192.168.24.11/dashboard   Second end is the IP address of your host, after you play the   above the way I installed on the CentOS7.0 successfully.   problems encountered during installation one, Yum and eple source issues

In the absence of the provision of Yum and Eple source, to perform the subsequent operation is doomed to fail, Redhat Yum source update requires a fee, so replace with the CentOS source. Redhat Yum source replacement or more troublesome, to speak of the original Yum Delete, in the installation of third-party yum, here is an article http://blog.itpub.net/25313300/viewspace-708509/explains the specific use.

The first day of the Yum source problem is not resolved, the next morning will be replaced by the system CentOS6.5, CentOS on the source of Yum to replace the third-party source more simple, can be found in Eple source is not kung Fu. The next day always solves the problem of the Yum source. Yum is configured to choose the RDO Package version, Eple source and RDO package version is corresponding, Eple7 corresponds to the latest Juno version of RDO (corresponding system CentOS7.0), Eple6 corresponds to the following version Juno.

Two, the Python version issue

After installing the Eple7 and Juno versions, the Python version will be larger than 2.7,redhat6.5 by default as long as 2.6, which will upgrade Python. It is not recommended to install the latest Juno package on 6.5 systems, even if you find that many packages are missing after your upgrade success. or install the lower version of the RDO package, so your python will fall back to version 2.6, or there would be a python compatibility issue.

Installing a different version of Python by default is saved in the/user/bin directory, the system uses the version is specified by the/user/bin/python link file, you can ln-s python2.6 python To reset the system Python version to 2.6, first delete the previous Python link file. If you re-view the Python version or no change, find the python2.7 version of the folder by finding python2.7, and delete it all.

Third, MySQL installation problem packstack execution is will install MySQL, if the system has been installed conflict, need to uninstall Mysqlrpm-qa | grep mysql view all installed MySQL database rpm-e mysql-server-5.1.71-1.el6.x86_64rpm-e mysql-5.1.71-1.el6.x86_64 Remove the installation package rm-rf/var/lib/ MySQL delete mysql local data mysql installation yum-y install mysql-server installation mysqlservice mysqld start server mysqladmin-u root password ' root#123 ' Set root user password Mysql-u root-p to the root user link database show databases; View the database you have created cd/var/lib/mysql/data file save location

OpenStack Installation Notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.