application m&o on openstack

34
1 OpenStack Application M&O Shanghai OpenStack Meet-up at IBM (July 4th, 2015) 王天青 EMC中国研究院

Upload: grissom-wang

Post on 04-Aug-2015

94 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Application M&O on OpenStack

1

OpenStack Application M&O

Shanghai OpenStack Meet-up at IBM (July 4th, 2015) 王天青 EMC中国研究院

Page 2: Application M&O on OpenStack

2

Page 3: Application M&O on OpenStack

3

• 最近有一篇文章《公有云使用常见问题问答》,其中排名第一的问题是:云主机有没有安装常规服务,大量服务、应用如何批量配置管理?对于用户来说,使用OpenStack等IaaS只是通向云计算之旅的第一步。最关键需要回答的问题是OpenStack等IaaS如何能够服务好用户现有的应用(平台2.0/2.5 应用)及将来的应用(平台3.0应用,例如Cloud Native Application)。

引子

Page 4: Application M&O on OpenStack

4

BILLIONS OF USERS BILLIONS OF DEVICES

MILLIONS OF APPS

Application

Service

IaaS

Tomorrow’s Data Center Next Gen Cloud Applications

2016 48M

2012 6M 700%

Traditional Applications

2016 141M

2012 83M 70%

Today’s Data Center

Page 5: Application M&O on OpenStack

5

Disruptive Players

Page 6: Application M&O on OpenStack

6

• Speed of innovation

• Always-available services

• Web scale

• Mobile-centric user experiences

Why Disruptive?

Page 7: Application M&O on OpenStack

7

• The Twelve-Factor App: a collection of cloud-native app architecture patterns

• Microservices: independently deployable services that do one thing well

• Self-Service Agile Infrastructure: platforms for rapid, repeatable, and consistent provisioning of app environments and backing services

• API-based Collaboration: published and versioned APIs that allow interaction between services in a cloud-native app architecture

• Anti-Fragility: systems that get stronger when subjected to stress

How?

Page 8: Application M&O on OpenStack

8

Application Life Cycle Management

开发 测试 集成 发布 部署 运维

Dev Ops

Page 9: Application M&O on OpenStack

9

• Deployment – Dependency

– Installation

– Startup

– Configuration

• Operation – Monitoring (status,

Metrics, Log) & Trouble Shooting

– Configuration

– Upgrade

– Scale, Backup, HA, DR

Challenges of Ops

Page 10: Application M&O on OpenStack

10

Page 11: Application M&O on OpenStack

11

Deployment on OpenStack, Practice #1

• Image Management – Build: diskimage-builder, Oz, VMBuilder, BoxGrinder,

VeeWee, Packer, imagefactory, SUSE Studio

• Infrastructure Resource Provisioning – Orchestration by Heat: network (router, gateway, subnet,

floating IP…), compute (security group, key pairs, VM…), storage (volume)

• Application Deployment and Configuration – Puppet

Page 12: Application M&O on OpenStack

12

Example: Install OpenStack via Puppet

Page 13: Application M&O on OpenStack

13

Bare-metal Orchestration

Puppet

Policy

MCO Broker

Node

Razor

Kick-Start + Proceed

Isilon HDFS File & Block Backup

Install Operating System 1. Install OpenStack; 2. Configure EMC Storage to OS

Infrastructure M&O

Machines &&

Deployment Specs

Puppet

Heat

&

Sahara

App M&O Cloud M&O

Nise Puppet

Page 14: Application M&O on OpenStack

14

Unified M&O

Page 15: Application M&O on OpenStack

15

• Image: CentOS 6.0

• Heat: Provisioning resources

• Puppet: Install ScaleIO

Install ScaleIO on OpenStack

Page 16: Application M&O on OpenStack

16

• Cloudify integrates with Heat out of the box

• Cloudify Heat Template

• Infrastructure Orchestration

Built-in Network Orchestration with Neutron

Deployment on OpenStack, Practice #2

Page 17: Application M&O on OpenStack

17

How it works

Blueprints

Page 19: Application M&O on OpenStack

19

• BOSH is a project that unifies release engineering, deployment, and lifecycle management of small and large-scale cloud software.

• It also performs monitoring, failure recovery, and software updates with zero-to-minimal downtime.

• While BOSH was developed to deploy Cloud Foundry PaaS, it can also be used to deploy almost any other software (Hadoop, for instance).

• In addition BOSH supports multiple Infrastructure as a Service (IaaS) providers like VMware vSphere, vCloud Director, Amazon Web Services EC2, and OpenStack.

Deployment on OpenStack, Practice #3

Page 20: Application M&O on OpenStack

20

BOSH Overview

Page 21: Application M&O on OpenStack

21

• Stemcell: A stemcell is a versioned Operating System image wrapped with IaaS specific packaging.

• Release: A release is a versioned collection of configuration properties, configuration templates, start up scripts, source code, binary artifacts, and anything else required to build and deploy software in a reproducible way.

• Deployment: A deployment is a collection of VMs, built from a stemcell, that has been populated with specific releases and disks that keep persistent data. These resources are created based on a manifest file in the IaaS and managed by the BOSH Director, a centralized management server.

BOSH Major Concepts

Page 22: Application M&O on OpenStack

22

BOSH Architecture

Page 23: Application M&O on OpenStack

23

Cloud Foundry

Deploy Cloud Foundry On OpenStack

BOSH-INIT

Release: • bosh • bosh-openstack-cpi Stemcell: • bosh-openstack-kvm-

ubuntu-trusty-go_agent Manifest • Bosh-deploy.yml

OpenStack (IaaS)

VM

BOSH

CPI

Controller

OS Agent

VM

Agent

VM

Agent

VM

1

2

Release: • cf-release Stemcell: • bosh-openstack-kvm-

ubuntu-trusty-go_agent Manifest • CF-deploy.yml

BOSH-CLI 3

4

5

Page 24: Application M&O on OpenStack

24

• Murano: The Murano Project introduces an application catalog to OpenStack, enabling application developers and cloud administrators to publish various cloud-ready applications in a browsable categorized catalog.

• http://apps.openstack.org/

Deployment on OpenStack, Practice #3

Page 25: Application M&O on OpenStack

25

Murano - Applications

Page 26: Application M&O on OpenStack

26

Murano - Lattice https://github.com/LaynePeng/murano_lattice

Page 27: Application M&O on OpenStack

27

Murano - Manage

Page 28: Application M&O on OpenStack

28

Murano - Deployment

Page 29: Application M&O on OpenStack

29

Murano - Deployment

Page 30: Application M&O on OpenStack

30

• Magnum: Magnum is an OpenStack API service to make container orchestration engines such as Docker and K8s available as first class resources in OpenStack. Magnum uses Heat to orchestrate an OS image which contains Docker and K8s and runs that image in either virtual machines or bare metal in a cluster configuration.

Future Research Plan - Magnum

Page 31: Application M&O on OpenStack

31

• Application M&O – Integrated with Infrastructure & Cloud M&O (Application

M&O -> Cloud M&O -> Infrastructure M&O)

– Beyond Deployment, need support Operation. Also should be Development friendly.

– Cloud-native app friendly (12 factor apps, Microservices)

Summary

Page 32: Application M&O on OpenStack

32

• Vote for OpenStack Tokyo Summit Talk: OpenStack Managed Cloud Foundry Service Marketplace, By Layne Peng and Grissom Wang

Advertisement

Page 33: Application M&O on OpenStack

33

Contributors & EMC Labs China

Layne Jie

Vivian Jinlong

Page 34: Application M&O on OpenStack