logo资料库

OpenStackCloudComputingCookbook.pdf 英文原版

第1页 / 共318页
第2页 / 共318页
第3页 / 共318页
第4页 / 共318页
第5页 / 共318页
第6页 / 共318页
第7页 / 共318页
第8页 / 共318页
资料共318页,剩余部分请下载后查看
Cover
Copyright
Credits
About the Author
About the Reviewers
www.PacktPub.com
Table of Contents
Preface
Chapter 1: Starting OpenStack Compute
Introduction
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
Chapter 2: Administering OpenStack Compute
Introduction
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
Chapter 3: Keystone OpenStack Identity Service
Introduction
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
Chapter 4: Installing OpenStack Storage
Introduction
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
Chapter 5: Using OpenStack 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 Storage ACLs
Chapter 6: Administering OpenStack Storage
Introduction
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
Chapter 7: Glance OpenStack Image Service
Introduction
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
Chapter 8: Nova Volumes
Introduction
Configuring nova-volume services
Configuring OpenStack Compute for nova-volume
Creating volumes
Attaching volumes to instances
Detaching volumes from an instance
Deleting volumes
Chapter 9: Horizon OpenStack Dashboard
Introduction
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
Chapter 10: OpenStack Networking
Introduction
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
Chapter 11: In the Datacenter
Introduction
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
Chapter 12: Monitoring
Introduction
Monitoring Compute services with Munin
Monitoring instances using Munin and Collectd
Monitoring the storage service using StatsD/Graphite
Monitoring MySQL with Hyperic
Chapter 13: Troubleshooting
Introduction
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
Index
Index
http://freepdf-books.com
OpenStack Cloud Computing Cookbook Over 100 recipes to successfully set up and manage your OpenStack cloud environments with complete coverage of Nova, Swift, Keystone, Glance, and Horizon Kevin Jackson BIRMINGHAM - MUMBAI
OpenStack Cloud Computing Cookbook Copyright © 2012 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: September 2012 Production Reference: 1150912 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-84951-732-4 www.packtpub.com Cover Image by Faiz Fattohi (faizfattohi@gmail.com) http://freepdf-books.com
Credits Author Kevin Jackson Reviewers Thierry Carrez Atul Kumar Jha Acquisition Editor Kartikey Pandey Lead Technical Editor Azharuddin Sheikh Technical Editors Veronica Fernandes Azharuddin Sheikh Prasad Dalvi Joyslita D'Souza Copy Editor Brandt D'Mello Project Coordinator Yashodhan Dere Proofreader Kevin McGowan Indexer Tejal R. Soni Production Coordinator Nilesh R. Mohite Cover Work Nilesh R. Mohite http://freepdf-books.com
About the Author Kevin Jackson is married, with three children. He is an experienced IT professional working with small businesses and online enterprises. He has extensive experience with various flavors of Linux and Unix. He specializes in web and cloud infrastructure technologies for Trader Media Group. I'd like to thank my wife, Charlene, and the rest of my family for their time, patience, and encouragement throughout the book. I'd also like to extend my thanks to the OpenStack community, which has helped a great deal during my journey with OpenStack. The talent and support is phenomenal. Without the OpenStack community, there would be no OpenStack. A specific mention goes to all those who have made this book possible. Your comments, guidance, and motivation have made writing this book an enjoyable experience. http://freepdf-books.com
About the Reviewers Thierry Carrez is an open source project management expert and has been working on OpenStack since 2010, as the project's Release Manager, sponsored by Rackspace. An Ubuntu Core developer and Debian maintainer, he was previously the Technical Lead for Ubuntu Server edition at Canonical and an Operational Manager for the Gentoo Linux Security Team. He has also worked as an IT Manager for small and large companies. Atul Kumar Jha has been an ardent Linux enthusiast and free software evangelist for more than eight years. He holds an engineering degree in IT and has been working for over four years on different job roles. He also happens to be one of the co-founders of the free software event series called mukt.in. He currently works as an Evangelist for CSS Corp. Pvt. Ltd., Chennai, India, where most of his work involves free/open software technologies and cloud platforms. He's been involved with OpenStack since the Bexar release and has been contributing to the project since then. Most of his contributions have been around documentation, bug reporting, and helping folks on IRC. He can be seen lurking on Freenode, under the #ubuntu-server or #openstack channels, using the handle koolhead17. More information about him can be found at http://www.atuljha.com. http://freepdf-books.com
www.PacktPub.com Support files, eBooks, discount offers and more You might want to visit www.PacktPub.com for support files and downloads related to your book. 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 service@packtpub.com for more details. 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. http://PacktLib.PacktPub.com Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books. Why Subscribe? f Fully searchable across every book published by Packt f Copy and paste, print and bookmark content f On demand and accessible via web browser Free Access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access. http://freepdf-books.com
Table of Contents Preface Chapter 1: Starting OpenStack Compute Introduction 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 Chapter 2: Administering OpenStack Compute Introduction 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 Chapter 3: Keystone OpenStack Identity Service Introduction Installing OpenStack Identity Service Configuring roles Creating tenants Adding users 1 5 6 6 9 12 14 17 19 20 23 25 29 31 31 32 34 37 40 42 46 49 55 55 56 57 59 60 http://freepdf-books.com
分享到:
收藏