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