This is a frequent issue in devstack and packstack, simple solution which you can quickly handle by opening the keystone admin variables file, copy paste the content to the shell and you are good to go :).
For example, simply do the following:
- cat keystonerc_admin
- copy, paste + run content.
Further common commands you can find in our Openstack Cheat best of 2017