Troubleshooting OpenStack
()
About this ebook
About This Book
- Easily fix the nagging problems that commonly plague OpenStack and become the go-to person in your organization
- Get better equipped to troubleshoot and solve common problems in performance, availability, and automation that confront production-ready OpenStack environments
- Save time and decrease frustration by solving significant issues that arise from OpenStack deployments pertaining to storage and networking
Who This Book Is For
You will need a basic understanding of OpenStack, Linux, and Cloud computing. If you have an understanding of Linux, this book will help you leverage that knowledge in the world of OpenStack, giving you confidence to tackle most issues that may arise.
What You Will Learn
- Diagnose and remediate authentication and authorization problems in Keystone
- Fix common issues with images served through Glance
- Master the art of troubleshooting Neutron networking
- Navigate and overcome problems with Nova
- Troubleshoot and resolve Cinder block storage issues
- Identify and correct Swift object storage problems
- Isolate and fix issues caused by Heat orchestration
- Leverage Ceilometer and other metering and monitoring tools for effective troubleshooting
In Detail
OpenStack is a collection of software projects that work together to provide a cloud fabric. OpenStack is one of the fastest growing open source projects in history that unlocks cloud computing for everyone. With OpenStack, you are able to create public or private clouds on your own hardware. The flexibility and control afforded by OpenStack puts the cloud within reach of anyone willing to learn this technology.
Starting with an introduction to OpenStack troubleshooting tools, we’ll walk through each OpenStack service and how you can quickly diagnose, troubleshoot, and correct problems in your OpenStack. Understanding the various projects and how they interact is essential for anyone attempting to troubleshoot an OpenStack cloud. We will start by explaining each of the major components and the dependencies between them, and move on to show you how to identify and utilize an effective set of OpenStack troubleshooting tools and fix common Keystone problems. Next, we will expose you to common errors and problems you may encounter when using the OpenStack Block Storage service (Cinder). We will then examine Heat, the OpenStack Orchestration Service, where you will learn how to trace errors, determine their root cause, and effectively correct the issue.
Finally, you will get to know the best practices to architect your OpenStack cloud in order to achieve optimal performance, availability, and reliability.
Style and approach
This is straight-to-the point guide to fixing your OpenStack cluster. Common problems are identified and suggestions to resolve these problems are presented in a simple, easy-to-understand manner.
Tony Campbell
Tony Campbell is an IT security consultant with fifteen years experience. He specializes in designing secure systems for various government and commercial clients. In recent times Tony has consulted for ICL and Fujitsu Services on many aspects of secure government systems infrastructures, as well as running a small business of his own (exploiting SBS 2003) supplying IT services to other SBS users in the UK.
Related to Troubleshooting OpenStack
Related ebooks
OpenStack Administration with Ansible 2 - Second Edition Rating: 0 out of 5 stars0 ratingsMastering OpenStack Rating: 1 out of 5 stars1/5OpenStack Object Storage (Swift) Essentials Rating: 0 out of 5 stars0 ratingsOpenStack Administration with Ansible Rating: 0 out of 5 stars0 ratingsOpenStack Networking Essentials Rating: 0 out of 5 stars0 ratingsOpenStack for Architects Rating: 0 out of 5 stars0 ratingsOpenStack Essentials Rating: 0 out of 5 stars0 ratingsOpenStack Trove Essentials Rating: 0 out of 5 stars0 ratingsImplementing Cloud Storage with OpenStack Swift Rating: 0 out of 5 stars0 ratingsOpenStack Orchestration Rating: 5 out of 5 stars5/5Practical OneOps Rating: 0 out of 5 stars0 ratingsOpenStack Sahara Essentials Rating: 0 out of 5 stars0 ratingsOpenStack Cloud Security Rating: 0 out of 5 stars0 ratingsExtending Jenkins Rating: 0 out of 5 stars0 ratingsOpenStack Essentials - Second Edition Rating: 0 out of 5 stars0 ratingsVMware vSphere Design Essentials Rating: 0 out of 5 stars0 ratingsCentOS High Performance Rating: 0 out of 5 stars0 ratingsMastering Ceph Rating: 0 out of 5 stars0 ratingsLearning CoreOS Rating: 0 out of 5 stars0 ratingsCentOS High Availability Rating: 5 out of 5 stars5/5Ansible For Containers and Kubernetes By Examples Rating: 0 out of 5 stars0 ratingsMonitoring Docker Rating: 0 out of 5 stars0 ratingsExtending Docker Rating: 0 out of 5 stars0 ratingsQuick Start Kubernetes Rating: 0 out of 5 stars0 ratingsDocker Networking Cookbook Rating: 0 out of 5 stars0 ratingsNginx Troubleshooting Rating: 0 out of 5 stars0 ratingsCentOS System Administration Essentials Rating: 0 out of 5 stars0 ratingsLearning Nagios 4 Rating: 5 out of 5 stars5/5Mastering DevOps in Kubernetes: Maximize your container workload efficiency with DevOps practices in Kubernetes (English Edition) Rating: 0 out of 5 stars0 ratingsLearning Docker Rating: 5 out of 5 stars5/5
System Administration For You
CompTIA A+ Complete Review Guide: Core 1 Exam 220-1101 and Core 2 Exam 220-1102 Rating: 5 out of 5 stars5/5Cybersecurity: The Beginner's Guide: A comprehensive guide to getting started in cybersecurity Rating: 5 out of 5 stars5/5Linux Bible Rating: 0 out of 5 stars0 ratingsNetworking for System Administrators: IT Mastery, #5 Rating: 5 out of 5 stars5/5Git Essentials Rating: 4 out of 5 stars4/5Practical Data Analysis Rating: 4 out of 5 stars4/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratingsThe Complete Powershell Training for Beginners Rating: 0 out of 5 stars0 ratingsPowerShell: A Comprehensive Guide to Windows PowerShell Rating: 4 out of 5 stars4/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Learn PowerShell Scripting in a Month of Lunches Rating: 0 out of 5 stars0 ratingsBash Command Line Pro Tips Rating: 5 out of 5 stars5/5Learn Windows PowerShell in a Month of Lunches Rating: 0 out of 5 stars0 ratingsLinux Command-Line Tips & Tricks Rating: 0 out of 5 stars0 ratingsMastering Windows PowerShell Scripting Rating: 4 out of 5 stars4/5Mastering Bash Rating: 5 out of 5 stars5/5Wordpress 2023 A Beginners Guide : Design Your Own Website With WordPress 2023 Rating: 0 out of 5 stars0 ratingsLearn SQL Server Administration in a Month of Lunches Rating: 0 out of 5 stars0 ratingsImprove your skills with Google Sheets: Professional training Rating: 0 out of 5 stars0 ratingsMastering Linux Shell Scripting Rating: 4 out of 5 stars4/5PowerShell: A Beginner's Guide to Windows PowerShell Rating: 4 out of 5 stars4/5Learning Linux Shell Scripting Rating: 4 out of 5 stars4/5Linux Commands By Example Rating: 5 out of 5 stars5/5
Reviews for Troubleshooting OpenStack
0 ratings0 reviews
Book preview
Troubleshooting OpenStack - Tony Campbell
Table of Contents
Troubleshooting OpenStack
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. The Troubleshooting Toolkit
The project overview of OpenStack
Keystone
Glance
Neutron
Nova
Cinder
Swift
Heat
Ceilometer
Horizon
Oslo
Documentation
Ironic
Magnum
Trove
Barbican
Congress
Designate
The supporting technologies
Linux
Databases
Message queue
The Apache web server
Basic troubleshooting methodology and tools
General Linux tools
Linux processes
ps
pgrep
pkill
top and htop
Hard drives
df
fdisk
parted
cat /proc/partitions
Installed packages
General tools
The watch command
File tools
Message broker tools
RabbitMQ
Summary
2. Troubleshooting OpenStack Identity
Know your version
Running Keystone under Eventlet
Checking the Keystone service
Checking the Keystone client
Checking the OpenStack Client
The client debug mode
Checking the API
Keystone process not starting
Database stopped
The service catalog endpoint
Running under WSGI
mod_wsgi
wsgi-keystone.conf
Stopping the Eventlet process
Checking WSGI files
Checking the Keystone service
Summary
3. Troubleshooting the OpenStack Image Service
Glance services
Confirming the Glance database
Confirming the Glance authentication
Keystone up
Service User Set Up
The service user setup
Service endpoints correct
Confirming the Glance API setup
Checking the command-line interface client
Glance logging and configuration
The log level
Where to look
Searching logs
Common errors
Unable to establish connection
Internal server errors (HTTP 500)
Unable to validate token
Summary
4. Troubleshooting OpenStack Networking
Identifying Neutron issues
Neutron services and agents
Neutron logs
Common problems
When you can't ping an instance
Security groups
Network namespaces
No IP address
Troubleshooting tools
ovs-vsctl
The Neutron client
Summary
5. Troubleshooting OpenStack Compute
Checking the services
nova-api
Address already in use
The permission error
nova-scheduler
nova-compute
nova-conductor
Supporting services
The Nova database
Nova authentication
Keystone up
Setting up the service user
Service endpoints correct
Nova and Glance
Nova and Neutron
Summary
6. Troubleshooting OpenStack Block Storage
Cinder processes
Logging
Cinder dependencies
Keystone authentication problems
RabbitMQ problems
Cinder errors
Missing the cinder-volumes volume group
The volume stuck in the creating state
Insufficient free space
Not sending heartbeat
Summary
7. Troubleshooting OpenStack Object Storage
Swift processes
The proxy server
Swift authentication
Troubleshooting TempAuth
TempAuth configuration
The account and username
The password
400 Bad Request
Troubleshooting Swauth
Swauth initialization
Swift with Keystone
Swift users
Summary
8. Troubleshooting the OpenStack the Orchestration Service
Heat services
Running heat-api
Running heat-engine
Heat authentication
The Keystone service
Auth credentials
Heat template errors
Summary
9. Troubleshooting the OpenStack Telemetry Service
Ceilometer processes
Ceilometer authentication
Ceilometer dependencies
The message broker
Databases
The command-line client
The meter list command
Glance meters
Nova meters
The sample list
Summary
10. OpenStack Performance, Availability, and Reliability
Databases
Availability
MySQL with Galera Cluster
Postgres
Performance
MySQL
Show status
Mytop
The Mytop header section
The Mytop thread section
Percona Toolkit
Postgres
The PostgreSQL statistics collector
Database backups
Monitoring
Resource monitoring
OpenStack quotas
RabbitMQ
Clustering
Mirrored queues
Services
Monitoring service processes
Backing up services
Community resources
Testing
Bugs
Ask.openstack.org
Summary
Index
Troubleshooting OpenStack
Troubleshooting OpenStack
Copyright © 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: March 2016
Production reference: 1170316
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-688-0
www.packtpub.com
Credits
Author
Tony Campbell
Reviewer
Cody Bunch
Acquisition Editor
Divya Poojari
Content Development Editor
Trusha Shriyan
Technical Editor
Pranjali Mistry
Copy Editor
Neha Vyas
Project Coordinator
Kinjal Bari
Proofreader
Safis Editing
Indexer
Rekha Nair
Production Coordinator
Melwyn Dsa
Cover Work
Melwyn Dsa
About the Author
Tony Campbell grew up in the heart of Silicon Valley where he had access and exposure to many technology companies that led the Internet boom. He started programming in the early 90s and has been hooked since then. Tony is committed to helping others understand and successfully adopt OpenStack.
About the Reviewer
Cody Bunch is a private cloud/virtualization architect. He has authored and coauthored several OpenStack and VMware books. Additionally, he has been a technical editor on a number of projects. Cody also frequently speaks at industry events and in local user groups, and he runs the vSensei mentorship program as well.
He has reviewed this book as well as OpenStack Networking Essentials. He has also the following books for Packt Publishing:
VMware vCloud Director Cookbook
Managing VMware Infrastructure with Windows PowerShell
VMware VI and vSphere SDK: Managing the VMware Infrastructure and vSphere
www.PacktPub.com
eBooks, discount offers, and more
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web browser
This book is dedicated in the loving memory of my mother, Joyce E. Campbell, who was the first to ignite my passion for technology.
Preface
OpenStack is one of the fastest growing open source projects in the history. Its rapid adoption and popularity has led to an increase in the demand of OpenStack talent. The skills you will learn in this book will help you position yourself as an effective OpenStack troubleshooter.
What this book covers
Chapter 1, The Troubleshooting Toolkit, covers various tools that will provide invaluable as you troubleshoot OpenStack.
Chapter 2, Troubleshooting OpenStack Identity, helps you to quickly recognize and resolve identity and authentication issues.
Chapter 3, Troubleshooting the OpenStack Image Service, fixes problems with Glance, the OpenStack Image service.
Chapter 4, Troubleshooting OpenStack Networking, shows you how to resolve networking problems within your OpenStack cluster.
Chapter 5, Troubleshooting OpenStack Compute, adverts that the compute service is central to OpenStack, and this chapter includes helpful tips for quickly getting things resolved in case the service breaks.
Chapter 6, Troubleshooting OpenStack Block Storage, explores ways to resolve issues with persistent storage in an OpenStack cluster.
Chapter 7, Troubleshooting OpenStack Object Storage, introduces you to object storage in OpenStack and helps you master the techniques to resolve common issues.
Chapter 8, Troubleshooting the OpenStack Orchestration Service, discusses Heat, the OpenStack Orchestration service, and how to navigate through errors or problems with this service.
Chapter 9, Troubleshooting the OpenStack Telemetry Service, explores Ceilometer and how to troubleshoot issues with the telemetry processes and meters.
Chapter 10, OpenStack Performance, Availability, and Reliability, provides you with tips for maintaining the overall health of your OpenStack cluster.
What you need for this book
This book is based upon the Liberty release of OpenStack running on the Ubuntu operating system. While most of the content will be relevant to other versions of OpenStack, and alternate operating systems, the examples are based on the author's configuration.
Who this book is for
You will need a basic understanding of OpenStack, Linux, and cloud computing. If you have an understanding of Linux, this book will help you leverage that knowledge in the world of OpenStack, giving you confidence to tackle most issues that may arise.
Conventions
In this book, you will find a number of text styles 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: Typing ceilometer help in the terminal will give you a list of the available commands.
A block of code is set as follows:
instance_usage_audit = True
instance_usage_audit_period = hour
notify_on_state_change = vm_and_task_state
notification_driver = messagingv2
Any command-line input or output is written as follows:
sudo -u ceilometer ceilometer-api --config-file=/etc/ceilometer/ceilometer.conf --log-file=/var/log/ceilometer/ceilometer-api.log
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 disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.
To send us general feedback, simply e-mail <feedback@packtpub.com>, and mention the book's title in 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 at 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 could 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,