Book Image

OpenStack Cloud Computing Cookbook - Second Edition

By : Kevin Jackson, Cody Bunch
Book Image

OpenStack Cloud Computing Cookbook - Second Edition

By: Kevin Jackson, Cody Bunch

Overview of this book

<p>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.<br /><br />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.<br /><br />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.<br /><br />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.</p>
Table of Contents (20 chapters)
OpenStack Cloud Computing Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

OpenStack is open source software for building public and private clouds. It is now a global success and, is developed and supported by thousands of people around the globe and backed by leading players in the cloud space today. This book is specifically designed to quickly help you get up to speed with OpenStack and give you the confidence and understanding to roll it out into your own datacenters. From test installations of OpenStack running under VirtualBox to automated installation recipes with Razor and Chef that help you scale out production environments, this book covers a wide range of topics that help you install and configure a private cloud. This book will show you:

  • How to install and configure all the core components of OpenStack to run an environment that can be managed and operated just like Rackspace, HP Cloud Services, and other cloud environments

  • How to master the complete private cloud stack, from scaling out Compute resources to managing object storage services for highly redundant, highly available storage

  • Practical, real-world examples of each service built upon in each chapter, allowing you to progress with the confidence that they will work in your own environments

    The OpenStack Cloud Computing Cookbook, Second Edition gives you clear, step-by-step instructions to install and run your own private cloud successfully. It is full of practical and applicable recipes that enable you to use the latest capabilities of OpenStack and implement them.

What this book covers

Chapter 1, Keystone OpenStack Identity Service, takes you through installation and configuration of Keystone, which underpins all of the other OpenStack services.

Chapter 2, Starting OpenStack Image Service, teaches you how to install, configure, and use the image service for use within an OpenStack environment.

Chapter 3, Starting OpenStack Compute, teaches you how to set up and use OpenStack Compute with examples to get you started by running within a VirtualBox environment.

Chapter 4, Installing OpenStack Storage, teaches you how to configure and use OpenStack Object Storage with examples showing this service running within a VirtualBox environment.

Chapter 5, Using OpenStack Object Storage, teaches you how to use the storage service for storing and retrieving files and objects.

Chapter 6, Administering OpenStack Object Storage, takes you through how to use tools and techniques that can be used for running OpenStack Storage within datacenters.

Chapter 7, Starting OpenStack Block Storage, teaches you how to install and configure the persistent block storage service for use by instances running in an OpenStack Compute environment.

Chapter 8, OpenStack Networking, helps you install and configure OpenStack Networking including Nova Network and Neutron.

Chapter 9, Using OpenStack Dashboard, teaches you how to install and use the Web user interface to perform tasks such as creating users, modifying security groups, and launching instances.

Chapter 10, Automating OpenStack Installations, takes you through setting up Razor and Chef for installing OpenStack.

Chapter 11, Highly Available OpenStack, introduces you to tools and techniques for making OpenStack services resilient and highly available.

Chapter 12, Troubleshooting, takes you through an understanding of the logs and where to get help, when encountering issues while running an OpenStack environment.

Chapter 13, Monitoring, shows you how to install and configure various open source tools for monitoring an OpenStack installation.

What you need for this book

To use this book, you will need access to computers or servers that have hardware virtualization capabilities. To set up the lab environments you will install and use Oracle's VirtualBox and Vagrant. You will also need access to an Ubuntu 12.04 ISO image, as the methods presented detail steps for Ubuntu environments.

Who this book is for

This book is aimed at system administrators and technical architects moving from a virtualized environment to cloud environments who are familiar with cloud computing platforms. Knowledge of virtualization and managing Linux environments is expected. Prior knowledge or experience of OpenStack is not required, although beneficial.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can include other contexts through the use of the include directive."

A block of code is set as follows:

nodes = {
  'controller'  => [1, 200],
}

Vagrant.configure("2") do |config|

Any command-line input or output is written as follows:

vagrant up controller

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "clicking the Next button moves you to the next screen".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.