Book Image

OpenStack Cloud Computing Cookbook - Second Edition

By : Kevin Jackson, Cody Bunch
Book Image

OpenStack Cloud Computing Cookbook - Second Edition

By: Kevin Jackson, Cody Bunch

Overview of this book

<p>OpenStack is an open source cloud operating stack that was born from Rackspace and NASA and became a global success, developed by scores of people around the globe and backed by some of the leading players in the cloud space today.<br /><br />OpenStack Cloud Computing Cookbook, Second Edition will show you exactly how to install the components that are required to make up a private cloud environment. You will learn how to set up an environment that you manage just as you would a public cloud provider like Rackspace with the help of experienced OpenStack administrators and architects.<br /><br />We begin by configuring the key components such as identity, image compute, and storage in a safe, virtual environment that we will then build on this throughout the book. The book will also teach you about provisioning and managing OpenStack in the datacenter using proven DevOps tools and techniques.<br /><br />From installing or creating a sandbox environment using Vagrant and VirtualBox to installing OpenStack in the datacenter, from understanding logging to automating OpenStack installations, whatever level of experience or interest you have with OpenStack there is a chapter for you. Installation steps cover compute, object storage, identity, block storage volumes, image, horizon, software defined networking and DevOps tools for automating your infrastructure OpenStack Cloud Computing Cookbook, Second edition gives you clear step-by-step instructions to installing and running your own private cloud.</p>
Table of Contents (20 chapters)
OpenStack Cloud Computing Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Modifying a tenant's fixed network


To ensure that our OpenStack environment is able to separate traffic from one tenant to another, we assign different fixed ranges to each. When a fixed network is no longer required, or we want to assign a particular tenant to a specific network, we can use the nova-manage command to modify these details.

Getting ready

To begin with, ensure you're logged in to the OpenStack API server as well as to a client that can access the keystone environment.

How to do it...

To assign a particular network to a tenant, carry out the following steps:

  1. On a client that has access to the keystone command, run the following commands to list the projects available:

    # Use the admin token
    export ENDPOINT=172.16.0.201
    export SERVICE_TOKEN=ADMIN
    export SERVICE_ENDPOINT=http://${ENDPOINT}:35357/v2.0
    keystone tenant-list
    

    An example of running the previous commands is as follows:

  2. To view the list of networks and ranges available, issue the following command on an OpenStack API host...