SlideShare a Scribd company logo
Friday, November 8, 13
OpenStack Deployment with
Chef Workshop
November 8, 2013
Justin Shepherd
Matt Ray

Friday, November 8, 13
Getting Started
•Instructions: http://bit.ly/HKchef
•Download mirrors at:
•http://119.9.70.64
•http://192.168.1.10
•SSID 'opscode-dd-wrt'
•Background then deep-dive walkthrough
Friday, November 8, 13
Introductions
•Justin Shepherd
•Rackspace
•Private Cloud Architect

•Matt Ray
•Opscode
•Cloud Integrations Lead

•justin.shepherd@rackspace.com

•matt@opscode.com

•GitHub: galstrom21

•GitHub: mattray

•IRC: galstrom

•IRC: mattray

•

•Twitter: mattray

Friday, November 8, 13
Overview & Current Status of
Chef for OpenStack
Friday, November 8, 13
Chef for OpenStack: Project
•Community around the automated deployment and
management of OpenStack
•Reduce fragmentation and increase collaboration
•Deploying OpenStack is not "Secret Sauce"
•Project, not a 'Product'
•Apache 2 License
Friday, November 8, 13
Community

•#openstack-chef on irc.freenode.net
•groups.google.com/group/opscode-chef-openstack
•@chefopenstack

Friday, November 8, 13
Who's Involved?
•AT&T
•Dell
•DreamHost
•Gap
•HP
•HubSpot
•IBM
Friday, November 8, 13

•Korea Telecom
•Opscode
•Rackspace
•SUSE
•and many more
Chef Requirements
•Chef 11
•Ruby 1.9.x
•Foodcritic, ChefSpec for testing
•attribute-driven by Environments
•platform logic in attributes
•currently packages-only installation
Friday, November 8, 13
StackForge: Cookbooks
•"Official" OpenStack StackForge repositories
•github.com/stackforge/cookbook-openstack-*
•gated by review.openstack.org
•OpenStack services for Grizzly cookbooks
•block-storage, common, compute, dashboard, identity,
image, metering, network, object-storage, orchestration
•Operational support cookbooks
•ops-database, ops-messaging
Friday, November 8, 13
StackForge: Deployment
•Chef repository for deploying Grizzly
•example Environments and Roles
•example "All-in-One" Vagrant deployment
•github.com/stackforge/openstack-chef-repo
•Gated by review.openstack.org
•More single and multi-node testing coming
Friday, November 8, 13
Reference Implementation
•Deployment examples in documentation
•All-in-One Compute
•Single Controller + N Compute
•more coming
•Will provide example HA configurations
•Operations outside of scope of core repository
•logging, monitoring, provisioning
Friday, November 8, 13
docs.opscode.com/
openstack.html
Friday, November 8, 13
Documentation
•docs.opscode.com/openstack.html
•Architecture
•Deployment Prerequisites
•Installation
•Development
•Cookbooks and Repositories
•Example Deployments
•github.com/opscode/chef-docs
•Creative Commons, no CLA required
Friday, November 8, 13
Example Deployments
•Vagrant "All-in-One" for development/testing
•Developer lab deployment "1+N"
•Single controller, N compute boxes
•5 boxes, consumer-grade hardware
•Opscode production deployment "HA+N"
•HA controller, N compute and storage
•30 boxes, enterprise-grade hardware
Friday, November 8, 13
StackForge: Grizzly Status
•Operating Systems: Ubuntu 12.04, openSUSE 12.3, SLES 11 SP2
•Databases: MySQL, SQLite (testing)
•Messaging: RabbitMQ
•Compute: KVM, LXC, Qemu
•Network: Nova + Quantum (Open vSwitch)
•Block Storage: LVM
•Object Storage: Swift
•Dashboard: Apache or Nginx
Friday, November 8, 13
StackForge: Roadmap
•branching for Havana soon
•'master' moved to 'grizzly'
•metering and orchestration cookbooks
already started
•More contributors!
•Icehouse branch
Friday, November 8, 13
StackForge: Roadmap
•Operating Systems: Red Hat 6
•Databases: DB2, Postgres
•Compute: Baremetal, Docker, ESX, Hyper-V, Xen
•Messaging: Qpid
•Network: NSX, OpenDaylight
•Block Storage: Ceph, NetApp
•Object Storage: Ceph
•Source builds via Omnibus
Friday, November 8, 13
Opscode Community Summit

•Developer/Community unconference
•November 12 & 13 in Seattle, WA
•wiki.opscode.com/display/chef/
Community+Summit+3+-+2013

Friday, November 8, 13
knife openstack
Friday, November 8, 13
knife openstack
$ knife openstack
Available openstack subcommands: (for details, knife
SUB-COMMAND --help)
** OPENSTACK COMMANDS **
knife openstack flavor list (options)
knife openstack group list (options)
knife openstack image list (options)
knife openstack server create (options)
knife openstack server delete SERVER [SERVER] (options)
knife openstack server list (options)
Friday, November 8, 13
knife openstack flavor list
$ knife openstack flavor list
ID Name
Virtual CPUs RAM
1
m1.tiny
1
512 MB
2
m1.small
1
2048 MB
3
m1.medium 2
4096 MB
4
m1.large
4
8192 MB
5
m1.xlarge 8
16384 MB

Friday, November 8, 13

Disk
0 GB
10 GB
10 GB
10 GB
10 GB
knife openstack group list
$ knife openstack group list
Name
Protocol From
To
default tcp
22
22
default icmp
-1
-1
haproxy tcp
22002 22002

Friday, November 8, 13

CIDR
0.0.0.0/0
0.0.0.0/0
0.0.0.0/0

Description
default
default
22022
knife openstack image list
$ knife openstack image list
ID

Name

Snapshot

03860dc3-f4b5-4ecf-bb13-804d6618cf15

canonical-ubuntu-10.04-amd64

no

663656ce-2fe4-4164-b842-214f221cff55

canonical-ubuntu-12.04-amd64

no

ad8a6e48-ea86-4afc-8aee-f427c02eb3ce

canonical-ubuntu-13.04-amd64

no

6efbafc0-fcb1-4623-9f7a-17125bba413a

centos-6.2

no

e0184596-577f-4eb0-9887-d70117c6b77b

debian-6.0.4-amd64

no

Friday, November 8, 13
knife openstack server list
$ knife openstack server list
Instance ID

Name

Public IP

08f2d9f7-eeb0-45e7-8562-63aed8f096cc

os-45539345723309377

43c6bbf5-b397-4986-8aec-392d955ce5b1

Flavor

Image

Keypair

State

50.56.12.229

2

737969f8-6091-4896-ba9c-f3cf63bd25c5

rs-demo

active

os-9924426691020416

50.56.12.232

2

737969f8-6091-4896-ba9c-f3cf63bd25c5

rs-demo

active

c1b9e3df-e566-4378-8a52-ed998b516608

os-553425714287088

50.56.12.230

2

737969f8-6091-4896-ba9c-f3cf63bd25c5

rs-demo

active

f3edc5da-ef99-4acb-a141-d957e09809e3

os-07459550287500682

50.56.12.231

2

737969f8-6091-4896-ba9c-f3cf63bd25c5

rs-demo

active

Friday, November 8, 13

Private IP
knife openstack server create
$ knife openstack server create -a -f 2 -I 737969f8-6091-4896-ba9c-f3cf63bd25c5 -S rs-demo -i ~/.ssh/rs-demo.pem -x ubuntu -r "role[base]"
Instance Name: os-45539345723309377
Instance ID: 08f2d9f7-eeb0-45e7-8562-63aed8f096cc
Waiting for server.........
Flavor: 2
Image: 737969f8-6091-4896-ba9c-f3cf63bd25c5
SSH Identity File: /Users/mray/.ssh/rs-demo.pem
SSH Keypair: rs-demo
Public IP Address: 10.241.0.12
Floating IP Address: 50.56.12.229
Waiting for sshd.....done
Bootstrapping Chef on 50.56.12.229
Instance Name: os-45539345723309377
Instance ID: 08f2d9f7-eeb0-45e7-8562-63aed8f096cc
Flavor: 2
Image: 737969f8-6091-4896-ba9c-f3cf63bd25c5
SSH Keypair: rs-demo
Public IP Address: 50.56.12.229
Environment: _default
Run List: role[base]

Friday, November 8, 13
knife openstack server create

Friday, November 8, 13
knife openstack Compatibility
•Uses the OpenStack API
•Diablo, Essex, Folsom, Grizzly, Havana, trunk
•Cloudscaling
•Crowbar
•DreamHost
•MetaCloud
•Nebula
•Piston
•Rackspace Private Cloud
Friday, November 8, 13
knife openstack Resources
•knife openstack --help
•docs.opscode.com/
plugin_knife_openstack.html
•github.com/opscode/knife-openstack
•tickets.opscode.com/browse/KNIFE/
component/

Friday, November 8, 13
knife openstack Roadmap
•Continuous Integration for Opscodesupported knife plugins soon
•Testing against multiple deployments
•0.9.0: json, API choices, alt networks
•1.0.0: common knife-cloud base class
•1.1.0: Network enhancements
•1.2.0 guid cleanup, other niceties
Friday, November 8, 13
Vagrant All-in-One Walkthrough
Friday, November 8, 13
"The Plan"
•Setup
•Tools
•Vagrantfile
•Environment
•Roles
•Cookbooks
•Dashboard
•knife openstack
Friday, November 8, 13
Setup
•Instructions: http://bit.ly/HKchef
•Vagrant + Virtualbox installed
•Workshop.tar.gz/zip downloaded and
unpacked
•Download Ubuntu 12.04 box

Friday, November 8, 13
Tools used
•Bento
•JEOS images
•github.com/opscode/bento
•Packer
•image builder
•packer.io
•Chef Zero
•Berkshelf
Friday, November 8, 13
Vagrantfile
•Vagrant plugins
•vagrant-berkshelf
•vagrant-chef-zero
•vagrant-omnibus
•chef-client provider
•environment = vagrant
•run_list = [ "recipe[apt]", "role[allinonecompute]" ]
Friday, November 8, 13
Environment

•vagrant setup for all-in-one
•developer_mode = true
•services each have attributes
•network setup

Friday, November 8, 13
Roles

•allinone-compute
• os-compute-single-controller
• os-compute-worker

Friday, November 8, 13
os-compute-single-controller
•os-base
•os-ops-database
•openstack-ops-database::openstack-db
•os-ops-messaging
•os-identity
•os-image
•os-network
•...
Friday, November 8, 13
os-compute-single-controller 2
•os-compute-setup
•os-compute-conductor
•os-compute-scheduler
•os-compute-api
•os-block-storage
•os-compute-cert
•os-compute-vncproxy
•os-dashboard
Friday, November 8, 13
os-compute-worker

• os-base
• openstack-compute::compute

Friday, November 8, 13
Dashboard

•http://localhost:8443
•admin/admin

Friday, November 8, 13
knife-openstack

•Chef Zero creds
•OpenStack creds
•knife openstack ...

Friday, November 8, 13
Thanks!
Justin Shepherd
justin.shepherd@rackspace.com
Matt Ray
matt@opscode.com

Friday, November 8, 13

More Related Content

PDF
Deploying OpenStack with Chef
PDF
Atlanta OpenStack 2014 Chef for OpenStack Deployment Workshop
PDF
OpenStack Deployments with Chef
PDF
Chef for OpenStack: Grizzly Roadmap
PDF
OpenStack Austin Meetup January 2014: Chef + OpenStack
PDF
Boston/NYC Chef for OpenStack Hack Days
PDF
SCALE12X Build a Cloud Day: Chef: The Swiss Army Knife of Cloud Infrastructure
PDF
Chef & OpenStack: OSCON 2014
Deploying OpenStack with Chef
Atlanta OpenStack 2014 Chef for OpenStack Deployment Workshop
OpenStack Deployments with Chef
Chef for OpenStack: Grizzly Roadmap
OpenStack Austin Meetup January 2014: Chef + OpenStack
Boston/NYC Chef for OpenStack Hack Days
SCALE12X Build a Cloud Day: Chef: The Swiss Army Knife of Cloud Infrastructure
Chef & OpenStack: OSCON 2014

What's hot (19)

PDF
Chef for OpenStack: OpenStack Spring Summit 2013
PDF
Chef 11 Preview/Chef for OpenStack
PDF
Chef for OpenStack December 2012
PDF
Managing Complexity at Velocity
PDF
TXLF: Chef- Software Defined Infrastructure Today & Tomorrow
PDF
OpenStack Summit Vancouver: Lessons learned on upgrades
PDF
London open stack meet up - nov 2015
PPTX
Openstack Study Nova 1
PPTX
OpenStack and private cloud
PDF
Introduction openstack-meetup-nov-28
ODP
Puppet and Apache CloudStack
PPTX
Hostvn ceph in production v1.1 dungtq
PDF
Build cloud like Rackspace with OpenStack Ansible
PDF
Bare Metal to OpenStack with Razor and Chef
PDF
Ninja, Choose Your Weapon!
PPTX
Openstack meetup amsterdam (1)
PDF
Kubernetes Boston — Custom High Availability of Kubernetes
PPTX
Immutable infrastructure 介紹與實做:以 kolla 為例
PDF
Masterless Puppet Using AWS S3 Buckets and IAM Roles
Chef for OpenStack: OpenStack Spring Summit 2013
Chef 11 Preview/Chef for OpenStack
Chef for OpenStack December 2012
Managing Complexity at Velocity
TXLF: Chef- Software Defined Infrastructure Today & Tomorrow
OpenStack Summit Vancouver: Lessons learned on upgrades
London open stack meet up - nov 2015
Openstack Study Nova 1
OpenStack and private cloud
Introduction openstack-meetup-nov-28
Puppet and Apache CloudStack
Hostvn ceph in production v1.1 dungtq
Build cloud like Rackspace with OpenStack Ansible
Bare Metal to OpenStack with Razor and Chef
Ninja, Choose Your Weapon!
Openstack meetup amsterdam (1)
Kubernetes Boston — Custom High Availability of Kubernetes
Immutable infrastructure 介紹與實做:以 kolla 為例
Masterless Puppet Using AWS S3 Buckets and IAM Roles
Ad

Viewers also liked (20)

PPT
2004 01 10 Chef Sa V01
DOC
Sakai Tool
PDF
8 Trends of New Restaurants - New Orleans 2016
PPTX
Chef Compliance & Workflow w/Delivery
PDF
Modern Web App Development using ClojureScript & React.js / Baishampayan “BG”...
PDF
Introduction to Apache Synapse
PPTX
Event Driven Architecture - MeshU - Ilya Grigorik
PDF
Best Practice for Deploying Application with Heat
PDF
TXLF: Automated Deployment of OpenStack with Chef
PDF
Are We Done Yet ? Testing Your OpenStack Deployment
PDF
React.jsでHowManyPizza
PPTX
Mirantis open stack deployment automation
PPTX
REST Coder: Auto Generating Client Stubs and Documentation for REST APIs
PDF
Chef Automate Workflow Demo
PDF
Rest in flask
PDF
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
PDF
An introduction to React.js
PDF
OpenStack Architecture: Past and Future
PDF
EWD 3 Training Course Part 41: Building a React.js application with QEWD, Part 5
PDF
Java + React.jsでSever Side Rendering #reactjs_meetup
2004 01 10 Chef Sa V01
Sakai Tool
8 Trends of New Restaurants - New Orleans 2016
Chef Compliance & Workflow w/Delivery
Modern Web App Development using ClojureScript & React.js / Baishampayan “BG”...
Introduction to Apache Synapse
Event Driven Architecture - MeshU - Ilya Grigorik
Best Practice for Deploying Application with Heat
TXLF: Automated Deployment of OpenStack with Chef
Are We Done Yet ? Testing Your OpenStack Deployment
React.jsでHowManyPizza
Mirantis open stack deployment automation
REST Coder: Auto Generating Client Stubs and Documentation for REST APIs
Chef Automate Workflow Demo
Rest in flask
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
An introduction to React.js
OpenStack Architecture: Past and Future
EWD 3 Training Course Part 41: Building a React.js application with QEWD, Part 5
Java + React.jsでSever Side Rendering #reactjs_meetup
Ad

Similar to OpenStack Deployment with Chef Workshop (20)

PDF
SCALE12X: Chef for OpenStack
PDF
201304 chef for open stack overview
PDF
201304 chef for open stack overview
PDF
LA Chef for OpenStack Hackday
PDF
Chef For OpenStack Overview
PDF
Velocity 2011 Chef OpenStack Workshop
PDF
Austin OpenStack Meetup: Chef and OpenStack
PDF
SCALE 2011 Deploying OpenStack with Chef
PDF
IaaS with Chef
PDF
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
PDF
Chef - Configuration Management for the Cloud
PPT
vBACD - Introduction to Opscode Chef - 2/29
PDF
Introduction to Chef
PDF
Chef - Administration for programmers
PDF
Chef and Apache CloudStack (ChefConf 2014)
PPTX
Kickstarter - Chef Opswork
PPT
Calico with open stack and chef
PPTX
Chef + AWS + CodeIgniter
PDF
Australian OpenStack User Group August 2012: Chef for OpenStack
ODP
Chef training Day4
SCALE12X: Chef for OpenStack
201304 chef for open stack overview
201304 chef for open stack overview
LA Chef for OpenStack Hackday
Chef For OpenStack Overview
Velocity 2011 Chef OpenStack Workshop
Austin OpenStack Meetup: Chef and OpenStack
SCALE 2011 Deploying OpenStack with Chef
IaaS with Chef
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
Chef - Configuration Management for the Cloud
vBACD - Introduction to Opscode Chef - 2/29
Introduction to Chef
Chef - Administration for programmers
Chef and Apache CloudStack (ChefConf 2014)
Kickstarter - Chef Opswork
Calico with open stack and chef
Chef + AWS + CodeIgniter
Australian OpenStack User Group August 2012: Chef for OpenStack
Chef training Day4

More from Matt Ray (20)

PDF
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
PDF
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
PDF
SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...
PDF
HashiTalks 2020 - Chef Tools & Terraform: Better Together
PDF
EmacsConf 2019: Interactive Remote Debugging and Development with TRAMP Mode
PDF
Wellington DevOps: Bringing Your Applications into the Future with Habitat
PDF
DevOps Days Singapore 2018 Ignite - Bringing Your Applications into the Futur...
PDF
Cloud Expo Asia 20181010 - Bringing Your Applications into the Future with Ha...
PDF
Compliance as Code Everywhere
PDF
DevOpsDays Jakarta: State of DevOps 2018
PDF
DevOps Talks Melbourne 2018: Whales, Cats and Kubernetes
PDF
Infrastructure and Compliance Delight with Chef Automate
PDF
Cooking Up Windows with Chef Automate
PDF
DevOpsDays Singapore - Continuous Auditing with Compliance as Code
PDF
DevOpsDays Singapore Habitat Ignite
PDF
Chef Automate - Azure Sydney User Group
PDF
Automating Compliance with InSpec - AWS North Sydney
PDF
Automating Applications with Habitat - Sydney Cloud Native Meetup
PDF
Automating AWS Compliance with InSpec
PDF
Chef Automate - Infracoders Canberra August 8, 2017
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...
HashiTalks 2020 - Chef Tools & Terraform: Better Together
EmacsConf 2019: Interactive Remote Debugging and Development with TRAMP Mode
Wellington DevOps: Bringing Your Applications into the Future with Habitat
DevOps Days Singapore 2018 Ignite - Bringing Your Applications into the Futur...
Cloud Expo Asia 20181010 - Bringing Your Applications into the Future with Ha...
Compliance as Code Everywhere
DevOpsDays Jakarta: State of DevOps 2018
DevOps Talks Melbourne 2018: Whales, Cats and Kubernetes
Infrastructure and Compliance Delight with Chef Automate
Cooking Up Windows with Chef Automate
DevOpsDays Singapore - Continuous Auditing with Compliance as Code
DevOpsDays Singapore Habitat Ignite
Chef Automate - Azure Sydney User Group
Automating Compliance with InSpec - AWS North Sydney
Automating Applications with Habitat - Sydney Cloud Native Meetup
Automating AWS Compliance with InSpec
Chef Automate - Infracoders Canberra August 8, 2017

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Machine learning based COVID-19 study performance prediction
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Modernizing your data center with Dell and AMD
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
cuic standard and advanced reporting.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Network Security Unit 5.pdf for BCA BBA.
NewMind AI Monthly Chronicles - July 2025
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Reach Out and Touch Someone: Haptics and Empathic Computing
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
CIFDAQ's Market Insight: SEC Turns Pro Crypto
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Machine learning based COVID-19 study performance prediction
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Spectral efficient network and resource selection model in 5G networks
Understanding_Digital_Forensics_Presentation.pptx
Modernizing your data center with Dell and AMD
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication

OpenStack Deployment with Chef Workshop