OpenStack Cloud Computing Cookbook - Second Edition


OpenStack Cloud Computing Cookbook - Second Edition
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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

Book Details

Language : English
Paperback : 396 pages [ 235mm x 191mm ]
Release Date : October 2013
ISBN : 1782167587
ISBN 13 : 9781782167587
Author(s) : Kevin Jackson , Cody Bunch
Topics and Technologies : All Books, Virtualization and Cloud, Cloud, Cookbooks, Linux Servers, Open Source

Table of Contents

Preface
Chapter 1: Keystone OpenStack Identity Service
Chapter 2: Starting OpenStack Image Service
Chapter 3: Starting OpenStack Compute
Chapter 4: Installing OpenStack Object Storage
Chapter 5: Using OpenStack Object Storage
Chapter 6: Administering OpenStack Object Storage
Chapter 7: Starting OpenStack Block Storage
Chapter 8: OpenStack Networking
Chapter 9: Using OpenStack Dashboard
Chapter 10: Automating OpenStack Installations
Chapter 11: Highly Available OpenStack
Chapter 12: Troubleshooting
Chapter 13: Monitoring
Index
  • 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

                            Kevin Jackson

                            Kevin Jackson is married with three children. He is an experienced IT professional working with small businesses to online enterprises. He has extensive experience of various flavors of Linux and Unix. He works from home in Southport, UK, specializing in OpenStack for Rackspace covering the International market for the Big Cloud Solutions team. He can be found on twitter @itarchitectkev. He also authored the first edition of OpenStack Cloud Computing Cookbook, Packt Publishing.

                            Cody Bunch

                            Cody Bunch is a Private Cloud Architect with Rackspace Hosting. He has been in the IT industry for the last 15 years, during which time he's worked on SaaS, VoIP, Virtualization, and now Cloud systems. He is the author of Automating vSphere 5 with vCenter Orchestrator on VMware press. He also hosts a weekly OpenStack podcast called the #vBrownBags, as well as blogs OpenStack related tips and tricks on openstack.prov12n.com. He can also be found on twitter as @cody_bunch
                            Sorry, we don't have any reviews for this title yet.

                            Submit Errata

                            Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                            Errata

                            - 10 submitted: last submission 03 Dec 2013

                            Errata Type: Code | page number: 15

                            export ENDPOINT=1172.16.172.200

                            should be:

                            export ENDPOINT=172.16.172.200

                             Errata Type: Code | page number: 10 </b>

                             echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu \
                             
                            echo \
                            "deb http://ubuntu-cloud.archive.canonical.com/ubuntu \
                                   precise-proposed/grizzly main" \
                                 | sudo tee /etc/apt/sources.list.d/folsom.list

                             Should be

                            echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu \
                             
                            precise-proposed/grizzly main" \
                             
                            | sudo tee /etc/apt/sources.list.d/grizzly.list


                             Errata Type: Code | page number: 12

                            python-mysqldb is needed, otherwise "keystone-manage db_sync" will fail

                            sudo apt-get -q -y install mysql-server

                            should be

                            sudo apt-get -q -y install mysql-server python-mysqldb

                             

                             Errata Type: Code | page number: 16

                            keystone tenant-create \

                            --name cookbook \
                            --description "Admin Tenant" \
                            --enabled true

                             should be

                            keystone tenant-create \

                            --name admin \

                            --description "Admin Tenant" \
                            --enabled true

                            Errata type: Typo | page number: 30

                             

                            This command:

                            export ENDPOINT=1172.16.0.200

                             

                            Should be:

                            export ENDPOINT=172.16.0.200

                            Errata type: Code | page number: 42

                             

                            This line:

                            export OS_AUTH_URL=http://172.16.0.1:5000/v2.0/

                             

                            Should be:

                            export OS_AUTH_URL=http://172.16.0.200:5000/v2.0/

                            Errata type: code | page number: 14

                            The following command:

                            sudo sed -i "s#^connection.*#connection = mysql://keystone:openstack@172.16.0.200/keystone#" /etc/keystone/keystone.conf

                             

                            Should be:

                            sudo sed -i "s#^connection.*#connection =  mysql://keystone:openstack@${MYSQL_HOST}/keystone#" /etc/keystone/keystone.conf

                             

                            and this command in step 5:

                            sudo sed -i "s/^# admin_token.*/admin_token = ADMIN" /etc/keystone/keystone.conf

                             

                            should be:

                            sed -i "s/^# admin_token.*/admin_token = ADMIN/" /etc/keystone/keystone.conf

                            Errata type: code | page number: 13

                             

                            This command:

                            sudo apt-get -y install keystone python-keyring

                             

                            Should be:

                            sudo apt-get -y install keystone python-keyring python-mysqldb

                            Errata type: code | page number: 10

                             

                            The following step:

                            To access the Ubuntu Cloud Archive repository, we add this to our apt sources
                            as follows:
                            echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu \
                            echo \
                            "deb http://ubuntu-cloud.archive.canonical.com/ubuntu \
                            precise-proposed/grizzly main" \
                            | sudo tee /etc/apt/sources.list.d/folsom.list

                             

                            Should be:

                             To access the Ubuntu Cloud Archive repository, we add this to our apt sources

                            as follows:

                            echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu \

                            precise-updates/grizzly main" \

                            echo \

                            "deb http://ubuntu-cloud.archive.canonical.com/ubuntu \

                            precise-proposed/grizzly main" \

                            | sudo tee /etc/apt/sources.list.d/grizzly.list

                             

                            NOTE:

                            The code for this book is all on GitHub, so for all the correct steps please go to: https://github.com/OpenStackCookbook/OpenStackCookbook

                            For further queries you can go to: http://www.openstackcookbook.com/

                            Sample chapters

                            You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                            Frequently bought together

                            OpenStack Cloud Computing Cookbook - Second Edition +    IBM DB2 9.7 Advanced Administration Cookbook =
                            50% Off
                            the second eBook
                            Price for both: €37.50

                            Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                            What you will learn from this book

                            • 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.

                            Approach

                            OpenStack Cloud Computing Cookbook Second Edition will give you clear step-by-step instructions to installing and running 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.

                            The book explains every step in detail so that you can build your knowledge about how things work.

                            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.

                            Code Download and Errata
                            Packt Anytime, Anywhere
                            Register Books
                            Print Upgrades
                            eBook Downloads
                            Video Support
                            Contact Us
                            Awards Voting Nominations Previous Winners
                            Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                            Resources
                            Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software