You are previewing OpenStack Orchestration.
O'Reilly logo
OpenStack Orchestration

Book Description

Exploit the power of dynamic cloud formation and auto-scaling features to fully implement OpenStack orchestration

About This Book

  • Set up, manage, and troubleshoot Heat and effectively automate your datacenter and cloud-based services
  • Achieve high availability, minimize down-time, and automate the deployment of cloud-based services and resources with minimum effort
  • Upgrade your skills and manipulate resources on virtual machines in an unattended fashion using Heat

Who This Book Is For

If you are a System Engineer, System Administrator, Cloud Administrator, or a Cloud Engineer, then this book is for you. You should have a background of working in a Linux-based setup. Any knowledge of OpenStack-based cloud infrastructure will help you create wonders using this book.

What You Will Learn

  • Install an orchestration service for a private cloud environment
  • Tackle errors that show up during the installation and configuration of heat
  • Configure a template for orchestration using the native HOT format
  • Configure a template for orchestration using the AWS cloud formation format
  • Deploy a stack using the HOT template
  • Deploy a test stack using the AWS CloudFormation template
  • Automate and orchestrate cloud-based services with OpenStack Heat

In Detail

This book is focused on setting up and using one of the most important services in OpenStack orchestration, Heat. First, the book introduces you to the orchestration service for OpenStack to help you understand the uses of the templating mechanism, complex control groups of cloud resources, and huge-potential and multiple-use cases. We then move on to the topology and orchestration specification for cloud applications and standards, before introducing the most popular IaaS cloud framework, Heat. You will get to grips with the standards used in Heat, overview and roadmap, architecture and CLI, heat API, heat engine, CloudWatch API, scaling principles, JeOS and installation and configuration of Heat. We wrap up by giving you some insights into troubleshooting for OpenStack.

With easy-to-follow, step-by-step instructions and supporting images, you will be able to manage OpenStack operations by implementing the orchestration services of Heat.

Style and approach

The book is a step-by-step guide to implementing an orchestration (cloud formation) service for OpenStack-based cloud environments. This book uses real-world scenarios and examples to demonstrate the procedures in an easy-to-understand language with plenty of screenshots to help you get a better understanding.

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at If you purchased this book elsewhere, you can visit and register to have the code file.

Table of Contents

  1. OpenStack Orchestration
    1. Table of Contents
    2. OpenStack Orchestration
    3. Credits
    4. About the Author
    5. About the Reviewers
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
    7. 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
    8. 1. Getting Started with the Orchestration Service for OpenStack
      1. Introduction to the OpenStack architecture
        1. Horizon
        2. Nova
        3. Neutron
        4. Swift
        5. Cinder
        6. Keystone
        7. Glance
        8. Ceilometer
        9. Heat
        10. Trove
      2. The Orchestration service for OpenStack
      3. The Heat workflow
      4. The Orchestration authorization model
        1. Password authorization
        2. Keystone trusts authorization
        3. Trusts authorization execution
      5. The authorization model configuration
      6. Stack domain users
        1. Configuring stack domain users
        2. Creating a stack
      7. Summary
    9. 2. The OpenStack Architecture
      1. Components of OpenStack
      2. OpenStack node types
      3. The OpenStack logical architecture
      4. TOSCA – Heat ideas and standards
      5. Heat components
        1. The Heat CLI
        2. heat-api
        3. heat-api-cfn
        4. heat-engine
        5. Heat Orchestration Template (HOT) specification
      6. The example architecture 1 (based on the Nova network)
        1. Node hardware specifications
        2. An overview
        3. A detailed description
      7. The example architecture 2 (based on Neutron)
      8. Network layout for OpenStack networking
        1. The internal network
        2. The public network
        3. The VM traffic network (private network)
        4. The physical connectivity of nodes
        5. Individual node connectivity diagrams
          1. Controller nodes
          2. Compute nodes
        6. Network nodes
        7. Storage nodes
      9. Summary
    10. 3. Stack Group of Connected Cloud Resources
      1. Heat basics
        1. Stacks
        2. Templates
        3. CFN
        4. Heat Orchestration Template (HOT)
        5. The HOT template example
          1. Heat_template_version
          2. Description
          3. Resources
          4. Properties or parameters
          5. Resource types
      2. Autoscaling
        1. Vertical scaling versus horizontal scaling
          1. Vertical scaling
          2. Horizontal scaling
        2. Autoscaling with Heat
          1. How autoscaling works in Heat
          2. High availability
          3. Stateless versus stateful services
            1. Active/Passive
            2. Active/Active
            3. HA mechanisms for different levels
        3. Horizontal scaling and databases
          1. The approach – the metadata server and cfn-hup
            1. cfn-hup
            2. The metadata server
            3. Benefits
      3. Summary
    11. 4. Installation and Configuration of the Orchestration Service
      1. Orchestration module concepts
        1. Installing and configuring Orchestration
          1. Installing and configuring the Orchestration components
          2. Finalize installation
          3. Verify operations
      2. OpenStack Heat installation
      3. Creating a stack with Heat
        1. Creating an advanced template for Heat
        2. Creating a stack
        3. Verifying a stack
      4. Summary
    12. 5. Working with Heat
      1. Standards used in Heat
        1. Amazon CloudFormation
          1. Simplified infrastructure management
          2. A quick replication of services
          3. Track changes and control
        2. The TOSCA standard
      2. Heat overview and roadmap
      3. The Heat architecture and CLI
        1. The Heat command-line reference
          1. Usage
          2. Getting help
        2. Heat subcommands
        3. Heat optional arguments
      4. The Heat basic workflow
        1. The Heat CLI tools
        2. The Heat API
        3. The Heat CloudWatch API
        4. Message queue (MQ)
        5. The Heat engine
        6. Heat autoscaling principles
      5. JeOS
      6. Summary
    13. 6. Managing Heat
      1. Heat and DevStack
      2. The event stack list
      3. Get the stack list
      4. Create a stack
      5. Show stack details
      6. Show resource details
      7. Update a stack
      8. Delete a stack
      9. The template structure
      10. The CloudFormation template
        1. The AWS template format version
        2. Description
        3. Metadata
        4. Parameters
        5. Mappings
        6. Conditions
        7. Resources
        8. Outputs
      11. Summary
    14. 7. Troubleshooting Heat
      1. VM instances cannot connect to the external network or the Internet
      2. Error received during installation – Unable to write random state
      3. Timeout error received while running jeos_create during customization
      4. A template running with incorrect parameters cannot be deleted
      5. Error – internal error process exited while connecting to monitor
      6. It takes too long to create a JeOS
      7. Error – Quota exceeded: code=InstanceLimitExceeded (HTTP 413)
      8. Error – Response from Keystone does not contain a Heat endpoint
      9. Error – Internal Server Error
      10. Error – Provided KeyName is not registered with Nova
      11. A template is not working after editing
      12. Instances shutdown immediately after creation
      13. Yum update fails with dependency problems related to the oz package
      14. Failed to start qpidd
      15. OpenStack daemons can't connect to qpidd
      16. Ubuntu VMs cannot receive DHCP assignments from hosts running CentOS/Fedora
      17. Debugging OpenStack Heat
      18. Heat list returns 503 error
      19. Heat list hangs up
      20. Troubleshooting common OpenStack errors
        1. Error – internal error Failed to create mDNS client: Daemon not running
          1. The solution
        2. Error – Failed to add image
        3. Keystone ValueError – you need to pass either an existing engine or a database uri
        4. Error – No handlers could be found for logger keystoneclient.client
        5. Error – Access denied for user 'keystone'@'openstack1' (using password: YES)
        6. Error – Connect error/bad request to Auth service at URL %(url)s
      21. Summary
    15. Index