Top Banner
public/private cloud using Openstack by Framgia Server Lab
32
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Build public private cloud using openstack

Build public/private cloud

using Openstackby Framgia Server Lab

Page 2: Build public private cloud using openstack

About FramgiaServerLab

Members(10):Le Dinh VuTran Nam SonTo Duc ThienBui Trung KienNguyen Dinh HuanNguyen Van DungNguyen Quang DungNguyen Van VuongNguyen CuongTran Trong Hien (left)

Our mission:Build and manage Linux servers. Servers can

be traditional ones or using cloud ones from some cloud services such as Amazon AWS.

Main objectives:- Build servers (app, db or any kind of servers)

ready for deploy- Research methods to deploy source code to

servers- Monitor servers- Auto scaling

Page 3: Build public private cloud using openstack

Session1: Build public or private cloud using

Openstack

● Difficulty: Hard● Applicable: Yes (but not trivial) ● Target environment: inside company to

support general developments (e.g. use as staging servers, QA test environment)

Page 4: Build public private cloud using openstack

• Introduction to cloud computing• What is Openstack• Why Openstack• Who use Openstack• Use cases• Openstack in real world• What we have done so far• Openstack community in Vietnam• How to setup/test Openstack• Demo• Difficulties during research• Conclusion• Q&A

Agenda

Page 5: Build public private cloud using openstack

• Cloud computing• Public/Private/Hybrid cloud

Introduction to cloud computing

Page 6: Build public private cloud using openstack

• Cloud computingIntroduction

Page 7: Build public private cloud using openstack

• Public/Private/Hybrid cloud

Introduction

Page 8: Build public private cloud using openstack

The OpenStack Open Source Cloud Mission:

To produce the ubiquitous Open Source Cloud Computing platform that will meet the needs of public and private clouds regardless of size, by being simple to implement and massively scalable.

What is Openstack• Written in:

Python2• License: Apache

2.0• Founded by: NASA

& Rackspace on 2010

• Compatible with Amazon EC2 & S3

• Supporting: VMware, Xen, Hyper-V...

Page 9: Build public private cloud using openstack

What is Openstack

Page 10: Build public private cloud using openstack

• Control and Flexibility • Scalability • Open Industry Standard • Openness and Compatibility • Flexible Technology

Open source/design/development/community

Why Openstack

Page 11: Build public private cloud using openstack

Who use Openstack

Page 12: Build public private cloud using openstack

Public clouds

Who use Openstack

Page 13: Build public private cloud using openstack

Private clouds

Who use Openstack

Page 14: Build public private cloud using openstack

Research

Who use Openstack

Page 15: Build public private cloud using openstack

Openstack members & contributions

Page 16: Build public private cloud using openstack

• Service providers offering an IaaS compute platform or services higher up the stack (e.g. Rackspace)

• IT departments acting as cloud service providers for business units and project teams (any company)

• Processing big data with tools like Hadoop (NSA)• Scaling compute up and down to meet demand for web

resources and applications (service companies)• High-performance computing (HPC) environments processing

diverse and intensive workloads (CERN)

Use cases

Page 17: Build public private cloud using openstack

Build QA test environment

Use cases (cont.)

Page 18: Build public private cloud using openstack

Build QA test environment

Use cases (cont.)

Page 19: Build public private cloud using openstack

Build QA test environment

Use cases (cont.)

Page 20: Build public private cloud using openstack

Build QA test environment (multiple projects)

Use cases (cont.)

Page 21: Build public private cloud using openstack

Build QA test environment::Results• To provide isolation, each test environment runs in a separate tenant, or project. For

example, there’s one project for the test team, one for the consultant team, and so on.

• Heat templates enable rapid creation of new environments. The test team can create new Heat templates on its own.

• Self-service is provided with OpenStack CLI/Horizon and Heat templates.

• Total cost of the OpenStack solution is lower, because the company doesn’t have to pay for licenses, and can use commodity software and hardware.

• The test team owns their test environments. They can create and delete environments anytime they need to.

• OpenStack lets IT set up quotas for each project. OpenStack’s Ceilometer component can be used for monitoring resource consumption of cloud instances, as well.

Use cases (cont.)

Page 22: Build public private cloud using openstack

CERN (European Organization for Nuclear)

Openstack in real worldRackspace hosting

Page 23: Build public private cloud using openstack

Option 1: Use public clouds (e.g. tryStack.org for free)

Option 2: Using DevStack.org (mostly for Openstack development env)Option 3: Install by yourself

How to test/setup Openstack

Page 24: Build public private cloud using openstack

Option 3: Install by yourself• Using Chef + Vagrant (with devstack

or multi-nodes) • Install directly (using official guides)• Using juju charms (ubuntu cloud

service) (ubuntu only) (https://jujucharms.com/sidebar/search/?text=openstack)

How to test/setup Openstack

Page 25: Build public private cloud using openstack

Option 3: Install by yourself

• Using Chef + Vagrant with multi-nodes (try vagrantcloud.com!)

How to test/setup Openstack

Page 26: Build public private cloud using openstack

Openstack community in Vietnam

Page 27: Build public private cloud using openstack

• Setup Openstack (without Heat)• Manage Openstack services using

Ruby gem “openstack” (a.k.a ruby-openstack)

• Build sample Rails project that using Openstack Swift to store uploaded photos.

What we have done so far

Page 28: Build public private cloud using openstack

• Setup Openstack (without Heat)Intel Core i5-2320 @ 3.0GHzRAM: 8GHDD: 500GBOS: CentOSVirtualization: QEMU

URL: http://192.168.1.107login: framgia/framgia

What we have done so far

Page 29: Build public private cloud using openstack

Sample Rails app: Framgia Picture Show

Goals: Upload and store photos to Openstack Swift

• Rails 4• Carrierwave• Openstack Swift (via Fog gem)

Demo

Page 30: Build public private cloud using openstack

- Laptop core i5 is too slow to run (but desktop with the same core is OK :( )

- Understanding the whole stack takes time!

Difficulties during research

Page 31: Build public private cloud using openstack

• Implement Openstack frastructure is not trivial mission

• But it would be worthy in the future when we build large scale web apps

• So we hope to use at step by step, start from development environment

• Because future of IT would be in the... cloud

Conclusion

Page 32: Build public private cloud using openstack

Ref:• Openstack homepage http://openstack.org

• Building QA test environments with OpenStack

http://www.mirantis.com/blog/building-qa-test-environments-openstack/• Openstack Vietnam Community https://www.facebook.com/VietOpenStack• Openstack at NSA (video session) http://goo.gl/oIjNRW• Openstack in Vietnam (slide) http://goo.gl/IdK4I4

Q & AThank you for listening :-)