Sunteți pe pagina 1din 32

Build public/private

cloud using Openstack


by Framgia Server Lab
About
FramgiaServerLab
Members(10):
Le Dinh Vu
Tran Nam Son
To Duc Thien
Bui Trung Kien
Nguyen Dinh Huan
Nguyen Van Dung
Nguyen Quang Dung
Nguyen Van Vuong
Nguyen Cuong
Tran 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
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)
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
Cloud computing
Public/Private/Hybrid cloud
Introduction to cloud computing
Cloud computing

Introduction
Public/Private/Hybrid cloud

Introduction
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...

What is Openstack
Control and Flexibility
Scalability
Open Industry Standard
Openness and Compatibility
Flexible Technology

Open
source/design/development/community

Why Openstack
Who use Openstack
Public clouds
Who use Openstack
Private clouds
Who use Openstack
Research
Who use Openstack
Openstack members & contributions
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
Build QA test environment
Use cases (cont.)
Build QA test environment
Use cases (cont.)
Build QA test environment
Use cases (cont.)
Build QA test
environment
(multiple projects)
Use cases (cont.)
Build QA test environment::Results
To provide isolation, each test environment runs in a separate tenant, or project. For
example, theres 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 doesnt 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. OpenStacks Ceilometer component can be
used for monitoring resource consumption of cloud instances, as well.

Use cases (cont.)
CERN (European Organization for
Nuclear)
Openstack in real world
Rackspace hosting
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
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
Option 3:
Install by
yourself
Using Chef +
Vagrant with
multi-nodes
(try
vagrantcloud.
com!)
How to test/setup Openstack
Openstack community in
Vietnam
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
Setup Openstack (without Heat)
Intel Core i5-2320 @ 3.0GHz
RAM: 8G
HDD: 500GB
OS: CentOS
Virtualization: QEMU

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

What we have done so far
Sample Rails app: Framgia Picture Show
Goals: Upload and store photos to
Openstack Swift

Rails 4
Carrierwave
Openstack Swift (via Fog gem)


Demo
- 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
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
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 & A
Thank you for listening :-)

S-ar putea să vă placă și