Use RDO to deploy OpenStack graphic tutorials in O01-linux CentOS7

Source: Internet
Author: User
Tags get ip fully qualified domain name

First, preface

1.RDO is an open source project in Red Hat, the full name of RPM distribution of OpenStack, that can help us deploy OpenStack projects quickly.

Official Deployment Documentation: https://www.rdoproject.org/install/packstack/

2. This installation is basically in accordance with the official documentation of the steps to operate, in addition to the second part of the pre-installation environment preparation of the 3rd. This deployment is a single-node experimental environment, the version is the latest stable version of Queens.

Additionally, RDO can also be used to deploy a multi-node environment, as described in the official documentation.

3. Test the Environment:

Tool: VirtualBox

Operating system: CentOS7

Virtual machine configuration: 4-core, 6G memory, 25G capacity of hard disk space. ( official recommended configuration:machine with at least 16GB RAM, processors with hardware virtualization extensions, and at l East one network adapter.)

Virtual Machine ip:192.168.137.20 (is a static IP and can be connected to the extranet, IP deployment Method Link: http://www.cnblogs.com/suhaha/p/8619102.html)

Second, pre-installation environment preparation

1./etc/environment Configuring environment variables in Files

Lang=en_us.utf-8

Lc_all=en_us.utf-8

2. Turn off some network services such as firewalls

Command:

sudo systemctl disable FIREWALLD

sudo systemctl stop Firewalld

sudo systemctl disable NetworkManager

sudo systemctl stop NetworkManager

sudo systemctl enable network

sudo systemctl start Network

3. Configure the/etc/hosts file, where the IP-to-host-name Mapping is added

192.168.137.20 Openstack-rdo

Note: This step must be configured, or the installation process will be error, the specific error as described in the fourth part of the 3rd mistake .

Third, installation

The installation process is relatively simple, a total of four commands, in order to step-by-step execution is possible.

1. Installing the OpenStack warehouse

Command: sudo yum install-y centos-release-openstack-Queens

2. update Yum

Command: sudo yum update-y

3. Installing Packstack

Command: sudo yum install-y openstack-packstack

4. Installing OpenStack

Command: sudo packstack--allinone

Installation Successful output information:

Installation completed successfully ******

Additional Information:

* A New AnswerFile is created in:/root/packstack-answers-20180321-152621.txt

* Time synchronization installation was skipped. Please note this unsynchronized time on server instances might is problem for some OpenStack components.

* File/root/keystonerc_admin have been created on OpenStack client host 192.168.137.20. The command line tools, need to source the file.

* To access the OpenStack Dashboard browse to Http://192.168.137.20/dashboard.

Please, find your login credentials stored in the keystonerc_admin in your home directory.

* The installation log file is available at:/var/tmp/packstack/20180321-152620-cbbu76/openstack-setup.log

* The generated manifests is available at:/var/tmp/packstack/20180321-152620-cbbu76/manifests

Note: /root/keystonerc_admin the file has a user name and password for login dashboard.

5. Enter the dashboard address in the local browser for login verification

Iv. errors that may be encountered ( When installing OpenStack )

1.error:root:failed to load plugin from file ssl_001.py

Workaround:

For example, it is possible that the Python-setuptools package is not installed. Then use Yum to install, for example, after the installation is complete and then execute the sudo packstack--allinone command to continue installing OpenStack.

2.error:error appeared during Puppet run:192.168.137.20_controller.pp

Error:execution of '/usr/bin/yum-d 0-e 0-y install Openstack-aodh-common ' returned 1: Error downloading packages :

You'll find full trace in Log/var/tmp/packstack/20180321-130307-4ja7pr/manifests/192.168.137.20_controller.pp.log

Workaround: Manually install the error pack

The amount ... Actually said that the current Openstack-aodh-common is the newest ...

That being the case, then execute the sudo packstack--allinone command again (install again without reporting this error ...) )

3.Error:error appeared during Puppet run:192.168.137.20_controller.pp

Error:/stage[main]/swift::keystone::auth/keystone::resource::service_identity[swift]/keystone_user[swift]: Could not evaluate: Command: ' OpenStack [' User ', ' show ', '--format ', ' shell ', [' Swift ', '--domain ', ' default '] ' have Been running for more than-seconds (tried 2, for a total of seconds)

Workaround:

is the online check see the solution (original address: https://www.redhat.com/archives/rdo-list/2016-July/msg00010.html), said to be required to update the/etc/hosts file, Add the FQDN toit.

FQDN is a fully qualified domain name/whole domain name abbreviation, all called fully qualified domain name, that is, the domain name, Access will be resolved by DNS, get IP. Using the command hostname-f to view the FQDN, I found the Openstack-rdo, which is the same as my hostname, so I add the following in the /etc/hosts file and run it again

(Note: This deployment after processing this error will be able to successfully install, if there are other errors in the actual installation, you can find a solution by themselves online)

At this point, the deployment is complete.

Use RDO to deploy OpenStack graphic tutorials in O01-linux CentOS7

Related Article

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.