Tải bản đầy đủ (.pdf) (268 trang)

Extending openstack containerization deployment architecting 33 pdf

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (9.45 MB, 268 trang )


Extending OpenStack

Leverage extended OpenStack projects to implement containerization, deployment,
and architecting robust cloud solutions

Omar Khedher

BIRMINGHAM - MUMBAI



Extending OpenStack
Copyright © 2018 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 or its
dealers and distributors, will be held liable for any damages caused or alleged to have been 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.
Commissioning Editor: Gebin George
Acquisition Editor: Rahul Nair
Content Development Editor: Abhishek Jadhav
Technical Editor: Swathy Mohan
Copy Editor: Safis Editing, Dipti Mankame
Project Coordinator: Judie Jose
Proofreader: Safis Editing
Indexer: Priyanka Dhadke
Graphics: Tom Scaria
Production Coordinator: Shraddha Falebhai


First published: February 2018
Production reference: 1260218
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78646-553-5
www.packtpub.com


mapt.io

Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as
industry leading tools to help you plan your personal development and advance your career. For more
information, please visit our website.


Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over
4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content


PacktPub.com
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 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.


Contributors


About the author
Omar Khedher is a systems and network engineer. He has been involved in several cloud-related
project based on AWS and OpenStack. He spent few years as cloud system engineer with talented
teams to architect infrastructure in the public cloud at Fyber in Berlin.
Omar wrote few academic publications for his PhD targeting cloud performance and was the author
of Mastering OpenStack, OpenStack Sahara Essentials and co-authored the second edition of the
Mastering OpenStack books by Packt.

I would like to thank immensely my parents and brothers for their encouragement. A special thank
goes to Dr. M. Jarraya. A thank you to my dears Belgacem, Andre, Silvio and Caro for the support.
Thank you Tamara for the long support and patience. Thank you PacktPub team for the immense
dedication. Many thankful words to the OpenStack family.


About the reviewer
Radhakrishnan Ramakrishnan is a DevOps engineer with CloudEnablers Inc, a product-based
company targeting on multi-cloud orchestration and multi-cloud governance platforms, located in
Chennai, India. He has more than 3 years of experience in Linux server administration, OpenStack
Cloud administration, and Hadoop cluster administration in various distributions, such as Apache
Hadoop, Hortonworks Data Platform, and the Cloudera distribution of Hadoop. His areas of interest
are reading books, listening to music, and gardening.

I would like to thank my family, friends, employers and employees for their continued support.


Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We
have worked with thousands of developers and tech professionals, just like you, to help them share
their insight with the global tech community. You can make a general application, apply for a specific
hot topic that we are recruiting an author for, or submit your own idea.


Table of Contents
Title Page
Copyright and Credits
Extending OpenStack
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews



1.

Inflating the OpenStack Setup
Revisiting the OpenStack ecosystem
Grasping a first layout
Postulating the OpenStack setup
Treating OpenStack as code
Growing the OpenStack infrastructure
Deploying OpenStack
Ansible in a nutshell
Testing the OpenStack environment
Prerequisites for the test environment
Setting up the Ansible environment
Running the OSA installation
Production OpenStack environment
Summary


2.

Massively Scaling Computing Power
Decomposing the compute power
Empowering the compute service
Varying the compute flavor
Meeting Docker
Joining Docker
Meeting Xen
Joining Xen

Segregating the compute resources
Reasoning for infrastructure segregation
Defining regions
Defining AZ
Defining host aggregate
Defining cells
Reasoning for workload segregation
Filtering the compute workload
Weighting the compute power
Stacking or spreading
Weighing in action
Summary


3.

Enlarging the OpenStack Storage Capabilities
Varying the block storage backends
Managing block storage – Logical Volume Manager (LVM)
Managing block storage – Network File System (NFS)
Managing block storage – Ceph RADOS Block Device (RBD)
Scheduling and filtering
Hybrid storage scheduling
Navigating the storage backup alternatives
Ceph as backup
Swift as backup
Exploring Manila – shared file service
Configuring the shared file service
Configuring block storage for the Manila backend
Configuring CephFS for the Manila backend

Summary


4.

Harnessing the Power of the OpenStack Network Service
Neutron plugins reference
Driving the sole plugin – ML2 under the hood
Extending ML2 – customizing your own plugin
Maximizing network availability
Neutron HA – DVR
Configuring DVR
Neutron HA – VRRP
The era of network programming
Orchestrating the network function virtualization (NFV)
Summary


5.

Containerizing in OpenStack
Why containers?
The natural evolution of containers
Game changing – microservices
Building the ship
Containers in OpenStack
Docker Swarm in OpenStack
Example – NGINX web server
Kubernetes in OpenStack
Example – application server

Mesos in OpenStack
Example – a Python-based web server
Summary


6.

Managing Big Data in OpenStack
Big data in OpenStack
Rolling OpenStack Sahara service
Deploying the Hadoop cluster
Executing jobs
Summary


7.

Evolving Self-Cloud Ready Applications in OpenStack
The evolvement of Murano
The Murano ecosystem
Integrating Murano in OpenStack
Deploying a self-contained application
Summary


8.

Extending the Applications Catalog Service
Murano application under the hood
Developing application publisher perspective

Deploying application consumer perspective
Summary


9.

Consolidating the OpenStack Authentication
Recapping the Keystone blocks
The multitude faces of the token
Multiple identity actors
All in one authentication hub
Keystone as SP – SAML
Keystone as SP – OpenID Connect
Summary


10.

Boosting the Extended Cloud Universe
Benchmarking as a Service (BaaS)
Automating OpenStack profiling with Rally
Installing Rally
Benchmarking with Rally
Extending benchmarking with plugins
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think


Preface

OpenStack is a very popular cloud computing platform that has enabled several organizations to
successfully implement their Infrastructure as a Service (IaaS) platforms in the last few years. This
book will guide you through new features of the latest OpenStack releases and how to bring them into
production straight away in an agile way.
It starts by showing you how to expand your current OpenStack setup and approach your next
OpenStack Data Center generation deployment. You will discover how to extend your storage and
network capacity, and also take advantage of containerization technology, such as Docker and
Kubernetes in OpenStack. In addition, it is an opportunity to explore the power of big data as a
service implemented in OpenStack by integrating the Sahara project. This book will teach you how to
build Hadoop clusters and launch jobs in a very simple way. Then, it will dedicate time to automating
and deploying applications on top of OpenStack. You will discover how to create and publish your
own application in simple steps using the novel application catalog service in OpenStack code named
Murano. The final part of the book will shed the light on the identity service and will go through a
consolidated authentication setup using Keystone. The book will be enclosed by leveraging the right
tool to conduct and extend benchmarking performances tests against an operating OpenStack
environment using the Rally platform. By the end of this book, you will be ready to enter the next
phase of OpenStack success by extending and customizing your private cloud based on your
requirements.


Who this book is for
This book is for system administrators, cloud architects, and developers who have experience
working with OpenStack and are ready to step up and extend its functionalities. A good knowledge of
the basic OpenStack components is required. In addition, familiarity with Linux boxes and a good
understanding of network and virtualization jargon is required.


What this book covers
Inflating the OpenStack Setup, describes installing OpenStack from a basic setup model and
introduces an expanded OpenStack layout.

Chapter 1,

Massively Scaling Computing Power, explores the ways to scale the computing availability
in a large infrastructure.
Chapter 2,

Enlarging the OpenStack Storage Capabilities, itemizes the different storage options
available in OpenStack and custom plugins.
Chapter 3,

Harnessing the Power of the OpenStack Network Service, extends the usage of the
OpenStack network service.
Chapter 4,

Containerizing in OpenStack, integrates the Magnum project in OpenStack and itemize its
workflow.
Chapter 5,

Managing Big Data in OpenStack, extends the private cloud setup by covering the big data
world and elastic data processing in OpenStack using the Sahara project.
Chapter 6,

Evolving Self-Cloud Ready Applications in OpenStack, teaches you how to automate
deploying applications on top of OpenStack using Murano project.
Chapter 7,

Extending the Applications Catalog Service, explores the power of Murano plugins by
creating customized ones.
Chapter 8,


Consolidating the OpenStack Authentication, introduces the reader to the new
implementation of Keystone in OpenStack and the federated identity concept.
Chapter 9,

Boosting the Extended Cloud Universe, increases the availability and performance of the
OpenStack infrastructure at scale.
Chapter 10,


×