Bitnami Bootcamp. OpenStack

41
“OpenStack” Alberto Molina Coballes Teacher at IES Gonzalo Nazareno @alberto_molina [email protected]

Transcript of Bitnami Bootcamp. OpenStack

Page 1: Bitnami Bootcamp. OpenStack

“OpenStack”

Alberto Molina Coballes Teacher at IES Gonzalo Nazareno @alberto_molina

[email protected]

Page 2: Bitnami Bootcamp. OpenStack

Table of Contents

• Infrastructure evolution

• From public to private clouds

• Open Source Cloud Platforms

• Why OpenStack?

• OpenStack architecture and components

• OpenStack in action

• Private cloud administration

• References

• OpenStack Doc: docs.openstack.org

• http://iesgn.github.io/cloud/

Page 3: Bitnami Bootcamp. OpenStack

Infrastructure evolution

Page 4: Bitnami Bootcamp. OpenStack

Traditional infrastructure

• Equipment purchase

• Rack mount

• Physical connection to the network

• “Manual” OS installation and configuration

• Storage provided by NAS or SAN

• Static infrastructure

• Same configurations for years

• Users with no direct access

Page 5: Bitnami Bootcamp. OpenStack

Virtual Machines

• Several VMs on every physical machine

• VMs managed by the hypervisor

• VMs connected through virtual networks

• Without significant changes in storage

• Similar management to traditional infrastructure

Page 6: Bitnami Bootcamp. OpenStack

Cloud Infrastructure

• Machines virtualization

• Network virtualization

• Storage virtualization

• Resource pooling

• Dynamic infrastructure

• Automatic configuration

• The user manages his or her own infrastructure

Page 7: Bitnami Bootcamp. OpenStack
Page 8: Bitnami Bootcamp. OpenStack

From public to

private clouds

Page 9: Bitnami Bootcamp. OpenStack

The NIST Definition: Essential characteristics

• On demand self-service

• Broad network access

• Resource pooling

• Rapid elasticity

• Measured service

Page 10: Bitnami Bootcamp. OpenStack

The NIST Definition: Deployments models

• Public cloud

• Private Cloud

• Community Cloud

• Hybrid Cloud

Page 11: Bitnami Bootcamp. OpenStack

The NIST Definition: Service model

• Software as a Service (SaaS)

• Platforms as a Service (PaaS)

• Infrastructure as a Service (IaaS)

• Reference

• The NIST Definition of Cloud Computing

Page 13: Bitnami Bootcamp. OpenStack

Why private cloud is needed?

• Public clouds are fine but some points must be

considered carefully: • Privacy

• Security

• Vendor lock-in

• Control over data

• Customization

• Performance?

• Overall Cost?

• A private or hybrid cloud may be an option to take

into account

Page 14: Bitnami Bootcamp. OpenStack

Infrastructure as a Service

• Public cloud providers: AWS, GCE & Azure. Is there

room for someone else?

• Private Cloud: VMware and Open Source platforms

• In this talk we will focus on IaaS and private cloud,

mainly in an Open Source Cloud Platform called

OpenStack

Page 15: Bitnami Bootcamp. OpenStack

Open Source

Cloud Platforms

Page 16: Bitnami Bootcamp. OpenStack

CloudStack

• Former cloud.com

• Purchased by citrix on 2011

• Donated to Apache Software

Foundation on 2012

• Supports VMware, KVM,

XenServer, XCP and Hyper-V

• Easy to use Web interface

• Compatible with AWS EC2 and S3 APIs

Page 17: Bitnami Bootcamp. OpenStack

Eucalyptus

• Oldest and most mature? Open Source Cloud

platform

• Focus on AWS compatibility

• Licensing issues in the past (Open core?)

• Supports VMware, KVM and Xen

• euca2ools: AWS compatible CLI

• Developed by Eucalyptus Systems

• Eucalyptus Systems purchased by HP in Sept 2014

Page 18: Bitnami Bootcamp. OpenStack

OpenNebula

• Data Center Virtualization Software

• Claim to be a VMware vCloud competitor

• Compatible with AWS EC2 API

• OpenNebula Marketplace

• Developed by OpenNebula Community

• Easier to install and configure?

Page 19: Bitnami Bootcamp. OpenStack

OpenStack

• Next item in detail

Page 20: Bitnami Bootcamp. OpenStack

Why OpenStack?

Page 21: Bitnami Bootcamp. OpenStack

OpenStack

“Openstack is an open-source IaaS cloud computing platform. Its mission is

to provide a flexible solution for both public and private clouds of any size,

and for this matter two basic requirements are considered:

clouds must be simple to implement and massively scalable.”

Page 22: Bitnami Bootcamp. OpenStack

OpenStack releases

Name Release date New components

Austin October 2010 Nova and Swift

Bexar February 2011 Glance

Cactus April 2011

Diablo September 2011

Essex April 2012 Horizon, Keystone

Folsom October 2012 Quantum, Cinder

Grizzly April 2013

Havana October 2013 Neutron, Heat, Ceilometer

Icehouse April 2014 TripleO, Ironic, Trove, Marconi

Juno October 2014 Sahara

Bitergia – The OpenStack Juno release: activity and organizations

Page 23: Bitnami Bootcamp. OpenStack

OpenStack principles

• All of the code for OpenStack is freely available

under the Apache 2.0 license

• Support all Available Hypervisors

• Implement REST APIs and Open Image Format

• Open design process: • Blueprints

• Public repositories (github)

• Commitment to drive and adopt open standards

• Open community and transparency

Page 24: Bitnami Bootcamp. OpenStack

Source: cloudscaling

Companies Supporting The OpenStack Foundation

Page 25: Bitnami Bootcamp. OpenStack

Why OpenStack?

• We want to manage our own software to provide

IaaS

• Open Source

• Stable project, well supported by companies and

with a promising future

• It has a lot of functionalities

• Works fine on conventional hardware

• Easy to install (ha!)

Page 26: Bitnami Bootcamp. OpenStack

OpenStack architecture

and components

Page 27: Bitnami Bootcamp. OpenStack

OpenStack components

• Core components • Compute (nova)

• Object Storage (swift)

• Identity (keystone)

• Image (glance)

• Block Storage (cinder)

• Dashboard (horizon)

• Networking (neutron)

• Other components • DBaaS (trove)

• DNSaaS (designate)

• Orchestration (heat)

• Metering (ceilometer)

• Baremetal (ironic)

• TripleO

• Queue and Notif (zaqar)

Page 29: Bitnami Bootcamp. OpenStack
Page 30: Bitnami Bootcamp. OpenStack

OpenStack in action

Page 31: Bitnami Bootcamp. OpenStack

Basic Concepts

• Image: Preconfigured OS image ready to be launched

• Instance: Virtual machine that runs inside the cloud

• Flavor: Virtual machine specs (RAM, vCPUs, …)

• Fixed IP: IP assigned when instance is launched and

used for communication between instances

• Floating IP: Optional IP used for communication with

networks outside the cloud

• Security group: Firewall rules associated to an

instance

Page 32: Bitnami Bootcamp. OpenStack

OpenStack at IES Gonzalo Nazareno

Page 33: Bitnami Bootcamp. OpenStack

Using OpenStack

• https://albertomolina.wordpress.com/2013/11/20/how-to-

launch-an-instance-on-openstack-i-horizon/

• https://albertomolina.wordpress.com/2013/11/20/how-to-

launch-an-instance-on-openstack-ii-openstack-cli/

• https://albertomolina.wordpress.com/2013/11/20/how-to-

launch-an-instance-on-openstack-iii-python-novaclient-

library/

Page 34: Bitnami Bootcamp. OpenStack

Private cloud administration

Page 35: Bitnami Bootcamp. OpenStack

Enterprise “legacy” applications

• Not fault-tolerant

• Must run on smart hardware

• Typically scales up

• Runs on long-lived machines (virtual or not)

• Redundancy provided by a lower level

Page 36: Bitnami Bootcamp. OpenStack

“Cloud ready” applications

• Fault-tolerant (resilience)

• Typically runs on short-lived machines

• Scale out

• Elasticity

• Smart applications

• Conventional hardware

• Automation

• Agility

• DevOps

Page 37: Bitnami Bootcamp. OpenStack

“Cloud ready” or “legacy” applications?

• Nowadays most of the applications used are not

cloud ready

• IaaS is an evolution of virtualization for legacy

applications (virtualization 2.0)

• Block storage is a SAN equivalent

• Load balancers vs high availability clusters

• Re-architecting legacy applications

Keith Basil - Introduction and Overview of OpenStack for IaaS

Randy Bias - Pets vs. Cattle: The Elastic Cloud Story

Page 38: Bitnami Bootcamp. OpenStack

Cloud administration

• The main purpose of a system administrator is to

keep applications up and running properly and

never lost data

• In this area there are two differents profiles:

• Cloud application system administrator: Deploys and

maintains applications running on the cloud

• Cloud system administrator: Manages the cloud platform

Page 39: Bitnami Bootcamp. OpenStack

Cloud application system administrator

• Common to public or private clouds

• Overall knowledge of cloud resources

• REST APIs, specifically AWS “de facto standard”

• Cloud Orchestration: Cloudformation

• Image Management and transformation

• Instance life cycle

• Object Storage

• Block Storage

• Monitoring

• Automation

• Configuration management

Page 40: Bitnami Bootcamp. OpenStack

Cloud system administrator

• Not for juniors ;)

• Deep knowledge of underlying technologies:

virtualization, networking and storage

• Monitoring

• Automation

• Configuration management

Page 41: Bitnami Bootcamp. OpenStack

Thanks

Alberto Molina Coballes Teacher at IES Gonzalo Nazareno @alberto_molina

[email protected]