http://docs.openstack.org/icehouse/install-guide/install/yum/content/keystone-verify.html

 
I have followed this document to check if my admin-openrc.sh file is configured correctly and everything is working as expected until I do this 
 
source admin-openrc.sh
 
keystone user-list
 
this command returns an error 
 
[root@controller ~]# keystone user-list
 
WARNING:keystoneclient.httpclient:Failed to retrieve management_url from token
 
What am I missing 
 
NB: All The above commands work if I manually input the following on the command line but not when I source the admin-openrc.sh file
 
export OS_SERVICE_TOKEN=xxxxxxxxxxxxxxxxxxxxx
 
export OS_SERVICE_ENDPOINT=http://xxxxxxx.ai.co.zw:35357/v2.0