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