Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Production Ready OpenStack - Recipes for Successful Environments
Production Ready OpenStack - Recipes for Successful Environments

Production Ready OpenStack - Recipes for Successful Environments: Production Ready OpenStack - Recipes for Successful Environments

eBook
€21.99 €24.99
Paperback
€30.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Production Ready OpenStack - Recipes for Successful Environments

Chapter 2. Deploying OpenStack Using Staypuft OpenStack Installer

In this chapter, we will cover the following:

  • Setting up the environment
  • Installing Staypuft packages
  • Discovering hosts for provisioning
  • Creating a new OpenStack deployment
  • Configuring a network
  • Allocating hosts to roles
  • Configuring host networking
  • Deploying OpenStack

Introduction

Installing OpenStack manually, as outlined in Chapter 1, Introduction to OpenStack and its Deployment Using Packages, allows the maximum level of customization, but it introduces a level of difficulty to deploy OpenStack consistently across multiple nodes, as it requires performing countless manual steps repeatedly. Project Staypuft simplifies OpenStack production installations; Staypuft is a wizard-based installer that automates the OpenStack configuration and deployment process. Staypuft is a plugin built on top of Foreman, an open source life cycle management tool, and it leverages Foreman's capabilities. Staypuft can automatically discover and orchestrate the provisioning of new bare-metal controllers and computes. It can deploy highly available controllers with all required HAProxy and pacemaker configurations.

Setting up the environment

Before deploying Staypuft server and preparing it for a new OpenStack deployment, we need to prepare the environment with necessary prerequisites for the deployment.

Getting ready

In this chapter, we will use Staypuft to deploy controller/Neutron/Computes layout, we will need to prepare networks for the environment and prepare the host that will serve as the Staypuft host.

Networks layout

We will need to make sure that all machines are connected to a dedicated network that will be used for provisioning. The Staypuft host and Neutron node need to have access to a public network. All compute nodes and Neutron network node need to be connected to the tenant network. See the following diagram:

Networks layout

Provisioning PXE network

Staypuft automatically stands up a PXE environment with Cobbler, TFTP, DHCP, and DNS on the Staypuft host. Staypuft uses the provisioning network to deploy the base operating system of the hosts that serve as controllers, Neutron, and compute nodes and later...

Installing Staypuft packages

At this point, we have all the needed prerequisites configured and we should be ready to proceed installing Staypuft packages and running the Installer pre configuration script.

Getting ready

It is recommended to run on the latest update of the operating system. We can use yum to update the system:

[root@staypuft.example.com ~]# yum update

Use the yum install command to install the staypuft installer package, which brings all dependence packages.

[root@staypuft.example.com ~]# yum install foreman-installer-staypuft

How to do it…

The Staypuft installer takes care of installing Foreman and the Staypuft plugin on top of it. Then, it configures the host and Foreman, including all necessary networks, firewall, SELinux, and repository configurations, so the Staypuft host is ready to deploy new OpenStack deployments after the setup process.

  1. Execute the staypuft-installer command to install and setup Staypuft:
    [root@staypuft.example.com ~]# staypuft-installer
    
  2. Select...

Discovering hosts for provisioning

Before creating a new OpenStack deployment, we need to add hosts to Staypuft to be provisioned as OpenStack nodes. Staypuft uses the host's auto discovery via the PXE provisioning network.

Getting ready

We will need to access the Staypuft user interface and then make sure that the hosts we plan to deploy as Controller, Compute, and Neutron are ready for the deployment.

Accessing the Staypuft web user interface

Access the Staypuft web user interface. On completion of the previous section, staypuft-installer provided a URL, and the password for the admin account that was generated for the environment. Open your web browser and navigate to the URL that was provided by staypuft-installer. Log in with the Username admin and Password that was provided. In this example, we used the name http://Staypuft.example.com.

Accessing the Staypuft web user interface

In case you didn't make a note of the password that was generated, you can locate the file /etc/foreman/staypuft-installer.answers.yaml under...

Creating a new OpenStack deployment

At this point, we are ready to create a new OpenStack deployment and provision the Controller, Neutron, and Compute nodes. We will create a new deployment, configure general deployment settings, create and assign subnets and service networks. Then, we will configure Neutron, Glance, and Cinder services. When the deployment configuration is ready, we will assign hosts for each OpenStack role and deploy the environment.

How to do it...

Proceed with the following steps:

  1. Create a new deployment by navigating in the upper menu to OpenStack Installer | New Deployment.
    How to do it...
  2. Choose a new name for the deployment in the Name text and fill the description text.
  3. Select Controller/Compute layout in the High Availability section. If you would like to deploy highly available controllers layout, keep in mind that this layout requires at least three nodes for the Controller role.
  4. Choose RabbitMQ as the message provider. Staypuft can deploy RabbitMQ and QPID. Since RabbitMQ is more...

Introduction


Installing OpenStack manually, as outlined in Chapter 1, Introduction to OpenStack and its Deployment Using Packages, allows the maximum level of customization, but it introduces a level of difficulty to deploy OpenStack consistently across multiple nodes, as it requires performing countless manual steps repeatedly. Project Staypuft simplifies OpenStack production installations; Staypuft is a wizard-based installer that automates the OpenStack configuration and deployment process. Staypuft is a plugin built on top of Foreman, an open source life cycle management tool, and it leverages Foreman's capabilities. Staypuft can automatically discover and orchestrate the provisioning of new bare-metal controllers and computes. It can deploy highly available controllers with all required HAProxy and pacemaker configurations.

Setting up the environment


Before deploying Staypuft server and preparing it for a new OpenStack deployment, we need to prepare the environment with necessary prerequisites for the deployment.

Getting ready

In this chapter, we will use Staypuft to deploy controller/Neutron/Computes layout, we will need to prepare networks for the environment and prepare the host that will serve as the Staypuft host.

Networks layout

We will need to make sure that all machines are connected to a dedicated network that will be used for provisioning. The Staypuft host and Neutron node need to have access to a public network. All compute nodes and Neutron network node need to be connected to the tenant network. See the following diagram:

Provisioning PXE network

Staypuft automatically stands up a PXE environment with Cobbler, TFTP, DHCP, and DNS on the Staypuft host. Staypuft uses the provisioning network to deploy the base operating system of the hosts that serve as controllers, Neutron, and compute nodes and later...

Installing Staypuft packages


At this point, we have all the needed prerequisites configured and we should be ready to proceed installing Staypuft packages and running the Installer pre configuration script.

Getting ready

It is recommended to run on the latest update of the operating system. We can use yum to update the system:

[root@staypuft.example.com ~]# yum update

Use the yum install command to install the staypuft installer package, which brings all dependence packages.

[root@staypuft.example.com ~]# yum install foreman-installer-staypuft

How to do it…

The Staypuft installer takes care of installing Foreman and the Staypuft plugin on top of it. Then, it configures the host and Foreman, including all necessary networks, firewall, SELinux, and repository configurations, so the Staypuft host is ready to deploy new OpenStack deployments after the setup process.

  1. Execute the staypuft-installer command to install and setup Staypuft:

    [root@staypuft.example.com ~]# staypuft-installer
    
  2. Select option...

Discovering hosts for provisioning


Before creating a new OpenStack deployment, we need to add hosts to Staypuft to be provisioned as OpenStack nodes. Staypuft uses the host's auto discovery via the PXE provisioning network.

Getting ready

We will need to access the Staypuft user interface and then make sure that the hosts we plan to deploy as Controller, Compute, and Neutron are ready for the deployment.

Accessing the Staypuft web user interface

Access the Staypuft web user interface. On completion of the previous section, staypuft-installer provided a URL, and the password for the admin account that was generated for the environment. Open your web browser and navigate to the URL that was provided by staypuft-installer. Log in with the Username admin and Password that was provided. In this example, we used the name http://Staypuft.example.com.

In case you didn't make a note of the password that was generated, you can locate the file /etc/foreman/staypuft-installer.answers.yaml under admin_password...

Left arrow icon Right arrow icon

Key benefits

  • Get a deep understanding of OpenStack's internal structure and services
  • Learn real-world examples on how to build and configure various production grade use cases for each of OpenStack's services
  • Use a step-by-step approach to install and configure OpenStack's services to provide Compute, Storage, and Networking as a services for cloud workloads

Description

OpenStack is the most popular open source cloud platform used by organizations building internal private clouds and by public cloud providers. OpenStack is designed in a fully distributed architecture to provide Infrastructure as a Service, allowing us to maintain a massively scalable cloud infrastructure. OpenStack is developed by a vibrant community of open source developers who come from the largest software companies in the world. The book provides a comprehensive and practical guide to the multiple uses cases and configurations that OpenStack supports. This book simplifies the learning process by guiding you through how to install OpenStack in a single controller configuration. The book goes deeper into deploying OpenStack in a highly available configuration. You'll then configure Keystone Identity Services using LDAP, Active Directory, or the MySQL identity provider and configure a caching layer and SSL. After that, you will configure storage back-end providers for Glance and Cinder, which will include Ceph, NFS, Swift, and local storage. Then you will configure the Neutron networking service with provider network VLANs, and tenant network VXLAN and GRE. Also, you will configure Nova's Hypervisor with KVM, and QEMU emulation, and you will configure Nova's scheduler filters and weights. Finally, you will configure Horizon to use Apache HTTPD and SSL, and you will customize the dashboard's appearance.

Who is this book for?

If you have a basic understanding of Linux and Cloud computing and want to learn about configurations that OpenStack supports, this is the book for you. Knowledge of virtualization and managing Linux environments is expected. Prior knowledge or experience of OpenStack is not required, although beneficial.

What you will learn

  • Plan an installation of OpenStack with a basic configuration
  • Deploy OpenStack in a highly available configuration
  • Configure Keystone Identity services with multiple types of identity backends
  • Configure Glance Image Store with File, NFS, Swift, or Ceph image backends and use local image caching
  • Design Cinder to use a single storage provider such as LVM, Ceph, and NFS backends, or to use multiple storage backends simultaneously
  • Manage and configure the OpenStack networking backend
  • Configure OpenStack s compute hypervisor and the instance scheduling mechanism
  • Build and customize the OpenStack dashboard

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 12, 2015
Length: 210 pages
Edition : 1st
Language : English
ISBN-13 : 9781783986910
Vendor :
OpenStack
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Oct 12, 2015
Length: 210 pages
Edition : 1st
Language : English
ISBN-13 : 9781783986910
Vendor :
OpenStack
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 114.97
Production Ready OpenStack - Recipes for Successful Environments
€30.99
Learning OpenStack Networking (Neutron), Second Edition
€41.99
OpenStack Networking Cookbook
€41.99
Total 114.97 Stars icon

Table of Contents

10 Chapters
1. Introduction to OpenStack and its Deployment Using Packages Chevron down icon Chevron up icon
2. Deploying OpenStack Using Staypuft OpenStack Installer Chevron down icon Chevron up icon
3. Deploying Highly Available OpenStack Chevron down icon Chevron up icon
4. Keystone Identity Service Chevron down icon Chevron up icon
5. Glance Image Service Chevron down icon Chevron up icon
6. Cinder Block Storage Service Chevron down icon Chevron up icon
7. Neutron Networking Service Chevron down icon Chevron up icon
8. Nova-Compute Service Chevron down icon Chevron up icon
9. Horizon Dashboard Service Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.5
(2 Ratings)
5 star 50%
4 star 0%
3 star 0%
2 star 50%
1 star 0%
Sharone Oct 14, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is possibly one of the best handbooks available for those looking to get their feet wet with OpenStack. This book simplifies the complex quite nicely, and brings OpenStack deployments to the masses. On a personal note, I had the pleasure of seeing Arthur speak at a number of OpenStack Summits and events, and he is indeed a seasoned OpenStack professional. You want to read this book.
Amazon Verified review Amazon
Brent Jones Nov 28, 2015
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
This book is largely a copy-paste of the official OpenStack installation guide for RHEL/CentOS systems.I guess I don't see a point to this book, the methods described in the book are already outdated ('openstack-config' isn't generally recommended to be used anymore).Some of the book's diagrams seem to be copied from OpenStack's official guides as well (maybe the author created the ones that the official OpenStack site uses, who knows).The main OpenStack documentation seems better organized than this book as well, and user's would probably be better served by a constantly updated resource, than a e-book which will be out of date by the time I even submit this review.http://docs.openstack.org/admin-guide-cloud/Overall, this book doesn't seem to cover anything noteworthy that official docs don't do a better job explaining. There aren't any new concepts in this book, no novel deployment strategies, only covers Redhat/CentOS, not Ubuntu or any other distribution (which the official OpenStack documentation covers all major distributions).
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.