45
1 Cloud Management Platform : NCTU OpenStack Introduction 國國國國國國 國國國國國國國國 國國國 2013/06/04

1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

Embed Size (px)

Citation preview

Page 1: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

1

Cloud Management Platform :NCTU OpenStack Introduction

國立交通大學 資訊技術服務中心蘇俊憲

2013/06/04

Page 2: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

2

Outline Cloud Computing What is OpenStack OpenStack Components NCTU OpenStack (Essex) NCTU OpenStack API Support New NCTU OpenStack (Grizzly) Conclusion and Future Work

資訊技術服務中心

Page 3: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

3

Cloud Computing The NIST definition of cloud computing identifies

On-demand self-service Broad network access Resource pooling Rapid elasticity Measured service

Service models IaaS 、 PaaS 、 SaaS

key attributes of cloud computing On-demand availability Ease of provisioning Dynamic and virtually infinite scalability (auto-scaled)

資訊技術服務中心

Page 4: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

4

資訊技術服務中心

What is OpenStack The open source software for building private and

public clouds Controls large pools of compute, storage, and

networking resources

Page 5: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

5

資訊技術服務中心

OpenStack Release Naming

Codename Release Date

Cactus Apr. 15 2011

Diablo Sep. 29 2011

Essex Apr. 5 2012

Folsom Sep. 27 2012

Grizzly Apr. 4 2013

Page 6: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

6

OpenStack Conceptual Architecture資訊技術服務中心

Page 7: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

7

資訊技術服務中心

OpenStack Logical ArchitectureVersion : Grizzly

Page 8: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

8

OpenStack Components資訊技術服務中心

Computing OpenStack Compute (Nova) OpenStack Image service (Glance)

Networking OpenStack Networking (Quantum)

Storing OpenStack Object Storage (Swift) OpenStack Block Storage (Cinder)

Identity : Keystone Dashboard : Horizon

Page 9: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

9

資訊技術服務中心

OpenStack Components (Cont.) Nova Compute

Compute resource management and Scheduler VM life cycle management and VNC proxy

Glance Discovering, registering, and retrieving VM images

Quantum Manage VM’s Network, assign floating IP, Iptables,

openvswitch

Page 10: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

10

資訊技術服務中心

OpenStack Components (Cont.) Swift

Object Storage (ex. Amazon S3) Cinder

Provides persistent block storage to VM Keystone

User Identity Components need register to keystone

Horizon Web dashboard 。 (ex. user login, VM create and

terminate, volume create, security group and etc.)

Page 11: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

11

OpenStack - Compute API

nova-api : supports OpenStack Compute API, Amazon's EC2 API and a special Admin API

nova-api-metadata : accepts metadata requests from instances

Computing core nova-compute : creates and terminates virtual machine

instances(KVM, qemu, XEN and etc) nova-schedule : schedule the VM to run on a host nova-conductor : “mediator” between nova-compute and

the database

資訊技術服務中心

Page 12: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

12

Networking for VMs nova-network : setting up bridging interfaces or

changing iptables rules -> quantum nova-dhcpbridge : tracks IP address leases and

records -> quantum Console Interface

nova-consoleauth : authorizes user’s tokens that console proxies provide

nova-novncproxy : provides a proxy for accessing running instances through a VNC connection

Image Management (EC2 scenario) Web dashboard 。

OpenStack – Compute(Cont.)資訊技術服務中心

Page 13: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

13

Image Management (EC2 scenario) nova-objectstore : provides an S3 interface for

registering images onto the image management service

euca2ools client : euca2ools can be used to issue cloud management commands

Command Line Interpreter/Interfaces nova client nova-manage client Queue service : RabbitMQ Database : sqlite3, MySQL and PostgreSQL

資訊技術服務中心

OpenStack – Compute(cont.)

Page 14: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

14

OpenStack – Object Store資訊技術服務中心

Swift Distributed file system and prevent any single point of

failure swift-proxy-server) accepts incoming requests via the

OpenStack Object API or HTTP

Page 15: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

15

資訊技術服務中心

OpenStack – Image Store glance-api

accepts Image API calls for image discovery, image retrieval and image storage

glance-registry stores, processes and retrieves metadata about images

(size, type, etc.) A database to store the image metadata

sqlite3, MySQL and PostgreSQL image repository

Swift, normal filesystems, RADOS block devices, Amazon S3 and HTTP

Page 16: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

16

OpenStack – Identity資訊技術服務中心

keystone handles API requests as well as providing configurable

catalog, policy, token and identity services pluggable backend

LDAP or SQL and Key Value Stores

Page 17: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

17

OpenStack – Network資訊技術服務中心

quantum-server accepts API requests and then routes them to the

appropriate OpenStack Networking plugins for action Networking plugins and agents

Plugins : Cisco virtual and physical switches, Nicira NVP product, NEC OpenFlow products, Open vSwitch, Linux bridging and the Ryu Network Operating System

Agents : L3 (layer 3), DHCP (dynamic host IP addressing)

Page 18: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

18

OpenStack – Block Storage cinder-api

accepts API requests and routes them to cinder-volume for action

cinder-volume maintain Cinder database state interacting with other processes (like cinder-scheduler)

through a message queue access upon block storage

cinder-scheduler picks the optimal block storage provider node to create

the volume on

Page 19: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

19

OpenStack – Dashboard Horizon

Horizon is a modular Django web application that provides an end user and administrator interface to OpenStack services

Page 20: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

20

資訊技術服務中心

NCTU OpenStack - Essex

Page 21: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

21

資訊技術服務中心

OpenStack(Essex) with SwiftVersion : Essex

Page 22: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

22

資訊技術服務中心

NCTU OpenStack(Essex) with CephVersion : Essex

Page 23: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

23

資訊技術服務中心

NCTU OpenStack Dashboard

Page 24: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

24

NCTU OpenStack Dashboard (Cont.)

資訊技術服務中心

可產生 VM 的規格

Admin

Page 25: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

25

資訊技術服務中心NCTU OpenStack Dashboard (Cont.)

提供 Inage 列表

Page 26: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

26

資訊技術服務中心NCTU OpenStack Dashboard (Cont.)

建立一台新的VM

Page 27: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

27

資訊技術服務中心NCTU OpenStack Dashboard (Cont.)

Project 中正在執行的VM

控制 VM 開關機、快照等等

Page 28: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

28

資訊技術服務中心NCTU OpenStack Dashboard (Cont.)

網頁提供VNC console

Page 29: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

29

資訊技術服務中心

Amazon AWS S3 compatible

Page 30: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

30

Amazon AWS S3 compatible (Cont.)

CloudBerry

資訊技術服務中心

Page 31: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

31

Amazon AWS S3 compatible (Cont.)

Gladinet Cloud Drive

資訊技術服務中心

Page 32: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

32

資訊技術服務中心

NCTU OpenStack API Support

提供使用者下載 OpenStack or EC2 憑證資料,使用者可以透過 nova API 或 EC2 API 撰寫的程式,對 OpenStack 下命令

OpenStack Controller

NOVA API Client

EC2API Client

Page 33: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

33

資訊技術服務中心NCTU OpenStack API Support (Cont.)

#nova flavor-list

Page 34: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

34

資訊技術服務中心NCTU OpenStack API Support (Cont.)

#nova image-list

Page 35: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

35

資訊技術服務中心NCTU OpenStack API Support (Cont.)

#nova list

#nova secgroup-list

Page 36: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

36

資訊技術服務中心

#nova secgroup-list-rules default

#nova keypair-list

NCTU OpenStack API Support (Cont.)

Page 37: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

37

資訊技術服務中心NCTU OpenStack API Support (Cont.)

#nova boot --flavor 1 --image 23461b5c-124d-4318-b1de-740665be4bab --security_groups default --key_name chsu_openstack "nova-api-create"

Page 38: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

38

NCTU OpenStack API Support (Cont.)

資訊技術服務中心

#nova list

Page 39: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

39

資訊技術服務中心

New NCTU OpenStack – Grizzly Our New Physical Architecture

Page 40: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

40

http://openstack-grizzly.it.nctu.edu.tw

Page 41: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

41

資訊技術服務中心

New NCTU OpenStack – Grizzly (Cont.) Create Network

(IPv4/6 、 DHCP 、 DNS 、 Route)

Page 42: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

42

New NCTU OpenStack – Grizzly (Cont.)資訊技術服務中心

Attach the New Network

Page 43: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

43

資訊技術服務中心

New NCTU OpenStack – Grizzly (Cont.) View Network Topology

Page 44: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

44

New NCTU OpenStack – Grizzly (Cont.)資訊技術服務中心

Create Images

Page 45: 1 Cloud Management Platform : NCTU OpenStack Introduction 國立交通大學 資訊技術服務中心 蘇俊憲 2013/06/04

45

Reference資訊技術服務中心

http://csrc.nist.gov/publications/nistpubs/800-145/SP800-145.pdf http://en.wikipedia.org/wiki/Cloud_computing https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/blob/OVS_MultiNode/OpenStack_Grizzly_Install_Guide.rst

http://docs.openstack.org/trunk/openstack-compute/admin/content/conceptual-architecture.html

http://www.openstack.org/software/grizzly/ http://docs.openstack.org/trunk/openstack-compute/admin/content/ch_getting-started-with-openstack.html

http://openstack-grizzly.it.nctu.edu.tw/horizon/ http://openstack.nctu.edu.tw