Take you a preliminary understanding of cloud computing and OpenStack T version (one-click deployment)

1. NIST's definition of cloud computing

NIST (National Institute of Standards and Technology, National Institute of Standards and Technology) summarized various cloud computing definitions and descriptions. NIST's Peter Mell and Tim Grance in April 2009 (as of October 2009) Is version 15.0) proposed a definition of cloud computing, which may be the only definition widely recognized and supported at present.
The original English definition (Version 15) is as follows: Cloud computing is a model for enabling convenient, on-demand network access to a shared pool of configurable computing resources (eg, networks, servers, storage, applications, and services) that can be rapidly and relea Provisioned
Sed with minimal effort or-Service Provider Management Interaction Model This promotes cloud dostępność iS Composed and Essential Characteristics of Five,-Service Models Three, and Four Deployment Models..
Chinese translation (translation): cloud computing is a network able to Convenient, pay-as-you-go mode to obtain computing resources (including networks, servers, storage, applications and services, etc.) and improve their availability. These resources come from a shared, configurable resource pool, and can save effort and Acquired and released without human intervention. This model has five key functions, including three service models and four deployment methods.

1.1. Cloud computing concept

● Cloud computing in a narrow sense refers to the delivery and use mode of IT infrastructure
● Cloud computing in a broad sense refers to the delivery and use mode of services

1.1.1, cloud computing resources

● Network resources
● Storage resources
● Computing resources

1.1.2, cloud computing service model

■ laaS (Infrastructure as a Service)
● Provide underlying IT infrastructure services, including processing power, storage space, network resources, etc.
● Object-oriented generally IT managers

■ PaaS (Platform as a Service)
● Provide the system platform with the installed development environment as a service to users through the Internet
● Object-oriented generally developers

■ SaaS (Software as a Service)
● Provide users with services such as software and applications directly through the Internet
● Oriented users are generally ordinary users

1.1.3, release model

■ Private cloud
Cloud infrastructure is operated independently by an organization, may be managed by this organization or a third-party organization, may exist under certain conditions or exist unconditionally

■ Community Cloud
Cloud infrastructure is shared by several organizations and supports a special community that shares concepts (for example, tasks, security requirements, strategies, and appropriate decisions) with each other. May be managed by these organizations or third-party agencies, may exist under certain conditions or exist unconditionally

■ Public cloud
cloud infrastructure is made into general public or used by a large industrial group, owned by an organization, and sold cloud services

■ Hybrid cloud
Cloud infrastructure is composed of two or more clouds. These clouds maintain a unique entity but are combined through standard or unique technologies. These technologies make data or applications portable. (For example, Cloud Bursting technology for load balancing between clouds)

2. Overview of OpenStack

■ Co-sponsored by NASA (National Aeronautics and Space Administration) and Rackspace

■ Free software and open source projects licensed under the Apache license

■ Open source projects that provide software for the construction and management of public and private clouds

■ Covers all aspects of network, virtualization, operating system, server, etc.

2.1, OpenStack service

Insert picture description here

2.2, OpenStack advantages

■ Controllability
● Fully open source platform, providing API interface, easy to integrate with third-party technology

■ Compatibility
● OpenStack is compatible with other public clouds, facilitating data migration

■ Scalability
● Modular design, which can increase nodes and resources through horizontal expansion (flexible scaling)

■ Flexibility
● Establish corresponding infrastructure and increase cluster size according to your own needs

■ Industry standards
● Many leading IT companies have joined the OpenStack project

3. One-click online installation of OpenStack

■ Preparations before deployment
● Enable CPU virtualization function (in virtual shutdown state)
● Configure IP address (192.168.140.80)
● Modify host name
● Update system and install common software
● Disable firewall
● Disable NetworkManager
● Close SELinux
● Add hosts Bind

3.1. Environment construction

CentOS 7.6 system
CPU: dual-core dual-threaded / enable virtualization function
Memory: 4G
hard disk: 30G+300G
network card: NAT mode
Optional: net.ifnames=0 biosdevname=0 (can be modified to eth0 network card when creating)
Insert picture description here
Insert picture description hereInsert picture description here

Insert picture description here
Insert picture description hereInsert picture description hereInsert picture description here

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

3.1.2, configure the network card, mount the CD

Insert picture description here

[root@localhost ~]# mount /dev/cdrom /mnt
[root@localhost ~]# df -Th

Insert picture description here

[root@localhost ~]# hostnamectl set-hostname OpenStack
[root@localhost ~]# su

3.1.3, configure yum source

[root@openstack ~]# cd /etc/yum.repos.d/
[root@openstack yum.repos.d]# ls -lh

Insert picture description here

[root@openstack yum.repos.d]# mkdir backup    #新建文件夹
[root@openstack yum.repos.d]# mv C* backup    #拷贝文件
[root@openstack yum.repos.d]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@openstack yum.repos.d]# ls -lh
[root@openstack yum.repos.d]# vi CentOS-Base.repo 
[root@openstack yum.repos.d]# yum -y install net-tools    #下载工具包
[root@openstack ~]# yum -y install centos-release-openstack-train
#下载软件必要包
[root@openstack ~]# yum clean all
[root@openstack ~]# yum makecache     #建立缓存

3.1.4, turn off the firewall and core protection

[root@openstack ~]# systemctl stop firewalld
[root@openstack ~]# setenforce 0
[root@openstack ~]# systemctl disable firewalld

3.1.5, install time synchronization service

[root@openstack ~]# yum install -y ntpdate
[root@openstack ~]# ntpdate ntp.aliyun.com 
[root@openstack ~]# date

Insert picture description here

[root@openstack ~]# crontab -e          #制作任务计划

Insert picture description here

3.2. Download the OpenStack management toolkit and deploy OpenStack online

[root@openstack ~]# yum -y install openstack-packstack
[root@openstack ~]# packstack --allinone          #一键化部署

Insert picture description here

3.3. Create a br-ex network card configuration file

[root@openstack ~]# cd /etc/sysconfig/network-scripts/
[root@openstack network-scripts]# cp ifcfg-eth0 ifcfg-br-ex
[root@openstack network-scripts]# sed -i "100d" ifcfg-br-ex
[root@openstack network-scripts]# 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
[root@openstack network-scripts]# systemctl restart network
[root@openstack network-scripts]# ifconfig

Insert picture description here

3.4. View user information

[root@openstack network-scripts]# cd /root && cat keystonerc_admin

Insert picture description here

3.5, web login

Insert picture description here

3.5.1, upload mirror

[root@openstack ~]# openstack image create "cirros"   --file cirros-0.3.5-x86_64-disk.img  --disk-format qcow2 --container-format   --public

Insert picture description here
Insert picture description here

4. Summary

One-click deployment of OpenStack is only a minimal installation method, and the functions are not comprehensive. Only a general understanding of the composition of OpenStack

Guess you like

Origin blog.csdn.net/weixin_50344814/article/details/112797968