You are previewing OpenStack Cloud Computing Cookbook.
O'Reilly logo
OpenStack Cloud Computing Cookbook

Book Description

OpenStack is a feature-packed cloud operating stack that’s hugely popular. This cookbook includes a fantastic range of OpenStack recipes designed to help you move to a cloud environment smoothly and painlessly.

  • Learn how to install and configure all the core components of OpenStack to run an environment that can be managed and operated just like AWS or Rackspace

  • Master the complete private cloud stack from scaling out compute resources to managing swift services for highly redundant, highly available storage

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

  • In Detail

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

    OpenStack Cloud Computing Cookbook 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 do with AWS or Rackspace.

    The Cookbook starts by configuring Nova (Compute) and Swift (Storage) in a safe, virtual environment that builds on through the book, to provisioning and managing OpenStack in the Datacenter.

    From Installing Nova in a Virtual Environment to installing OpenStack in the Datacenter, from understanding logging to securing your OpenStack environment, whatever level of experience or interest you have with OpenStack there are recipes that guide you through the journey. Installation steps cover Compute, Swift, Keystone, Nova Volumes, Glance and Horizon.

    OpenStack Cloud Computing Cookbook gives 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.

    Table of Contents

    1. OpenStack Cloud Computing Cookbook
      1. OpenStack Cloud Computing Cookbook
      2. Credits
      3. About the Author
      4. About the Reviewers
      5. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      6. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Errata
          2. Piracy
          3. Questions
      7. 1. Starting OpenStack Compute
        1. Introduction
        2. Creating a sandbox environment with VirtualBox
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        3. Installing OpenStack Compute packages
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Using an alternative release
        4. Configuring database services
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Configuring OpenStack Compute
          1. How to do it...
          2. How it works...
          3. There's more...
            1. Information online regarding flags
        6. Stopping and starting Nova services
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Creating a cloudadmin account and project
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Installation of command line-tools
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Uploading a sample machine image
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        10. Launching your first cloud instance
          1. Getting ready
          2. How to do it...
          3. How it works...
        11. Terminating your instance
          1. How to do it...
          2. How it works...
      8. 2. Administering OpenStack Compute
        1. Introduction
        2. Creating and modifying user accounts
          1. Getting ready
          2. How to do it...
            1. Adding Users
            2. Deleting Users
            3. Removing a user from a project
          3. How it works...
          4. See also
        3. Managing security groups
          1. Getting ready
          2. How to do it...
            1. Creation of security groups
            2. To remove a rule from a security group
            3. To delete a security group
          3. How it works...
            1. Defining groups and rules using euca2ools
            2. Defining groups and rules using Nova Client
        4. Creating and managing keypairs
          1. Getting ready
          2. How to do it...
            1. Listing and deleting keypairs using euca2ools
              1. List the keypairs
              2. Delete the keypairs
            2. Listing and deleting keypairs using Nova Client
              1. List the keypairs
              2. Delete the keypairs
          3. How it works...
        5. Using public cloud images
          1. Getting ready
          2. How to do it...
            1. Ubuntu Cloud Images from ubuntu.com
            2. CentOS/Fedora Images from eucalyptus.com
          3. How it works...
        6. Alternative upload method using euca2ools
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Creating custom Windows images
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Creating custom CentOS images
          1. Getting ready
          2. How to do it...
          3. How it works...
      9. 3. Keystone OpenStack Identity Service
        1. Introduction
        2. Installing OpenStack Identity Service
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Configuring roles
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Creating tenants
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Adding users
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Defining service endpoints
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Configuring the service tenant and service users
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Configuring OpenStack Image Service to use OpenStack Identity Service
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Configuring OpenStack Compute to use OpenStack Identity Service
          1. Getting ready
          2. How to do it...
          3. How it works...
        10. Using OpenStack Compute with OpenStack Identity Service
          1. Getting ready
          2. How to do it...
          3. How it works...
      10. 4. Installing OpenStack Storage
        1. Introduction
        2. Creating an OpenStack Storage sandbox environment
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Installing the OpenStack Storage services
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Using an alternative release
        4. Configuring storage
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Configuring replication
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Configuring OpenStack Storage Service
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Configuring the OpenStack Storage proxy server
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        8. Configuring Account Server
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Configuring Container Server
          1. Getting ready
          2. How to do it...
          3. How it works...
        10. Configuring Object Server
          1. Getting ready
          2. How to do it...
          3. How it works...
        11. Making the Object, Account, and Container rings
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. Creating the ring
            2. Assigning a device to the ring
            3. Rebalancing the ring
        12. Stopping and starting OpenStack Storage
          1. Getting ready
          2. How to do it...
          3. How it works...
        13. Testing OpenStack Storage
          1. Getting ready
          2. How to do it...
            1. Using curl to test OpenStack Storage
            2. Using a swift command to test OpenStack Storage
          3. How it works...
        14. Setting up SSL access
          1. Getting ready
          2. How to do it...
          3. How it works...
        15. Configuring OpenStack Storage with OpenStack Identity Service
          1. Getting ready
          2. How to do it...
          3. How it works...
      11. 5. Using OpenStack Storage
        1. Introduction
        2. Installing the swift client tool
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Creating containers
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Uploading objects
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Uploading large objects
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Listing containers and objects
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Downloading objects
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Deleting containers and objects
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Using OpenStack Storage ACLs
          1. Getting ready
          2. How to do it...
          3. How it works...
      12. 6. Administering OpenStack Storage
        1. Introduction
        2. Preparing drives for OpenStack Storage
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Managing the OpenStack Storage cluster with swift-init
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Checking cluster health
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. OpenStack Storage benchmarking
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Managing capacity
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Removing nodes from a cluster
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Detecting and replacing failed hard drives
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Collecting usage statistics
          1. Getting ready
          2. How to do it...
          3. How it works...
      13. 7. Glance OpenStack Image Service
        1. Introduction
        2. Installing OpenStack Image Service
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Using an alternative release
        3. Configuring OpenStack Image Service with MySQL
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Configuring OpenStack Compute with OpenStack Image Service
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Configuring OpenStack Image Service with OpenStack Storage
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Managing images with OpenStack Image Service
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Registering a remotely stored image
          1. Getting ready
          2. How to do it...
          3. How it works...
      14. 8. Nova Volumes
        1. Introduction
        2. Configuring nova-volume services
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Configuring OpenStack Compute for nova-volume
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Creating volumes
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Attaching volumes to instances
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Detaching volumes from an instance
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Deleting volumes
          1. Getting ready
          2. How to do it...
          3. How it works...
      15. 9. Horizon OpenStack Dashboard
        1. Introduction
        2. Installing OpenStack Dashboard
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Keypair management in OpenStack Dashboard
          1. Getting ready
          2. How to do it...
            1. Adding keypairs
            2. Deleting keypairs
            3. Importing Keypairs
          3. How it works...
        4. Security group management by using OpenStack Dashboard
          1. Getting ready
          2. How to do it...
            1. Creating a security group
            2. Editing security groups to add and remove rules
            3. Deleting security groups
          3. How it works...
        5. Launching instances by using OpenStack Dashboard
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Terminating instances by using OpenStack Dashboard
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Connecting to instances by using OpenStack Dashboard and VNC
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Adding new tenants by using OpenStack Dashboard
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. User management by using OpenStack Dashboard
          1. Getting ready
          2. How to do it...
            1. Adding Users
            2. Deleting users
            3. Updating user details and passwords
            4. Adding users to tenants
            5. Removing users from tenants
          3. How it works...
      16. 10. OpenStack Networking
        1. Introduction
        2. Configuring Flat networking
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Configuring Flat networking with DHCP
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Configuring VLAN Manager networking
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Configuring per-project (tenant) IP ranges
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Automatically assigning fixed networks to tenants
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Modifying a tenant's fixed network
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Manually associating floating IPs to instances
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Manually disassociating floating IPs from instances
          1. Getting ready
          2. How to do it...
          3. How it works...
        10. Automatically assigning floating IPs
          1. Getting ready
          2. How to do it...
          3. How it works...
      17. 11. In the Datacenter
        1. Introduction
        2. Installing MAAS for bare-metal provisioning
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Using MAAS for bare-metal provisioning of hosts
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Installing and configuring Juju
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Installing OpenStack services using Juju
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Increasing OpenStack Compute capacity
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. MySQL clustering using Galera
          1. How to do it...
            1. MySQL and Galera configuration
            2. Node preparation
            3. Installation
            4. Configuration of database cluster for OpenStack
          2. How it works...
        8. Configuring HA Proxy for MySQL Galera load balancing
          1. Getting ready
          2. How to do it...
            1. Installation of HA Proxy for MySQL
            2. OpenStack Configuration using a floating IP address
          3. How it works...
        9. Increasing resilience of OpenStack services
          1. Getting ready
          2. How to do it...
            1. First node (openstack1)
            2. Second node (openstack2)
            3. First node (openstack1)
            4. Second node (openstack2)
            5. Start the Pacemaker and Corosync services
            6. First node (openstack1)
            7. Keystone across 2 nodes with FloatingIP
            8. Glance across 2 nodes with FloatingIP
            9. Configuring Pacemaker for use with Glance and Keystone
          3. How it works...
        10. Bonding network interfaces for redundancy
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      18. 12. Monitoring
        1. Introduction
        2. Monitoring Compute services with Munin
          1. Getting ready
          2. How to do it...
            1. Munin Master Server
            2. Munin nodes
            3. Monitoring OpenStack Compute services
          3. How it works...
        3. Monitoring instances using Munin and Collectd
          1. How to do it...
            1. Munin
            2. Collectd
            3. Collectd server
            4. Collectd Client
            5. Collectd-web
          2. How it works...
        4. Monitoring the storage service using StatsD/Graphite
          1. Getting ready
          2. How to do it...
            1. Prerequisites
            2. Graphite
            3. StatsD
            4. swift-informant
          3. How it works...
        5. Monitoring MySQL with Hyperic
          1. Getting ready
          2. How to do it...
            1. Hyperic server
            2. Nodes
            3. Monitoring MySQL
          3. How it works...
          4. There's more...
      19. 13. Troubleshooting
        1. Introduction
        2. Checking OpenStack Compute Services
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Understanding logging
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Troubleshooting OpenStack Compute Services
          1. How to do it...
          2. How it works...
        5. Troubleshooting OpenStack Storage Service
          1. How to do it...
          2. How it works...
        6. Troubleshooting OpenStack Authentication
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Submitting bug reports
          1. How to do it...
          2. How it works...
          3. See also
        8. Getting help from the community
          1. How to do it...
          2. How it works...
          3. See also