Certified OpenStack Administrator Study Guide

Transcription

CertifiedOpenStackAdministratorStudy Guide—Andrey Markelov

Cer tified OpenStackAdministrator StudyGuideAndrey Markelov

Certified OpenStack Administrator Study GuideAndrey MarkelovStockholm, SwedenISBN-13 (pbk): 978-1-4842-2124-2DOI 10.1007/978-1-4842-2125-9ISBN-13 (electronic): 978-1-4842-2125-9Library of Congress Control Number: 2016958120Copyright 2016 by Andrey MarkelovThis work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of thematerial is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation,broadcasting, reproduction on microfilms or in any other physical way, and transmission or informationstorage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology nowknown or hereafter developed.Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol withevery occurrence of a trademarked name, logo, or image we use the names, logos, and images only in aneditorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.The use in this publication of trade names, trademarks, service marks, and similar terms, even if they arenot identified as such, is not to be taken as an expression of opinion as to whether or not they are subject toproprietary rights.While the advice and information in this book are believed to be true and accurate at the date of publication,neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors oromissions that may be made. The publisher makes no warranty, express or implied, with respect to the materialcontained herein.Managing Director: Welmoed SpahrAcquisitions Editor: Louise CorriganDevelopment Editor: Corbin CollinsTechnical Reviewer: Anton ArapovEditorial Board: Steve Anglin, Pramila Balan, Laura Berendson, Aaron Black, Louise Corrigan,Jonathan Gennick, Todd Green, Robert Hutchinson, Celestin Suresh John, Nikhil Karkal,James Markham, Susan McDermott, Matthew Moodie, Natalie Pao, Gwenan SpearingCoordinating Editor: Nancy ChenCopy Editor: Mary BeardenCompositor: SPi GlobalIndexer: SPi GlobalCover Image: Courtesy of Freepik.comDistributed to the book trade worldwide by Springer Science Business Media New York, 233 Spring Street,6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springersbm.com, or visit www.springer.com. Apress Media, LLC is a California LLC and the sole member (owner)is Springer Science Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delawarecorporation.For information on translations, please e-mail rights@apress.com, or visit www.apress.com.Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use.eBook versions and licenses are also available for most titles. For more information, reference our SpecialBulk Sales–eBook Licensing web page at www.apress.com/bulk-sales.Any source code or other supplementary materials referenced by the author in this text are available toreaders at www.apress.com. For detailed information about how to locate your book’s source code, go towww.apress.com/source-code/. Readers can also access source code at SpringerLink in the SupplementaryMaterial section for each chapter.Printed on acid-free paper

To my wife, Elena, for her love and support.

Contents at a GlanceAbout the Author . xiAbout the Technical Reviewer . xiiiIntroduction .xv Chapter 1: Getting to Know OpenStack . 1 Chapter 2: How to Build Your Own Virtual Test Environment . 7 Chapter 3: Identity Management . 19 Chapter 4: Image Management . 31 Chapter 5: OpenStack Networking . 43 Chapter 6: OpenStack Compute . 65 Chapter 7: OpenStack Dashboard . 87 Chapter 8: OpenStack Object Storage . 91 Chapter 9: Block Storage . 99 Chapter 10: Orchestration of OpenStack . 119 Chapter 11: Troubleshooting . 131 Chapter 12: Conclusion . 153Index . 157v

ContentsAbout the Author . xiAbout the Technical Reviewer . xiiiIntroduction .xv Chapter 1: Getting to Know OpenStack . 1Understanding the Components That Make Up the Cloud . 2History of OpenStack Project . 4OpenStack Distribution and Vendors . 5 Chapter 2: How to Build Your Own Virtual Test Environment . 7Installing Vanilla OpenStack with the DevStack Tool . 7Installing RDO OpenStack Distribution with PackStack . 9Installing Mirantis OpenStack with Fuel Tool . 13Using the OpenStack CLI . 17 Chapter 3: Identity Management . 19Architecture and Main Components of Keystone . 19Managing Keystone Catalog Services and Endpoints . 21Managing/Creating Projects, Users, and Roles . 24Managing and Verifying Operation of the Identity Service . 27Review Questions . 29Answers to Review Questions . 30vii

CONTENTS Chapter 4: Image Management . 31Architecture and Main Components of Glance . 31Deploying a New Image to an OpenStack Instance. 33Managing Images . 36Managing Image Back Ends . 39Verifying Operation of the Image Service . 40Review Questions . 41Answers to Review Questions . 42 Chapter 5: OpenStack Networking . 43Architecture and Components of Neutron . 43Architecture of Open vSwitch . 45Manage Network Resources . 48Manage Project Security Group Rules . 57Manage Quotas . 59Verify Operation of Network Service . 61Review Questions . 63Answers to Review Questions . 64 Chapter 6: OpenStack Compute . 65Architecture and Components of Nova . 65Managing Flavors . 69Managing and Accessing an Instance Using a Keypair . 70Launching, Shutting Down, and Terminating the Instance . 72Managing Instance Snapshots . 76Managing Quotas . 78Getting Nova Stats . 80Verifying Operation and Managing Nova Compute Servers. 82Review Questions . 85Answers to Review Questions . 86viii

CONTENTS Chapter 7: OpenStack Dashboard . 87Architecture of Horizon. 87Verify Operation of the Dashboard . 88Review Question. 89Answer to Review Question . 89 Chapter 8: OpenStack Object Storage . 91Overview of Swift Object Storage . 91Managing Permissions on a Container in Object Storage . 93Using the cURL Tool for Working with Swift . 94Managing Expiring Objects. 95Monitoring Swift Cluster. 95Review Questions . 97Answers to Review Questions . 98 Chapter 9: Block Storage . 99Architecture and Components of Cinder . 99Manage Volume and Mount It to a Nova Instance . 102Create Volume Group for Block Storage . 107Manage Quotas . 108Back Up and Restore Volumes and Snapshots . 110Manage Volume Snapshots . 112Manage Volumes Encryption . 114Set Up Storage Pools . 116Review Questions . 117Answers to Review Questions . 118 Chapter 10: Orchestration of OpenStack . 119Architecture and Components of Heat . 119Introducing the Heat OpenStack Template . 120Launching a Stack Using a HOT . 122ix

CONTENTSUsing Heat CLI and Dashboard .

As OpenStack s web site states, it s designed to help companies identify top talent in the industry, and help job seekers demonstrate their skills. The COA certification is available to anyone who passes the exam. No mandatory learning is required. However, the Certified OpenStack Administrator is a professional, typically with at least six months OpenStack experience. It is very important to .