SlideShare una empresa de Scribd logo
1 de 19
Descargar para leer sin conexión
OpenStack in 10 minutes 
with DevStack 
Sean Dague / Aug 20th, 2014 
Twitter: @sdague 
Blog: dague.net 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
OpenStack – A Constellation of IaaS Services 
Horizon 
Swift CCiinnddeerr Neutron 
Nova 
Glance 
Keystone 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 2 without notice. 
Ceilometer 
Heat 
Sahara 
Trove
Installing OpenStack from Source 
● Project Git Trees: 30 - 40 
● Python Dependencies: 50 – 100 
● Linux Distro Dependencies: > 100 
● Databases: 5 – 10 
● Configuration Changes to System: … a lot 
Not a Journey for the faint of heart 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 3 without notice.
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 4 without notice. 
● Written in Bash 
● Prompts for 5 passwords 
● Sane defaults for all else 
● Supports latest master + 
supported stable branches 
● Core part of OpenStack's 
testing infrastructure 
● Core part of OpenStack 
developer workflow
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 5 without notice. Let's kick off a DevStack run...
What DevStack Does 
● Installing all prereq software via packages or pip 
● Installing all OpenStack software via git to latest master 
● Configuring and installing working database schema 
● Configuring hypervisor, storage backends, networks 
● Creating service ids and service catalog entries to connect all components 
● Starting all OpenStack services under screen (for easy hot fix) 
● Creating Apache configuration for web dashboard available at 127.0.0.1 
● Creates working Tempest config in /opt/stack/tempest 
WARNING: DevStack will massively modify your OS. Do not run on a laptop. 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 6 without notice.
OpenStack as Layers (Compute Centric View) 
Layer 4: Consumption Services 
Heat Trove Sahara 
Orchestration Database Hadoop Queues 
Layer 3: Optional Enhancements 
Ceilometer Horizon 
Telemetry Dashboard Key Management 
Layer 2: Extended Infrastructure 
Storage Services Network Services Compute Services 
Layer 1: Base Compute Infrastructure 
Nova Glance Keystone 
Marconi 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 7 without notice. 
Ironic 
Barbican 
Compute Image 
Bare Metal 
Neutron Designate 
Networking DNS 
Cinder Swift 
Block Object 
Identity 
Integrated 
Incubated 
http://hackstack.org/x/blog/2013/09/05/openstack-seven-layer-dip-as-a-service/
Alternate Compositions 
Layer 4: Consumption Services 
Heat Trove Sahara 
Orchestration Database Hadoop Queues 
Layer 3: Optional Enhancements 
Ceilometer Horizon 
Telemetry Dashboard Key Management 
Layer 2: Extended Infrastructure 
Storage Services Network Services Compute Services 
Layer 1: Base Compute Infrastructure 
Nova Glance 
Marconi 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 8 without notice. 
Ironic 
Barbican 
Compute Image 
Bare Metal 
Neutron Designate 
Networking DNS 
Swift 
Object 
Keystone 
Identity 
Cinder 
Block
OpenStack Services – Management Glue 
● OpenStack Services as Management Plane 
● Example: Keystone – Identity Services 
– Provides REST API over existing auth systems 
– Generates Tokens (with expiration) for User + Action in OpenStack Cloud 
– Additional Metadata / Grouping for cloud operations 
– Service Catalog to be able to discover all OpenStack end points beyond Keystone 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 9 without notice.
Queue Pattern in OpenStack (Creating a Compute Server) 
Nova API Keystone Nova Sched Glance Nova Conductor Nova Compute 
Database interaction 
REST interaction 
RPC (AMQP) interaction 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 10 without notice.
Watching it in Real Time 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 11 without notice.
Hacking with DevStack 
● Edit code in /opt/stack 
– Be careful about devstack overwriting things, safer to use local branches 
● Connect to screen: screen -rd stack 
● Find service you want restarted 
– Ctrl-C 
– Up Arrow 
– Enter 
● Voila! Your changes are now running. 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 12 without notice.
Customizing DevStack further – when the defaults aren't enough 
devstack/localrc – basic devstack configuration 
ADMIN_PASSWORD=0penstack 
API_RATE_LIMIT=False 
LOGDAYS=1 
LOGFILE=$DEST/logs/stack.sh.log 
MYSQL_PASSWORD=superstack 
RABBIT_HOST=localhost 
RABBIT_PASSWORD=superstack 
SCREEN_LOGDIR=$DEST/logs/screen 
SCREEN_NAME=${SCREEN_NAME:-stack} 
SERVICE_PASSWORD=$ADMIN_PASSWORD 
SERVICE_TOKEN=cd0d1a03-b701-4fcb-801a-8b4d0bc3d06e 
STACK_LOG=stack.sh.log 
VOLUME_BACKING_FILE_SIZE=10000M 
HEAT_CFN_IMAGE_URL="" 
enable_service s-account s-container s-object s-proxy 
SWIFT_HASH=8213897fads879789asdf789 
SWIFT_REPLICAS=1 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 13 without notice.
Devstack Defaults 
Layer 4: Consumption Services 
Trove Sahara 
Database Hadoop Queues 
Heat 
Orchestration 
Layer 3: Optional Enhancements 
Ceilometer 
Telemetry Key Management 
Layer 2: Extended Infrastructure 
Storage Services Network Services Compute Services 
Layer 1: Base Compute Infrastructure 
Marconi 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 14 without notice. 
Ironic 
Barbican 
Bare Metal 
Neutron Designate 
Networking DNS 
Swift 
Object 
Keystone 
Identity 
Cinder 
Block 
Horizon 
Dashboard 
Nova Glance 
Compute Image
And if you need more specifics – local.conf 
[[local|localrc]] 
DATABASE_PASSWORD=pass 
RABBIT_PASSWORD=pass 
SERVICE_TOKEN=pass 
SERVICE_PASSWORD=pass 
ADMIN_PASSWORD=pass 
MULTI_HOST="True" 
API_RATE_LIMIT="False" 
RECLONE="True" 
LOGFILE=/opt/stack/logs/stack.sh.log 
VERBOSE=True 
LOG_COLOR=True 
SCREEN_LOGDIR=/opt/stack/logs 
[[post-config|$NOVA_CONF]] 
[DEFAULT] 
flat_interface = eth1 
vlan_interface = eth1 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 15 without notice. 
Pass through variables
Caveat Developer 
● 4G memory recommended 
– 8G VMs used in OpenStack testing 
● Can run in a VM 
– 2nd Level guests will be slow, but cirros works ok 
● Be extremely careful with changes in /opt/stack 
● Does not reclone git trees by default 
● If all else goes wrong... ./clean.sh should fix it 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 16 without notice.
DevStack doesn't support my particular desired config, what do I do? 
● A good change to DevStack 
– Generally useful configs 
– Not just pass through variables that could be specified via local.conf 
– Fits current architecture 
● Reviewed through review.openstack.org 
– Small review team, please be patient 
– Small patches much better than large ones 
– Questions can be asked on #openstack-qa on freenode.net 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 17 without notice.
Related Projects 
● openstack-dev/devstack-vagrant 
– Vagrant configuration to make DevStack deployment into a VM even easier 
● openstack-dev/grenade 
– Upgrade testing for OpenStack that consumes devstack as a library 
● openstack-infra/devstack-gate 
– Setup tool for building the devstack based configurations we test with in OpenStack 
● openstack-dev/bashate 
– bash style enforcement tool (inspired by pep8) used by bash projects in OpenStack 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 18 without notice.
Thanks! 
Layer 4: Consumption Services 
Heat Trove Sahara 
Orchestration Database Hadoop Queues 
Layer 3: Optional Enhancements 
Ceilometer Horizon 
Telemetry Dashboard Key Management 
Layer 2: Extended Infrastructure 
Storage Services Network Services Compute Services 
Layer 1: Base Compute Infrastructure 
Nova Glance Keystone 
Marconi 
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 19 without notice. 
Ironic 
Barbican 
Compute Image 
Bare Metal 
Neutron Designate 
Networking DNS 
Cinder Swift 
Block Object 
Identity 
Integrated 
Incubated 
http://hackstack.org/x/blog/2013/09/05/openstack-seven-layer-dip-as-a-service/ 
Questions?

Más contenido relacionado

La actualidad más candente

[Open infra] how to calculate the cloud system operating rate
[Open infra] how to calculate the cloud system operating rate[Open infra] how to calculate the cloud system operating rate
[Open infra] how to calculate the cloud system operating rateNalee Jang
 
Kubernetes installation
Kubernetes installationKubernetes installation
Kubernetes installationAhmed Mekawy
 
DevStack: A developers cloud in a box.
DevStack: A developers cloud in a box.DevStack: A developers cloud in a box.
DevStack: A developers cloud in a box.openstackindia
 
Geek Week 2016 - Deep Dive To Openstack
Geek Week 2016 -  Deep Dive To OpenstackGeek Week 2016 -  Deep Dive To Openstack
Geek Week 2016 - Deep Dive To OpenstackHaim Ateya
 
Open stack day 2014 havana from grizzly
Open stack day 2014 havana from grizzlyOpen stack day 2014 havana from grizzly
Open stack day 2014 havana from grizzlyChoe Cheng-Dae
 
Container Orchestration Integration: OpenStack Kuryr
Container Orchestration Integration: OpenStack KuryrContainer Orchestration Integration: OpenStack Kuryr
Container Orchestration Integration: OpenStack KuryrTaku Fukushima
 
Openstack Study Nova 1
Openstack Study Nova 1Openstack Study Nova 1
Openstack Study Nova 1Jinho Shin
 
[오픈소스컨설팅] Linux Network Troubleshooting
[오픈소스컨설팅] Linux Network Troubleshooting[오픈소스컨설팅] Linux Network Troubleshooting
[오픈소스컨설팅] Linux Network TroubleshootingOpen Source Consulting
 
Docker Security Overview
Docker Security OverviewDocker Security Overview
Docker Security OverviewSreenivas Makam
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes NetworkingCJ Cullen
 
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStackAutomated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStackNTT Communications Technology Development
 
Musings on Mesos: Docker, Kubernetes, and Beyond.
Musings on Mesos: Docker, Kubernetes, and Beyond.Musings on Mesos: Docker, Kubernetes, and Beyond.
Musings on Mesos: Docker, Kubernetes, and Beyond.Timothy St. Clair
 
OpenShift v3 Internal networking details
OpenShift v3 Internal networking detailsOpenShift v3 Internal networking details
OpenShift v3 Internal networking detailsEtsuji Nakai
 
Docker 1.5
Docker 1.5Docker 1.5
Docker 1.5rajdeep
 
Integrate Openshift with Cloudforms
Integrate Openshift with CloudformsIntegrate Openshift with Cloudforms
Integrate Openshift with CloudformsMichael Lessard
 
How Helm, The Package Manager For Kubernetes, Works
How Helm, The Package Manager For Kubernetes, WorksHow Helm, The Package Manager For Kubernetes, Works
How Helm, The Package Manager For Kubernetes, WorksMatthew Farina
 
Performance Benchmarking of Clouds Evaluating OpenStack
Performance Benchmarking of Clouds                Evaluating OpenStackPerformance Benchmarking of Clouds                Evaluating OpenStack
Performance Benchmarking of Clouds Evaluating OpenStackPradeep Kumar
 
Introduction to ZooKeeper - TriHUG May 22, 2012
Introduction to ZooKeeper - TriHUG May 22, 2012Introduction to ZooKeeper - TriHUG May 22, 2012
Introduction to ZooKeeper - TriHUG May 22, 2012mumrah
 

La actualidad más candente (20)

Dev stacklabguide
Dev stacklabguideDev stacklabguide
Dev stacklabguide
 
[Open infra] how to calculate the cloud system operating rate
[Open infra] how to calculate the cloud system operating rate[Open infra] how to calculate the cloud system operating rate
[Open infra] how to calculate the cloud system operating rate
 
Kubernetes installation
Kubernetes installationKubernetes installation
Kubernetes installation
 
DevStack: A developers cloud in a box.
DevStack: A developers cloud in a box.DevStack: A developers cloud in a box.
DevStack: A developers cloud in a box.
 
Geek Week 2016 - Deep Dive To Openstack
Geek Week 2016 -  Deep Dive To OpenstackGeek Week 2016 -  Deep Dive To Openstack
Geek Week 2016 - Deep Dive To Openstack
 
Freezer - Vietnam OpenStack Technical Meetup #12
Freezer - Vietnam OpenStack Technical Meetup #12Freezer - Vietnam OpenStack Technical Meetup #12
Freezer - Vietnam OpenStack Technical Meetup #12
 
Open stack day 2014 havana from grizzly
Open stack day 2014 havana from grizzlyOpen stack day 2014 havana from grizzly
Open stack day 2014 havana from grizzly
 
Container Orchestration Integration: OpenStack Kuryr
Container Orchestration Integration: OpenStack KuryrContainer Orchestration Integration: OpenStack Kuryr
Container Orchestration Integration: OpenStack Kuryr
 
Openstack Study Nova 1
Openstack Study Nova 1Openstack Study Nova 1
Openstack Study Nova 1
 
[오픈소스컨설팅] Linux Network Troubleshooting
[오픈소스컨설팅] Linux Network Troubleshooting[오픈소스컨설팅] Linux Network Troubleshooting
[오픈소스컨설팅] Linux Network Troubleshooting
 
Docker Security Overview
Docker Security OverviewDocker Security Overview
Docker Security Overview
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes Networking
 
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStackAutomated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
 
Musings on Mesos: Docker, Kubernetes, and Beyond.
Musings on Mesos: Docker, Kubernetes, and Beyond.Musings on Mesos: Docker, Kubernetes, and Beyond.
Musings on Mesos: Docker, Kubernetes, and Beyond.
 
OpenShift v3 Internal networking details
OpenShift v3 Internal networking detailsOpenShift v3 Internal networking details
OpenShift v3 Internal networking details
 
Docker 1.5
Docker 1.5Docker 1.5
Docker 1.5
 
Integrate Openshift with Cloudforms
Integrate Openshift with CloudformsIntegrate Openshift with Cloudforms
Integrate Openshift with Cloudforms
 
How Helm, The Package Manager For Kubernetes, Works
How Helm, The Package Manager For Kubernetes, WorksHow Helm, The Package Manager For Kubernetes, Works
How Helm, The Package Manager For Kubernetes, Works
 
Performance Benchmarking of Clouds Evaluating OpenStack
Performance Benchmarking of Clouds                Evaluating OpenStackPerformance Benchmarking of Clouds                Evaluating OpenStack
Performance Benchmarking of Clouds Evaluating OpenStack
 
Introduction to ZooKeeper - TriHUG May 22, 2012
Introduction to ZooKeeper - TriHUG May 22, 2012Introduction to ZooKeeper - TriHUG May 22, 2012
Introduction to ZooKeeper - TriHUG May 22, 2012
 

Similar a OpenStack in 10 minutes with Devstack

Open stackbrief happylearning
Open stackbrief happylearningOpen stackbrief happylearning
Open stackbrief happylearningLigong Duan
 
OpenStack State of Fibre Channel
OpenStack State of Fibre ChannelOpenStack State of Fibre Channel
OpenStack State of Fibre Channelhemna6969
 
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph Ceph Day Shanghai - Hyper Converged PLCloud with Ceph
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph Ceph Community
 
Hp moonshot Server
Hp moonshot Server Hp moonshot Server
Hp moonshot Server 성호 윤
 
20150704 benchmark and user experience in sahara weiting
20150704 benchmark and user experience in sahara weiting20150704 benchmark and user experience in sahara weiting
20150704 benchmark and user experience in sahara weitingWei Ting Chen
 
Apache Deep Learning 201 - Philly Open Source
Apache Deep Learning 201 - Philly Open SourceApache Deep Learning 201 - Philly Open Source
Apache Deep Learning 201 - Philly Open SourceTimothy Spann
 
Introduction to Stacki at Atlanta Meetup February 2016
Introduction to Stacki at Atlanta Meetup February 2016Introduction to Stacki at Atlanta Meetup February 2016
Introduction to Stacki at Atlanta Meetup February 2016StackIQ
 
[OpenStack Days Korea 2016] Track1 - Red Hat enterprise Linux OpenStack Platform
[OpenStack Days Korea 2016] Track1 - Red Hat enterprise Linux OpenStack Platform[OpenStack Days Korea 2016] Track1 - Red Hat enterprise Linux OpenStack Platform
[OpenStack Days Korea 2016] Track1 - Red Hat enterprise Linux OpenStack PlatformOpenStack Korea Community
 
Apache Ambari BOF - OpenStack - Hadoop Summit 2013
Apache Ambari BOF - OpenStack - Hadoop Summit 2013Apache Ambari BOF - OpenStack - Hadoop Summit 2013
Apache Ambari BOF - OpenStack - Hadoop Summit 2013Hortonworks
 
Triple o 를 이용한 빠르고 쉬운 open stack 설치
Triple o 를 이용한 빠르고 쉬운 open stack 설치Triple o 를 이용한 빠르고 쉬운 open stack 설치
Triple o 를 이용한 빠르고 쉬운 open stack 설치SangWook Byun
 
[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치
[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치
[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치OpenStack Korea Community
 
Learn OpenStack from trystack.cn
Learn OpenStack from trystack.cnLearn OpenStack from trystack.cn
Learn OpenStack from trystack.cnOpenCity Community
 
CI/CD Pipeline to Deploy and Maintain an OpenStack IaaS Cloud
CI/CD Pipeline to Deploy and Maintain an OpenStack IaaS CloudCI/CD Pipeline to Deploy and Maintain an OpenStack IaaS Cloud
CI/CD Pipeline to Deploy and Maintain an OpenStack IaaS CloudSimon McCartney
 
PaaS on Openstack
PaaS on OpenstackPaaS on Openstack
PaaS on OpenstackOpen Stack
 
Elastic Scalability in MySQL Fabric Using OpenStack
Elastic Scalability in MySQL Fabric Using OpenStackElastic Scalability in MySQL Fabric Using OpenStack
Elastic Scalability in MySQL Fabric Using OpenStackMats Kindahl
 
Introduction openstack-meetup-nov-28
Introduction openstack-meetup-nov-28Introduction openstack-meetup-nov-28
Introduction openstack-meetup-nov-28Sadique Puthen
 

Similar a OpenStack in 10 minutes with Devstack (20)

Open stackbrief happylearning
Open stackbrief happylearningOpen stackbrief happylearning
Open stackbrief happylearning
 
OpenStack Heat
OpenStack HeatOpenStack Heat
OpenStack Heat
 
OpenStack State of Fibre Channel
OpenStack State of Fibre ChannelOpenStack State of Fibre Channel
OpenStack State of Fibre Channel
 
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph Ceph Day Shanghai - Hyper Converged PLCloud with Ceph
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph
 
Hp moonshot Server
Hp moonshot Server Hp moonshot Server
Hp moonshot Server
 
101b-3
101b-3101b-3
101b-3
 
20150704 benchmark and user experience in sahara weiting
20150704 benchmark and user experience in sahara weiting20150704 benchmark and user experience in sahara weiting
20150704 benchmark and user experience in sahara weiting
 
Apache Deep Learning 201 - Philly Open Source
Apache Deep Learning 201 - Philly Open SourceApache Deep Learning 201 - Philly Open Source
Apache Deep Learning 201 - Philly Open Source
 
DR_PRESENT 1
DR_PRESENT 1DR_PRESENT 1
DR_PRESENT 1
 
Core os dna_automacon
Core os dna_automaconCore os dna_automacon
Core os dna_automacon
 
Introduction to Stacki at Atlanta Meetup February 2016
Introduction to Stacki at Atlanta Meetup February 2016Introduction to Stacki at Atlanta Meetup February 2016
Introduction to Stacki at Atlanta Meetup February 2016
 
[OpenStack Days Korea 2016] Track1 - Red Hat enterprise Linux OpenStack Platform
[OpenStack Days Korea 2016] Track1 - Red Hat enterprise Linux OpenStack Platform[OpenStack Days Korea 2016] Track1 - Red Hat enterprise Linux OpenStack Platform
[OpenStack Days Korea 2016] Track1 - Red Hat enterprise Linux OpenStack Platform
 
Apache Ambari BOF - OpenStack - Hadoop Summit 2013
Apache Ambari BOF - OpenStack - Hadoop Summit 2013Apache Ambari BOF - OpenStack - Hadoop Summit 2013
Apache Ambari BOF - OpenStack - Hadoop Summit 2013
 
Triple o 를 이용한 빠르고 쉬운 open stack 설치
Triple o 를 이용한 빠르고 쉬운 open stack 설치Triple o 를 이용한 빠르고 쉬운 open stack 설치
Triple o 를 이용한 빠르고 쉬운 open stack 설치
 
[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치
[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치
[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치
 
Learn OpenStack from trystack.cn
Learn OpenStack from trystack.cnLearn OpenStack from trystack.cn
Learn OpenStack from trystack.cn
 
CI/CD Pipeline to Deploy and Maintain an OpenStack IaaS Cloud
CI/CD Pipeline to Deploy and Maintain an OpenStack IaaS CloudCI/CD Pipeline to Deploy and Maintain an OpenStack IaaS Cloud
CI/CD Pipeline to Deploy and Maintain an OpenStack IaaS Cloud
 
PaaS on Openstack
PaaS on OpenstackPaaS on Openstack
PaaS on Openstack
 
Elastic Scalability in MySQL Fabric Using OpenStack
Elastic Scalability in MySQL Fabric Using OpenStackElastic Scalability in MySQL Fabric Using OpenStack
Elastic Scalability in MySQL Fabric Using OpenStack
 
Introduction openstack-meetup-nov-28
Introduction openstack-meetup-nov-28Introduction openstack-meetup-nov-28
Introduction openstack-meetup-nov-28
 

Último

Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 

Último (20)

Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 

OpenStack in 10 minutes with Devstack

  • 1. OpenStack in 10 minutes with DevStack Sean Dague / Aug 20th, 2014 Twitter: @sdague Blog: dague.net © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
  • 2. OpenStack – A Constellation of IaaS Services Horizon Swift CCiinnddeerr Neutron Nova Glance Keystone © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 2 without notice. Ceilometer Heat Sahara Trove
  • 3. Installing OpenStack from Source ● Project Git Trees: 30 - 40 ● Python Dependencies: 50 – 100 ● Linux Distro Dependencies: > 100 ● Databases: 5 – 10 ● Configuration Changes to System: … a lot Not a Journey for the faint of heart © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 3 without notice.
  • 4. © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 4 without notice. ● Written in Bash ● Prompts for 5 passwords ● Sane defaults for all else ● Supports latest master + supported stable branches ● Core part of OpenStack's testing infrastructure ● Core part of OpenStack developer workflow
  • 5. © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 5 without notice. Let's kick off a DevStack run...
  • 6. What DevStack Does ● Installing all prereq software via packages or pip ● Installing all OpenStack software via git to latest master ● Configuring and installing working database schema ● Configuring hypervisor, storage backends, networks ● Creating service ids and service catalog entries to connect all components ● Starting all OpenStack services under screen (for easy hot fix) ● Creating Apache configuration for web dashboard available at 127.0.0.1 ● Creates working Tempest config in /opt/stack/tempest WARNING: DevStack will massively modify your OS. Do not run on a laptop. © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 6 without notice.
  • 7. OpenStack as Layers (Compute Centric View) Layer 4: Consumption Services Heat Trove Sahara Orchestration Database Hadoop Queues Layer 3: Optional Enhancements Ceilometer Horizon Telemetry Dashboard Key Management Layer 2: Extended Infrastructure Storage Services Network Services Compute Services Layer 1: Base Compute Infrastructure Nova Glance Keystone Marconi © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 7 without notice. Ironic Barbican Compute Image Bare Metal Neutron Designate Networking DNS Cinder Swift Block Object Identity Integrated Incubated http://hackstack.org/x/blog/2013/09/05/openstack-seven-layer-dip-as-a-service/
  • 8. Alternate Compositions Layer 4: Consumption Services Heat Trove Sahara Orchestration Database Hadoop Queues Layer 3: Optional Enhancements Ceilometer Horizon Telemetry Dashboard Key Management Layer 2: Extended Infrastructure Storage Services Network Services Compute Services Layer 1: Base Compute Infrastructure Nova Glance Marconi © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 8 without notice. Ironic Barbican Compute Image Bare Metal Neutron Designate Networking DNS Swift Object Keystone Identity Cinder Block
  • 9. OpenStack Services – Management Glue ● OpenStack Services as Management Plane ● Example: Keystone – Identity Services – Provides REST API over existing auth systems – Generates Tokens (with expiration) for User + Action in OpenStack Cloud – Additional Metadata / Grouping for cloud operations – Service Catalog to be able to discover all OpenStack end points beyond Keystone © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 9 without notice.
  • 10. Queue Pattern in OpenStack (Creating a Compute Server) Nova API Keystone Nova Sched Glance Nova Conductor Nova Compute Database interaction REST interaction RPC (AMQP) interaction © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 10 without notice.
  • 11. Watching it in Real Time © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 11 without notice.
  • 12. Hacking with DevStack ● Edit code in /opt/stack – Be careful about devstack overwriting things, safer to use local branches ● Connect to screen: screen -rd stack ● Find service you want restarted – Ctrl-C – Up Arrow – Enter ● Voila! Your changes are now running. © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 12 without notice.
  • 13. Customizing DevStack further – when the defaults aren't enough devstack/localrc – basic devstack configuration ADMIN_PASSWORD=0penstack API_RATE_LIMIT=False LOGDAYS=1 LOGFILE=$DEST/logs/stack.sh.log MYSQL_PASSWORD=superstack RABBIT_HOST=localhost RABBIT_PASSWORD=superstack SCREEN_LOGDIR=$DEST/logs/screen SCREEN_NAME=${SCREEN_NAME:-stack} SERVICE_PASSWORD=$ADMIN_PASSWORD SERVICE_TOKEN=cd0d1a03-b701-4fcb-801a-8b4d0bc3d06e STACK_LOG=stack.sh.log VOLUME_BACKING_FILE_SIZE=10000M HEAT_CFN_IMAGE_URL="" enable_service s-account s-container s-object s-proxy SWIFT_HASH=8213897fads879789asdf789 SWIFT_REPLICAS=1 © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 13 without notice.
  • 14. Devstack Defaults Layer 4: Consumption Services Trove Sahara Database Hadoop Queues Heat Orchestration Layer 3: Optional Enhancements Ceilometer Telemetry Key Management Layer 2: Extended Infrastructure Storage Services Network Services Compute Services Layer 1: Base Compute Infrastructure Marconi © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 14 without notice. Ironic Barbican Bare Metal Neutron Designate Networking DNS Swift Object Keystone Identity Cinder Block Horizon Dashboard Nova Glance Compute Image
  • 15. And if you need more specifics – local.conf [[local|localrc]] DATABASE_PASSWORD=pass RABBIT_PASSWORD=pass SERVICE_TOKEN=pass SERVICE_PASSWORD=pass ADMIN_PASSWORD=pass MULTI_HOST="True" API_RATE_LIMIT="False" RECLONE="True" LOGFILE=/opt/stack/logs/stack.sh.log VERBOSE=True LOG_COLOR=True SCREEN_LOGDIR=/opt/stack/logs [[post-config|$NOVA_CONF]] [DEFAULT] flat_interface = eth1 vlan_interface = eth1 © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 15 without notice. Pass through variables
  • 16. Caveat Developer ● 4G memory recommended – 8G VMs used in OpenStack testing ● Can run in a VM – 2nd Level guests will be slow, but cirros works ok ● Be extremely careful with changes in /opt/stack ● Does not reclone git trees by default ● If all else goes wrong... ./clean.sh should fix it © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 16 without notice.
  • 17. DevStack doesn't support my particular desired config, what do I do? ● A good change to DevStack – Generally useful configs – Not just pass through variables that could be specified via local.conf – Fits current architecture ● Reviewed through review.openstack.org – Small review team, please be patient – Small patches much better than large ones – Questions can be asked on #openstack-qa on freenode.net © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 17 without notice.
  • 18. Related Projects ● openstack-dev/devstack-vagrant – Vagrant configuration to make DevStack deployment into a VM even easier ● openstack-dev/grenade – Upgrade testing for OpenStack that consumes devstack as a library ● openstack-infra/devstack-gate – Setup tool for building the devstack based configurations we test with in OpenStack ● openstack-dev/bashate – bash style enforcement tool (inspired by pep8) used by bash projects in OpenStack © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 18 without notice.
  • 19. Thanks! Layer 4: Consumption Services Heat Trove Sahara Orchestration Database Hadoop Queues Layer 3: Optional Enhancements Ceilometer Horizon Telemetry Dashboard Key Management Layer 2: Extended Infrastructure Storage Services Network Services Compute Services Layer 1: Base Compute Infrastructure Nova Glance Keystone Marconi © Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change 19 without notice. Ironic Barbican Compute Image Bare Metal Neutron Designate Networking DNS Cinder Swift Block Object Identity Integrated Incubated http://hackstack.org/x/blog/2013/09/05/openstack-seven-layer-dip-as-a-service/ Questions?