Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
OpenStack for Architects

You're reading from   OpenStack for Architects Design and implement successful private clouds with OpenStack

Arrow left icon
Product type Paperback
Published in Feb 2017
Publisher Packt
ISBN-13 9781784395100
Length 214 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Michael Solberg Michael Solberg
Author Profile Icon Michael Solberg
Michael Solberg
Benjamin Silverman Benjamin Silverman
Author Profile Icon Benjamin Silverman
Benjamin Silverman
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Installing Keystone


Let's iterate on the current environment, adding another profile and role. Now that we have a database available, install the first OpenStack service, Keystone. First write a unit test. Our test will ensure that we can get a token from Keystone using the admin username and password that we specified in the Packstack answer file. This can be done with a curl command. Create a file named test_keystone.sh under the test directory in our Git repository:

$ cd ~/openstack/test/
$ vi test_keystone.sh

Use the following content as an example, substituting your password for the password of the demo user (secret) and the hostname of your first controller for controller01:

curl -i \ 
  -H "Content-Type: application/json" \ 
  -d ' 
  { "auth": { 
    "tenantId": "demo", 
    "passwordCredentials": { 
      "userId": "demo", 
      "password": "secret" 
    } 
  } 
}' \ 
http://controller01:5000/v2/auth/tokens ; echo 

Now...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime