OpenStack Operations Guide
数字版,有目录。Openstack Operations Guide Paperback – July 1, 2014Design, deploy, and maintain your own private or public Infrastructure as a Service (IaaS), using the open source OpenStack platform. In this practical guide, experienced developers and OpenStack contributors show you how to build clouds Open Stack Operations Guideby Tom Fifield, Diane Fleming, Anne gentleLorin Hochstein, Jonathan Proulx, Everett Toews,and Joe TopjianBeng. Cambridge. Farnham·Kn· Sebastopol, Tokyo O REILLY°Open Stack Operations Guideby Tom Fifield, Diane Fleming, Anne Gentle, Lorin Hochstein, Jonathan Proulx, Everett Toews, and JoeTopjianCopyright o 2014 Open Stack Foundation. All rights reservedPrinted in the United States of AmericaPublished by oreilly Media, InC, 1005 Gravenstein Highway North, Sebastopol, CA 95472OReilly books may be purchased for educational, business, or sales promotional use. Online editions arealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformationcontactourcorporate/institutionalsalesdepartment800-998-9938orcorporate@oreilly.comEditors: Andy Oram and Brian AndersonIndexer: Judith McConvilleProduction Editor: Kristen brownInterior Designer: David FutatoCopyeditor: John PierceCover Designer: Karen MontgomeryProofreader: Amanda Kerseyustrator: rebecca demarestMay2014:First editionRevision history for the first Edition2014-04-21: First releaseSeehttp://oreilly.com/catalog/errata.csp?isbn=9781491946954forreleasedetailsNutshell Handbook, the Nutshell Handbook logo, and the O Reilly logo are registered trademarks ofOReilly Media, Inc. Open Stack Operations Guide, the image of a crested agouti, and related trade dress aretrademarks of O Reilly Media, IncMany of the designations used by manufacturers and sellers to distinguish their products are claimed atrademarks. Where those designations appear in this book, and O Reilly Media, Inc,, was aware of a trademark claim, the designations have been printed in caps or initial capsWhile every precaution has been taken in the preparation of this book, the publisher and authors assumeno responsibility for errors or omissions, or for damages resulting from the use of the information contained herein978-1-491-94695-4ILSITable of contentsPrefaceXIPart l. ArchitectureExample Architectures.Example architecture-Legacy Networking(novaOverview3347Detailed DescriptionOptional extensionsExample Architecture-Open Stack NetworkingOverviewDetailed DescriptionExample Component Configuration19Parting Thoughts on architectures232. Provisioning and Deployment.Automated Deployment25Disk Partitioning and raid26Network Configuration28Automated Configuration28Remote management29Parting Thoughts for Provisioning and Deploying Open Stack29Conclusion303. Designing for Cloud Controllers and Cloud Management.31Hardware Considerations32Separation of services33Database34Message Queue34Conductor services35Application Programming Interface(API)35Extensions36Scheduling36Images37Dashboard37Authentication and Authorization37Network Considerations384.〔 ompute nodes.39Choosing a CPU39Choosing a hypervisorInstance Storage Solutions41Off Compute node storage- Shared File System42On Compute node storage--Shared File SystemOn Compute node storage-Nonshared File System43Issues with Live Migration43Choice of File System44Overcommittingging45NetworkingConclusion45IngThe Starting PointAdding cloud Controller Nodes49Segregating Your cloudCells and regio51Availability Zones and Host Aggregates51Scalable hardware53Hardware Procurement53Capacity Planning54Burn-in Testing546. Storage decisions55Ephemeral storagePersistent storage55Object Storage55Block storag5Open Stack Storage Concepts57Choosing Storage Backends58iv Table of ContentsCommodity Storage backend TechnologiesConclusion627. Network Design.................63Management Network63Public Addressing OptionsIP Address Planning64Network Topology65VLAN Configuration Within Open Stack vmsMulti-NIC Provisioning67Multi-Host and Single-Host Networking67Services for Networking68NTPDNS68Conclusion68Part l. Operations8. Lay of the land...USing the open Stack Dashboard for Administration71Command-Line tools71Installing the Tools72Administrative command-Line toolsGetting CredentialsInspecting API CallsServers and services76Diagnose Your Compute Nodes78Network InspectionUsers and Projects80Running instances81Summary829. Managing Projects and Users.e。。。。83Projects or Tenants?83Managing projects84Adding Projects84Qurotas85Set Image Quotas86Set compute service QuotasSet Object Storage Quotas89Set Block Storage QuotasTable of contentsUser Management92Creating New Users92Associating Users with ProjectsCustomizing authorization94Users Who Disrupt Other usersSummary9710. User-Facing Operations99Images9Adding Images99Sharing images between Projects100Deleting lmages100Other cli options101The Image Service and the Database101Example Image Service Database Queries101avors101Private flavors103How do i modify an Existing Flavor?103Security groups104General Security Groups Configuration104End-User Configuration of Security Groups104Block Storage106Block Storage creation Failures108Instances108Starting Instances108Instance boot failures109Using Instance-Specific Data110Associating Security Groups112Floating Ips112Attaching block Storage113Taking Snapshots114Live Snapshots115Instances in the database116Good Luck!1171. Maintenance, Failures, and Debugging....................119Cloud Controller and Storage Proxy Failures and maintenance119Planned maintenanceRebooting a Cloud Controller or Storage Proxy119After a Cloud Controller or Storage Proxy reboots120Total Cloud Controller failure120Compute Node Failures and maintenance121Table of contentsPlanned maintenance121After a Compute Node reboots121Instances122Inspecting and recovering data from Failed Instances122Volumes125Total Compute Node failure125/var/lib/nova/instances126Storage Node Failures and Maintenance127Rebooting a storage node127Shutting Down a Storage Node127Replacing a Swift Disk127Handling a Complete Failure128Configuration Management129Workgwith hardwar129Adding a Compute node130Adding an object Storage node130Replacing Components130Dat131Database Connectivity131Performance and Optimizing131HDWMY132132Daily132132Monthl132Quarterl132Semiannually133Determining Which Component Is Broken133Tailinng Log133Running daemons on the Cli134Uninstalling13512. Network Troubleshooting.....137Using ip a to Check Interface States137Visualizing nova-network Traffic in the Cloud138Visualizing Open Stack Networking Service Traffic in the Cloud139Finding a Failure in the path145tcpdump146iptables147Network Configuration in the Database for nova-network148Manually Deassociating a Floating IP148Debugging DHCP Issues with nova-network149Table of contents|ⅶiDebugging DNS Issues152Troubleshooting Open vSwitch153Dealing with Network Namespaces154Summary15513. Logging and Monitoring157Where are the logs?157Reading the Logs158TracingInstance requests159Adding Custom Logging Statements160RabbitMQ Web Management Interface or rabbitmqctl161Centrally Managing Logs161rsyslog Client Configuration161rsyslog server configuration162StackTachMonitoring163Process Monitoring164Resource alertMetering and Telemetry with Ceilometer165Open Stack-Specific Resources166elegent Alerting167Trending168Summary16914. Backup and Recovery.71What to Back U171DatBacki172File System Backups172Compute172Image Catalog and Delivery173Identity173Block storage173Object StorageRecovering Backups173ummary17415. CustomizationCreate an Open Stack Development Environment175Customizing Object Storage(Swift) Middleware178Customizing the Open Stack Compute(nova) Scheduler184Customizing the Dashboard (Horizon)189I Table of Contents
暂无评论