15
OpenStack Virtualization Seminar Otto Hylli

OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

  • Upload
    others

  • View
    20

  • Download
    0

Embed Size (px)

Citation preview

Page 1: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

OpenStack

Virtualization SeminarOtto Hylli

Page 2: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

Introduction (1/2)

• Open source• Cloud computing platform, IaaS, cloud

operating system• Manage compute, storage and networking

resources in a data center• Build a public or private cloud• Use with web dashboard, cli tools or REST

apis

29.3.2016 2

Page 3: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

Indroduction (2/2)

• Consists of many projects (services)(compute, networking, storage)

• In deployments components distributed tomultiple machines

• Support for different virtualization, networkand storage technologies via drivers

• Development overseen by OpenStackfoundation, member companies include Intel,HP, AT&T

29.3.2016 3

Page 4: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

Outline

• Compute, storage and networking concepts• OpenStack architecture• Case: TUT CloudLab• OpenStack demo: provision a web server• Conclusions

29.3.2016 4

Page 5: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

Compute (nova)

• Manage VMs (create, snapshot, pause,terminate)

• Create VMs from images or snapshots withdesired resources (flavor)

• Network access with security groups• Access to resources managed with tenants

(projects), users and roles• VMs managed with different hypervisors

(KVM, qemu, XEN)29.3.2016 5

Page 6: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

Storage

• VMs have ephemeral storage, deleted whenVM terminated

• Block storage (Cinder) offers persistentvolumes

• Object storage (Swift) replicated, access viaREST api

• Shared file system (Manilla)

29.3.2016 6

Page 7: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

Networking (Neutron) (1/2)

• Manage networks (LANs), subnets (ipBlocks)

• Handles networks with overlapping IPs• Connect devices to networks via ports

29.3.2016 7

Page 8: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

Networking (Neutron) (2/2)

• Plugins and agents for different technologies(Cisco, Open Vswitch, Linux bridging)

• Offers load balancing, edge firewalls, andIPsec VPN.

• Example build multi tiered web applications,migrate existing systems to cloud withoutchanging ip addresses

29.3.2016 8

Page 9: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

Conceptual architecture

29.3.2016docs.openstack.org/admin-guide-

cloud/common/get_started_conceptual_architecture.html

9

Page 10: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

Logical Architecture

29.3.2016docs.openstack.org/admin-guide-

cloud/common/get_started_logical_architecture.html

10

Page 11: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

Example: Nova components

• Queue: messaging between components• SQL DB: save system state• Nova-api: handle user Api calls• Nova-scheduler: choose VM host• Nova-compute: use hypervisor APIs• Nova-conductor: mediate DB access

29.3.2016 11

Page 12: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

TUT CloudLab

29.3.2016 12

Page 13: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

CcloudLab: experiences

• Manual installation tedious (2 failed attempts)• Requires understanding (Linux, networking,

OpenStack)• DevStack (installation scripts) handy way to

get hands on experince• Complicated, hard to debug (reboot node and

hope it fixes)• Usage via dashboard quite easy ifbasic

concepts understood29.3.2016 13

Page 14: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

Demo: provision web server

• Objective: provision a VM for hosting a webpage

• Use Horizon dashboard• Choose VM image• Choose flavor• Configure SSH key authentication and

security groups (ping, SSH, http)

29.3.2016 14

Page 15: OpenStack · OpenStack) • DevStack (installation scripts) handy way to get hands on experince • Complicated, hard to debug (reboot node and hope it fixes) • Usage via dashboard

Conclusions

• Complicated system that offers manypossibilities

• Not just simple VM management, networks,data processing, orchestration available

• Different deployment possibilities: you canget what you want, you have to know whatyou want

• Neat when works, frustrating when not

29.3.2016 15