Book Image

Learning OpenStack

By : Alok Shrivastwa, Sunil Sarat
Book Image

Learning OpenStack

By: Alok Shrivastwa, Sunil Sarat

Overview of this book

<p><span id="description" class="sugar_field">OpenStack is a free and open source cloud computing platform that is rapidly gaining popularity in Enterprise data centres. It is a scalable operating system and is used to build private and public clouds. It is imperative for all the aspiring cloud administrators to possess OpenStack skills if they want to succeed in the cloud-led IT infrastructure space.</span></p> <p><span id="description" class="sugar_field">This book will help you gain a clearer understanding of OpenStack’s components and their interaction with each other to build a cloud environment. You will learn to deploy a self-service based cloud using just four virtual machines and standard networking.</span></p> <p><span id="description" class="sugar_field">You begin with an introduction on the basics of cloud computing. This is followed by a brief look into the need for authentication and authorization, the different aspects of dashboards, cloud computing fabric controllers, along with “Networking as a Service” and “Software Defined Networking.” Then, you will focus on installing, configuring, and troubleshooting different architectures such as Keystone, Horizon, Nova, Neutron, Cinder, Swift, and Glance. Furthermore, you will see how all of the OpenStack components come together in providing IaaS to users. Finally, you will take your OpenStack cloud to the next level by integrating it with other IT ecosystem elements before automation.</span></p> <p><span id="description" class="sugar_field">By the end of this book, you will be proficient with the fundamentals and application of OpenStack.</span></p>
Table of Contents (17 chapters)
Learning OpenStack
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Verifying the installation


We have at various points verified that the Keystone service is working as expected. However, let's execute the commands with the actual username and password rather than using the admin token that we have generated.

Open a new terminal window, or unset the environment variables that we set up:

unset OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT

You don't have to do this if you have opened a new terminal window.

Using Keystone CLI

We will list all the tenants in the system; we should expect to see the one we created:

keystone --os-tenant-name firsttenant --os-username admin --os-password h33l0world --os-auth-url http://oscontrollernode:5000/v2.0 tenant-list

As you can see, we are now using the user credentials in order to execute the Keystone cli and fetch the information.

We could try the same thing for various other commands such as user-list and role-list.

Using the API

Under the hood, the Python client uses the RESTful API. You would use the API if you were trying to call...