directory

I. Cloud computing

1. What is cloud computing

2. Features of cloud computing

Three ways to use cloud computing

1) Public cloud 2) Private cloud 3) hybrid cloudCopy the code

4. Cloud computing service model

IaaS(Infrastructure as a Service) 2) PaaS (Platform as a Service) 3) SaaS (Software as a service)Copy the code

2. Overview of OpenStack

3. OpenStack services

4. Advantages of OpenStack

5. OpenStack Installation method

6. One-click online installation of OpenStack

I. Cloud computing

1. What is cloud computing

Cloud computing is a kind of pay by usage pattern, this pattern provides available, convenient, on-demand network access, enter the configurable computing resources Shared pool (resources include: network, servers, storage, applications and services), these resources can be quick to provide, need to offer a few management work, or little interaction with service providers.

2. Features of cloud computing

Super scale. The “cloud” is of considerable scale, with corporate private clouds typically having hundreds or thousands of servers, giving users unprecedented computing power. Virtualization. Cloud computing allows users to obtain application services at any location using various terminals. High reliability. “Cloud” uses fault tolerance of multiple data copies and interchangeable computing nodes to ensure high reliability of services. Cloud computing is more reliable than local computers. Versatility. Cloud computing is not targeted at specific applications. The same “cloud” can support different applications at the same time. High scalability. The size of the cloud can be dynamically scaled to meet the needs of growing applications and users. On-demand services. The “cloud” is a vast pool of resources that you can buy on demand: clouds can be charged like water, electricity and gas. Extremely cheap. Due to the special fault tolerance measures of “cloud” can use very cheap nodes to form a cloud, the cloud automation centralized management to make a lot of enterprises don’t need to burden the high costs of data center management, make the resource utilization of generality of the “cloud” of improved compared with the traditional system, so users can fully enjoy the “cloud” low cost advantage, Often it takes only a few hundred dollars and a few days to complete tasks that previously took tens of thousands of dollars and months to complete.

Three ways to use cloud computing

(1) Public cloud

That is, the infrastructure is not built by itself, only how to use public cloud classification

The public cloud services provided by traditional telecom infrastructure operators, such as China Mobile, China Unicom and China Telecom, are government-led local cloud computing platforms, which are often referred to as public cloud platforms created by government cloud Internet giants, some IDC operators and some foreign cloud computing enterprises

(2) Private cloud

Their structures, cloud environment, the facilities to maintain themselves or a third party Private cloud is built for a user used alone, and so on data security and quality of service they can effectively control, private cloud is above all you should have the basis of infrastructure and can deploy application control facilities on this way, Private clouds can be deployed within the firewall of an enterprise data center. The core attributes of private clouds are proprietary resources. For example, VmWare and openstack are typical private clouds that we often use

(3) Mixed clouds

Hybrid cloud: The combination of public and private clouds is a common approach used by many enterprises to put core business on their private cloud and secondary business on the public cloud. But there are also some issues: security, data redundancy, legal, quality of service, etc.

4. Cloud computing service model

IaaS(Infrastructure as a Service)

IT managers provide low-level IT infrastructure services, including processing capacity, storage space, and network resources

(2) PaaS (Platform as a Service)

The system platform installed with the development environment is provided as a service over the Internet to users, usually developers

(3) SaaS (Software as a service)

Providing services such as software and applications directly to users over the Internet is object-oriented, generally for ordinary users

2. Overview of OpenStack

  • NASA and Rackspace
  • Free software and open source projects under the Apache license
  • Open source project that provides software for the construction and management of public and private clouds
  • It covers network, virtualization, operating system, server and other aspects

3. OpenStack services

4. Advantages of OpenStack

controlling

A fully open source platform that provides API interfaces for easy integration with third party technologies

compatibility

OpenStack is compatible with other public clouds to facilitate data migration

scalability

Modular design, you can add nodes and resources through horizontal expansion

flexibility

Build infrastructure and increase cluster size according to your own needs

The industry standard

Many IT leaders have joined the OpenStack project

5. Various installation methods of OpenStack

There are many ways to install openstack, but the installation procedure is relatively complex, which may not be easy for non-professionals to use, and involves a lot of network level knowledge, resulting in difficult deployment. The following installation methods are briefly introduced:

  • Online installation, relatively simple, you can try, but may have network requirements
  • I have tried devStack installation before but failed. It may be that our company has not updated the installation script of the new version of DevStack for a long time, so the new version of openstack cannot be installed, so I gave up this project
  • Kolla-ansible installation of openstack, this can be found on the web, or if necessary you can leave a message, I will write a special kolla-Ansible deployment tutorial, this is my own easy to build a successful method
  • Component source code installation, this is relatively complex a lot, need professional personnel to configure the installation, there are tutorials online, but less and the new version may not have

6. One-click online installation of OpenStack

CentOS 7.6 System CPU: Dual-core dual-thread/Virtualization enabled Memory: 8 GB Hard disk: 40 GB +400 GB NIC: NAT mode Optional: Net. ifnames=0 BiosdevName =0 (eth0 can be changed when created.) How does Openstack connect to the Internet through VMS

1. Environment configuration

1) Configure a static address and host name

BOOTPROTO=static IPADDR=192.168.241.8 NETMASK=255.255.255.0 GATEWAY=192.168.241.2 Systmectl restart networkCopy the code

2) Turn off the firewall, core protection and NetworkManager

systemctl stop firewalld
systemctl disable firewalld
systemctl stop NetworkManager
setenforce 0
Copy the code

3) Install time synchronization service and synchronize Ali Cloud clock server (NTP1, NTP2…) , set the periodic task and set the startup

yum install -y ntpdate
ntpdate ntp.aliyun.com >>/var/log/ntpdate.log
crontab -e
....
Copy the code

4) Configure the yum source

cd /etc/yum.repos.d/
mkdir bak
mv * bak/
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum -y install centos-release-openstack-train
yum clean all
yum makecache
Copy the code

5) Restart and check the service status

reboot
Copy the code

6) Download the OpenStack management tool package and deploy OpenStack online

yum -y install openstack-packstack
packstack --allinone
Copy the code

Example Create a BR-EX nic configuration file

cd /etc/sysconfig/network-scripts/ cp ifcfg-eth0 ifcfg-br-ex sed -i "100d" ifcfg-br-ex cat <<EOF >> ifcfg-br-ex TYPE=Ethernet BOOTPROTO= None NAME=br-ex DEVICE=br-ex ONBOOT=yes IPADDR=172.24.4.1 PREFIX=24 EOF Systemctl restart Network IP addr ViewCopy the code

7) View user information

cd /root && cat keystonerc_admin
Copy the code

8) Web login

Block device mapping -- "incubation ————" # Upload image, You can use either of the following methods: Run the openstack image create "cirros" --file cirros-0.3.5-x86_64-disk.img --disk-format qcow2 --container-format Bare --public second -- consoleCopy the code