PacktLib: OpenStack Cloud Computing Cookbook

OpenStack Cloud Computing Cookbook


About the Author

About the Reviewers


Starting OpenStack Compute


Creating a sandbox environment with VirtualBox

Installing OpenStack Compute packages

Configuring database services

Configuring OpenStack Compute

Stopping and starting Nova services

Creating a cloudadmin account and project

Installation of command line-tools

Uploading a sample machine image

Launching your first cloud instance

Terminating your instance

Administering OpenStack Compute


Creating and modifying user accounts

Managing security groups

Creating and managing keypairs

Using public cloud images

Alternative upload method using euca2ools

Creating custom Windows images

Creating custom CentOS images

Keystone OpenStack Identity Service


Installing OpenStack Identity Service

Configuring roles

Creating tenants

Adding users

Defining service endpoints

Configuring the service tenant and service users

Configuring OpenStack Image Service to use OpenStack Identity Service

Configuring OpenStack Compute to use OpenStack Identity Service

Using OpenStack Compute with OpenStack Identity Service

Installing OpenStack Storage


Creating an OpenStack Storage sandbox environment

Installing the OpenStack Storage services

Configuring storage

Configuring replication

Configuring OpenStack Storage Service

Configuring the OpenStack Storage proxy server

Configuring Account Server

Configuring Container Server

Configuring Object Server

Making the Object, Account, and Container rings

Stopping and starting OpenStack Storage

Testing OpenStack Storage

Setting up SSL access

Configuring OpenStack Storage with OpenStack Identity Service

Using OpenStack Storage


Installing the swift client tool

Creating containers

Uploading objects

Uploading large objects

Listing containers and objects

Downloading objects

Deleting containers and objects

Using OpenStack Storage ACLs

Administering OpenStack Storage


Preparing drives for OpenStack Storage

Managing the OpenStack Storage cluster with swift-init

Checking cluster health

OpenStack Storage benchmarking

Managing capacity

Removing nodes from a cluster

Detecting and replacing failed hard drives

Collecting usage statistics

Glance OpenStack Image Service


Installing OpenStack Image Service

Configuring OpenStack Image Service with MySQL

Configuring OpenStack Compute with OpenStack Image Service

Configuring OpenStack Image Service with OpenStack Storage

Managing images with OpenStack Image Service

Registering a remotely stored image

Nova Volumes


Configuring nova-volume services

Configuring OpenStack Compute for nova-volume

Creating volumes

Attaching volumes to instances

Detaching volumes from an instance

Deleting volumes

Horizon OpenStack Dashboard


Installing OpenStack Dashboard

Keypair management in OpenStack Dashboard

Security group management by using OpenStack Dashboard

Launching instances by using OpenStack Dashboard

Terminating instances by using OpenStack Dashboard

Connecting to instances by using OpenStack Dashboard and VNC

Adding new tenants by using OpenStack Dashboard

User management by using OpenStack Dashboard

OpenStack Networking


Configuring Flat networking

Configuring Flat networking with DHCP

Configuring VLAN Manager networking

Configuring per-project (tenant) IP ranges

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

In the Datacenter


Installing MAAS for bare-metal provisioning

Using MAAS for bare-metal provisioning of hosts

Installing and configuring Juju

Installing OpenStack services using Juju

Increasing OpenStack Compute capacity

MySQL clustering using Galera

Configuring HA Proxy for MySQL Galera load balancing

Increasing resilience of OpenStack services

Bonding network interfaces for redundancy



Monitoring Compute services with Munin

Monitoring instances using Munin and Collectd

Monitoring the storage service using StatsD/Graphite

Monitoring MySQL with Hyperic



Checking OpenStack Compute Services

Understanding logging

Troubleshooting OpenStack Compute Services

Troubleshooting OpenStack Storage Service

Troubleshooting OpenStack Authentication

Submitting bug reports

Getting help from the community