Linux Advanced Tip: OpenStack Build and application under Redhat

Source: Internet
Author: User

Introduction to 1.openstack
OpenStack was developed by NASA and Rackspace in collaboration with Apache Licensing and is a free software and open source project.
OpenStack is a project managed by a cloud platform and it is not a software.        The project consists of several major components that are combined to accomplish some specific work. OpenStack is an open source project designed to provide software for the building and management of public and private clouds. Its community has more than 130 businesses and 1350 developers, and these organizations and individuals have OpenStack asa generic front end for infrastructure-as-a-service (IaaS) resources. The first task of the OpenStack project is to streamline the deployment of the cloud and bring it to a good scale.        This article hopes to help you to set up and manage your own public or private cloud using the OpenStack front end by providing the necessary guidance information. OpenStack is a cloud computing platform developed jointly by Rackspace and NASA to help service providers and organizations implement cloud infrastructure services similar to Amazon EC2 and S3 (Infrastructure as a service, IaaS). OpenStack consists of two main modules: Nova and Swift, the virtual server deployment and Business Computing module developed by NASA, which is a distributed cloud storage module developed by Rackspace, which can be used together or separately. OpenStack is an open source project, with the support of Rackspace and NASA, as well as the contributions and support of heavyweight companies, including Dell, Citrix, Cisco, and Canonical, which are growing at a very fast pace, replacing another industry-leading open source cloud platform The situation of eucalyptus.

Scope of application:
OpenStack is an IAAS (infrastructure as a service) component that allows anyone to build and deliver on their own Cloud Computing service. In addition, OpenStack is used to build Firewall within the " Private Cloud (Private Cloud) to share resources with organizations or departments within the organization.


This is the basic architecture of OpenStack:


What we're building today is an OpenStack component of Redhat, which consists of a few parts:

(1) Calculation: NOVA
(2) Object storage: SWIFT
(3) Image: GLANCE
(4) Identity: KEYSTONE
(5) Network & address management: NEUTRON
(6) block storage: CINDER
(7) UI interface: HORIZON
(8) Measurement: Ceilometer
(9) Allocation: HEAT

In a production environment we should install this software on different servers and provide cloud services. But this is in the experiment, so we use the ALLinONE method, first aid is all the components are installed on a single server:

2. Install and build the Redhat OpenStack:

1). System: redhat6.5
2). Memory Requirements: 4G (minimum), 8G best

Start by showing our console:


Configure the Yum source to add the source of the OpenStack source and Errta to the Local:

We show the contents of the 3 repo files separately, and the latter two are required.

Dvd.repo content:


Content of Errata:


OpenStack content:


then we purge and update the records of the Yum Source:


Install OpenStack ALLinONE to build the Packstack and restart the node:


generate an asymmetric cryptographic public key for SSH and give the public key to the machine:




get the full profile of the OpenStack installation and edit it:


Into the configuration file, we want to modify the following parameters:
1) The designation of the NTP server IP;
2) The password for the Keystone component (this is also the password of the administrator when we log in to the Web interface);
3) Turn on the SSL encryption function;

* This is our basic function configuration, if you want a more comprehensive configuration, you want to modify the relevant parameters, such as you can install Swift to increase storage, upload and download.

NTP server IP:


SSL encryption:


Keystone Password changes:


After these configurations have been completed, we are going to install OpenStack,lasts about 25 minutes (my machine is configured i5 second generation processor, 4G memory):


Well, when you see the following interface, the OpenStack has been successfully installed on our machine:


Go to the OpenStack interface:




to facilitate operation, we translate the language into Simplified Chinese:


First we set up the project in the Administrator directory:


, Project is the new project we created:


Then we will create the user and specify the user as Project user:




After creating the project and the user, we exit Admin mode and log in using the Zhangchi User:


We want to set the image, network, security and other parameters in project:

1. Set up our network

First go to the configuration directory of the network files:


This is the eth0 modified configuration file:


This is the config file for Br-ex:


Then we restart the network:


Then create a network topology on the Web interface to allow future cloud hosts to access the extranet:




This is when we created the network topology, the left and right respectively for the intranet and the extranet, the middle is the router:


Then we add security groups:




Add the appropriate rule in the Security group rule:


After the add is complete:


Then we'll download the key pair so that we can test it through SSH and access our cloud hosts:


Generate a floating IP, for our later production of cloud host bindings, can access the cloud host:


Upload our image as an installation source for the cloud host:




After the image upload is successful, we set its cloud host type:




Finally, the most joint part, the integration of all previous operations, we install a cloud host, and then access it, this means that our entire OpenStack has been installed, and we can provide the specified parameters of the cloud host:


Select a key pair:




After this setting is complete, the cloud host is started, and then the cloud host binds to the floating IP, and the other hosts can be accessed through the KEY.PEM public key, and the address is the floating IP bound by the cloud host.

Summary:

This is an example of OpenStack testing on one node, where multiple servers are required to provide functionality in a real production environment, and components such as Nova,cinder are set on different servers. The functionality provided after splitting is more powerful. This post is introduced here.




Linux Advanced Tip: OpenStack Build and application under Redhat

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.