I am trying to install openstack using devstack on ubuntu 16.04. I followed the following link.
https://docs.openstack.org/developer/devstack/guides/singl
Make sure you are logged into horizon and download the rc file (right corner). After that do source admin-openrc.sh
source admin-openrc.sh
Note that you have to download the rc file of the project you are working on