2. 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
3. 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)
4. • 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
8. 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...
10. • Control and Flexibility
• Scalability
• Open Industry Standard
• Openness and Compatibility
• Flexible Technology
Open
source/design/development/community
Why Openstack
16. • 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
21. 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
Use cases (cont.)
23. 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
24. 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
27. • 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
28. • 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
29. Sample Rails app: Framgia Picture Show
Goals: Upload and store photos to
Openstack Swift
• Rails 4
• Carrierwave
• Openstack Swift (via Fog gem)
Demo
30. - 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
31. • 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
32. 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 :-)