OpenStack Cloud Computing Cookbook - Second Edition

Using OpenStack to create your own private cloud is made that much more accessible thanks to this book. Every aspect is covered with crystal-clear instructions enabling you to optimize your implementation of this world-class operating stack.

OpenStack Cloud Computing Cookbook - Second Edition

Cookbook
Kevin Jackson , Cody Bunch

Using OpenStack to create your own private cloud is made that much more accessible thanks to this book. Every aspect is covered with crystal-clear instructions enabling you to optimize your implementation of this world-class operating stack.
$10.00
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Code Files
+ Collection
Free Sample

Book Details

ISBN 139781782167587
Paperback396 pages

About This Book

  • Chapter 1 is available for free
  • Updated for OpenStack Grizzly
  • Learn how to install, configure, and manage all of the OpenStack core projects including new topics like block storage and software defined networking
  • Learn how to build your Private Cloud utilizing DevOps and Continuous Integration tools and techniques

Who This Book Is For

This book is aimed at system administrators and technical architects moving from a virtualized environment to cloud environments with familiarity of cloud computing platforms. Knowledge of virtualization and managing Linux environments is expected.

Table of Contents

Chapter 1: Keystone OpenStack Identity Service
Introduction
Creating a sandbox environment using VirtualBox and Vagrant
Configuring Ubuntu Cloud archive
Installing OpenStack Identity service
Creating tenants
Configuring roles
Adding users
Defining service endpoints
Creating the service tenant and service users
Chapter 2: Starting OpenStack Image Service
Introduction
Installing OpenStack Image Service
Configuring OpenStack Image Service with MySQL
Configuring OpenStack Image Service with OpenStack Identity Service
Managing images with OpenStack Image Service
Registering a remotely stored image
Sharing images among tenants
Viewing shared images
Chapter 3: Starting OpenStack Compute
Introduction
Installing OpenStack Compute Controller services
Creating a sandbox Compute server with VirtualBox and Vagrant
Installing OpenStack Compute packages
Configuring database services
Configuring OpenStack Compute
Configuring OpenStack Compute with OpenStack Identity Service
Stopping and starting Nova services
Installation of command-line tools on Ubuntu
Checking OpenStack Compute services
Using OpenStack Compute
Managing security groups
Creating and managing keypairs
Launching our first Cloud instance
Terminating your instance
Chapter 4: Installing OpenStack Object Storage
Introduction
Creating an OpenStack Object Storage sandbox environment
Installing OpenStack Object Storage
Configuring storage
Configuring replication
Configuring OpenStack Object Storage Service
Configuring OpenStack Object Storage proxy server
Configuring Account Server
Configuring Container Server
Configuring Object Server
Making rings
Stopping and starting OpenStack Object Storage
Configuring OpenStack Object Storage with OpenStack Identity Service
Setting up SSL access
Testing OpenStack Object Storage
Chapter 5: Using OpenStack Object Storage
Introduction
Installing the swift client tool
Creating containers
Uploading objects
Uploading large objects
Listing containers and objects
Downloading objects
Deleting containers and objects
Using OpenStack Object Storage ACLs
Chapter 6: Administering OpenStack Object Storage
Introduction
Preparing drives for OpenStack Object Storage
Managing OpenStack Object Storage cluster with swift-init
Checking cluster health
Benchmarking OpenStack Object Storage
Managing swift cluster capacity
Removing nodes from a cluster
Detecting and replacing failed hard drives
Collecting usage statistics
Chapter 7: Starting OpenStack Block Storage
Introduction
Configuring Cinder volume services
Configuring OpenStack Compute for Cinder volume
Creating volumes
Attaching volumes to an instance
Detaching volumes from an instance
Deleting volumes
Chapter 8: OpenStack Networking
Introduction
Configuring Flat networking with DHCP
Configuring VLAN Manager networking
Configuring per tenant IP ranges for VLAN Manager
Automatically assigning fixed networks to tenants
Modifying a tenant's fixed network
Manually associating floating IPs to instances
Manually disassociating floating IPs from instances
Automatically assigning floating IPs
Creating a sandbox Network server for Neutron with VirtualBox and Vagrant
Installing and configuring OVS for Neutron
Installing and configuring the Neutron API server
Configuring Compute nodes for Neutron
Creating a Neutron network
Deleting a Neutron network
Creating an external Neutron network
Chapter 9: Using OpenStack Dashboard
Introduction
Installing OpenStack Dashboard
Using OpenStack Dashboard for key management
Using OpenStack Dashboard to manage Neutron networks
Using OpenStack Dashboard for security group management
Using OpenStack Dashboard to launch instances
Using OpenStack Dashboard to terminate instances
Using OpenStack Dashboard for connecting to instances using VNC
Using OpenStack Dashboard to add new tenants
Using OpenStack Dashboard for user management
Chapter 10: Automating OpenStack Installations
Introduction
Installing Opscode Chef Server
Installing Chef Client
Downloading cookbooks to support DHCP, Razor, and OpenStack
Installing PuppetLabs Razor and DHCP from cookbooks
Setting up a Chef environment for OpenStack
Booting the first OpenStack node into Razor
Defining a Razor broker, model, and policy
Monitoring the node installation
Using Chef to install OpenStack
Expanding our OpenStack environment
Chapter 11: Highly Available OpenStack
Introduction
Using Galera for MySQL clustering
Configuring HA Proxy for MySQL Galera load balancing
Installing and setting up Pacemaker and Corosync
Configuring Keystone and Glance with Pacemaker and Corosync
Bonding network interfaces for redundancy
Chapter 12: Troubleshooting
Introduction
Understanding logging
Checking OpenStack services
Troubleshooting OpenStack Compute services
Troubleshooting OpenStack Object Storage services
Troubleshooting OpenStack Dashboard
Troubleshooting OpenStack Authentication
Troubleshooting OpenStack Networking
Submitting Bug reports
Getting help from the community
Chapter 13: Monitoring
Introduction
Monitoring OpenStack services with Nagios
Monitoring Compute services with Munin
Monitoring instances using Munin and Collectd
Monitoring the storage service using StatsD/Graphite
Monitoring MySQL with Hyperic

What You Will Learn

  • Understand, install, configure, and manage Nova, the OpenStack cloud compute resource
  • Dive headfirst into managing software defined networks with the OpenStack networking project and Open vSwitch
  • Install and configure, Keystone, the OpenStack identity & authentication service
  • Install, configure and operate the OpenStack block storage project: Neutron
  • Install and manage Swift, the highly scalable OpenStack object storage service
  • Gain hands on experience with the OpenStack dashboard Horizon
  • Explore different monitoring frameworks to ensure your OpenStack cloud is always online and performing optimally
  • Automate your installations using Vagrant and Chef.
  • Create custom Windows and Linux images for use in your private cloud environment.

In Detail

OpenStack is an open source cloud operating stack that was born from Rackspace and NASA and became a global success, developed by scores of people around the globe and backed by some of the leading players in the cloud space today.

OpenStack Cloud Computing Cookbook, Second Edition will show you exactly how to install the components that are required to make up a private cloud environment. You will learn how to set up an environment that you manage just as you would a public cloud provider like Rackspace with the help of experienced OpenStack administrators and architects.

We begin by configuring the key components such as identity, image compute, and storage in a safe, virtual environment that we will then build on this throughout the book. The book will also teach you about provisioning and managing OpenStack in the datacenter using proven DevOps tools and techniques.

From installing or creating a sandbox environment using Vagrant and VirtualBox to installing OpenStack in the datacenter, from understanding logging to automating OpenStack installations, whatever level of experience or interest you have with OpenStack there is a chapter for you. Installation steps cover compute, object storage, identity, block storage volumes, image, horizon, software defined networking and DevOps tools for automating your infrastructure OpenStack Cloud Computing Cookbook, Second edition gives you clear step-by-step instructions to installing and running your own private cloud.

Authors

Table of Contents

Chapter 1: Keystone OpenStack Identity Service
Introduction
Creating a sandbox environment using VirtualBox and Vagrant
Configuring Ubuntu Cloud archive
Installing OpenStack Identity service
Creating tenants
Configuring roles
Adding users
Defining service endpoints
Creating the service tenant and service users
Chapter 2: Starting OpenStack Image Service
Introduction
Installing OpenStack Image Service
Configuring OpenStack Image Service with MySQL
Configuring OpenStack Image Service with OpenStack Identity Service
Managing images with OpenStack Image Service
Registering a remotely stored image
Sharing images among tenants
Viewing shared images
Chapter 3: Starting OpenStack Compute
Introduction
Installing OpenStack Compute Controller services
Creating a sandbox Compute server with VirtualBox and Vagrant
Installing OpenStack Compute packages
Configuring database services
Configuring OpenStack Compute
Configuring OpenStack Compute with OpenStack Identity Service
Stopping and starting Nova services
Installation of command-line tools on Ubuntu
Checking OpenStack Compute services
Using OpenStack Compute
Managing security groups
Creating and managing keypairs
Launching our first Cloud instance
Terminating your instance
Chapter 4: Installing OpenStack Object Storage
Introduction
Creating an OpenStack Object Storage sandbox environment
Installing OpenStack Object Storage
Configuring storage
Configuring replication
Configuring OpenStack Object Storage Service
Configuring OpenStack Object Storage proxy server
Configuring Account Server
Configuring Container Server
Configuring Object Server
Making rings
Stopping and starting OpenStack Object Storage
Configuring OpenStack Object Storage with OpenStack Identity Service
Setting up SSL access
Testing OpenStack Object Storage
Chapter 5: Using OpenStack Object Storage
Introduction
Installing the swift client tool
Creating containers
Uploading objects
Uploading large objects
Listing containers and objects
Downloading objects
Deleting containers and objects
Using OpenStack Object Storage ACLs
Chapter 6: Administering OpenStack Object Storage
Introduction
Preparing drives for OpenStack Object Storage
Managing OpenStack Object Storage cluster with swift-init
Checking cluster health
Benchmarking OpenStack Object Storage
Managing swift cluster capacity
Removing nodes from a cluster
Detecting and replacing failed hard drives
Collecting usage statistics
Chapter 7: Starting OpenStack Block Storage
Introduction
Configuring Cinder volume services
Configuring OpenStack Compute for Cinder volume
Creating volumes
Attaching volumes to an instance
Detaching volumes from an instance
Deleting volumes
Chapter 8: OpenStack Networking
Introduction
Configuring Flat networking with DHCP
Configuring VLAN Manager networking
Configuring per tenant IP ranges for VLAN Manager
Automatically assigning fixed networks to tenants
Modifying a tenant's fixed network
Manually associating floating IPs to instances
Manually disassociating floating IPs from instances
Automatically assigning floating IPs
Creating a sandbox Network server for Neutron with VirtualBox and Vagrant
Installing and configuring OVS for Neutron
Installing and configuring the Neutron API server
Configuring Compute nodes for Neutron
Creating a Neutron network
Deleting a Neutron network
Creating an external Neutron network
Chapter 9: Using OpenStack Dashboard
Introduction
Installing OpenStack Dashboard
Using OpenStack Dashboard for key management
Using OpenStack Dashboard to manage Neutron networks
Using OpenStack Dashboard for security group management
Using OpenStack Dashboard to launch instances
Using OpenStack Dashboard to terminate instances
Using OpenStack Dashboard for connecting to instances using VNC
Using OpenStack Dashboard to add new tenants
Using OpenStack Dashboard for user management
Chapter 10: Automating OpenStack Installations
Introduction
Installing Opscode Chef Server
Installing Chef Client
Downloading cookbooks to support DHCP, Razor, and OpenStack
Installing PuppetLabs Razor and DHCP from cookbooks
Setting up a Chef environment for OpenStack
Booting the first OpenStack node into Razor
Defining a Razor broker, model, and policy
Monitoring the node installation
Using Chef to install OpenStack
Expanding our OpenStack environment
Chapter 11: Highly Available OpenStack
Introduction
Using Galera for MySQL clustering
Configuring HA Proxy for MySQL Galera load balancing
Installing and setting up Pacemaker and Corosync
Configuring Keystone and Glance with Pacemaker and Corosync
Bonding network interfaces for redundancy
Chapter 12: Troubleshooting
Introduction
Understanding logging
Checking OpenStack services
Troubleshooting OpenStack Compute services
Troubleshooting OpenStack Object Storage services
Troubleshooting OpenStack Dashboard
Troubleshooting OpenStack Authentication
Troubleshooting OpenStack Networking
Submitting Bug reports
Getting help from the community
Chapter 13: Monitoring
Introduction
Monitoring OpenStack services with Nagios
Monitoring Compute services with Munin
Monitoring instances using Munin and Collectd
Monitoring the storage service using StatsD/Graphite
Monitoring MySQL with Hyperic

Book Details

ISBN 139781782167587
Paperback396 pages
Read More