Best way to install Openstack – Ocata ( Devstack) Quick Tips

Here we are going to see how to install devstack with some tricks to resolve unknown errors in devstack and local.conf file with stable branch version


  • Ubuntu 16.04 ( 14.04 is having compatibility issues with devstack requirements)
  • 8 GB RAM (minimum)



  1. Clone devstack

git clone -b stable/ocata

2. Set permissions

sudo chown -R <username> devstack

sudo chmod 770 devstack

3. cd devstack, create local.conf file and enter details as below



HOST_IP=<Localhost IP>

#Enable SENLIN
enable_plugin senlin
Enable senlin-dashboard
enable_plugin senlin-dashboard

#Enable HEAT
enable_plugin heat stable/ocata

#Enable Aodh and ceilometer
enable_plugin ceilometer stable/ocata
enable_plugin aodh stable/ocata

# Enable Gnocchi
enable_plugin gnocchi stable/4.0
enable_service gnocchi-grafana,gnocchi-api,gnocchi-metricd


#Enable LBAAS V2
enable_plugin neutron-lbaas stable/ocata
enable_service q-lbaasv2

#Enable LBAAS V2 Dashboard
enable_plugin neutron-lbaas-dashboard stable/ocata

#Enable Ocatavia LBAAS v2 Driver
enable_plugin octavia stable/ocata

# Enable Logging


4. Create file and add entry as below


git config –global url.”https://&#8221;.insteadOf git://
export no_proxy=, <localhost IP>

save and run source


Note: no_proxy will avoid keystone authentication with localhost IP, few might come across this issue.


Common Devstack unknown Errors and tricks to solve

  1. For keystone credentials, run as mentioned above
  2. For “Could not satisfy constraints for ‘horizon’: installation from path or url cannot be constrained to a version” try “git reset –hard /opt/stack/requirements”, it occurs if do second+ ./, easy way.
  3. While Enabling Gnocchi with stable version make sure “uuidgen” is installed else do apt-get install uuid-runtime
  4. To connect to screen, run screen -ls , you can see screen number, now to connect enter screen -r <screen number> and restart services if any changes needed
  5. For Error “[ERROR] /home/pandy/devstack/stackrc:747 Could not determine host ip address. See local.conf for suggestions on setting HOST_IP” open stackrc file and add HOST_IP=<localhost_IP> manually and run. it’s sounds crazy, but works.

Now do and enjoy devstack installation, Pooh !! 


3 thoughts on “Best way to install Openstack – Ocata ( Devstack) Quick Tips

  1. A nice and comprehensive article. However, I am unable to understand that once you are installing Gnocchi as database for ceilometer, then why are you using this setting (CEILOMETER_BACKEND=mongodb) in your local.conf file. Can you please explain.

      • Sorry to ask you again, but once you are installing gnocchi through ‘ local.conf ‘ in your article, then why to use mongoDB as backend. My understanding is that after Gnocchi installation, we don,t need to use mongoDB. As it is also recommended by official documentation. I am new to devstack, so please clarify, if I am going in wrong direction.
        Regards !

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s