This repository contains a local.conf script which can be used to create a devstack Ocata setup. The monitoring modules of the Devstack is working(Mongodb + ceilometer + AODH).
Start with a clean and minimal install of a Linux system. Devstack attempts to support Ubuntu 16.04/17.04, Fedora 24/25, CentOS/RHEL 7, as well as Debian and OpenSUSE.
If you do not have a preference, Ubuntu 16.04 is the most tested, and will probably go the smoothest.
These are some of the key changes to be made in local.conf
HOST_IP: This should be the IP of where where you're running devstack. HOST_NAME: Same as above but hostname instead of IP Address.
Devstack should be run as a non-root user with sudo enabled (standard logins to cloud images such as “ubuntu” or “cloud-user” are usually fine).
You can quickly create a separate stack user to run DevStack with
$ sudo useradd -s /bin/bash -d /opt/stack -m stack
$ sudo su - stack
# sudo apt-get update
# sudo apt-get install aptitude build-essential git ntp ntpdate openssh-server python-dev sudo
$ git clone https://git.openstack.org/openstack-dev/devstack -b stable/ocata
$ cd devstack
Create a local.conf in folder devstack A model is in github. Copy the local.conf in anex github and make next steps
Fill in these fields with your credentials:
ADMIN_PASSWORD= <your_password>
HOST_IP= <your_IP>
The database gnocchi is not working for version Ocata.
https://ask.openstack.org/en/question/111528/gnocchi-triggering-keystone-error/
Use the version Pike https://github.com/pablobrunetti/Devstack-Pike-local.conf or update the database for mongodb in local.conf:
CEILOMETER_BACKEND=mongodb
Run:
$./stack
This will take a 15 - 40 minutes, largely depending on the speed of your internet connection. Many git trees and packages will be installed during this process.
If all goes fine you should get the success message and URL to open Horizon UI.
To run clients as a specific project and user, you can simply load the associated client environment script prior to running them.
In Devstack horizon, download file Openstack RC v3, project admin e send for folder devstack Run:
$ source admin-openrc.sh
Run:
export OS_AUTH_TYPE=password
Test gnocchi with command:
gnocchi metric list
A list of metrics will appear in bash
Run:
wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_4.6.2_amd64.deb
sudo apt-get install -y adduser libfontconfig
sudo dpkg -i grafana_4.6.2_amd64.deb
Install plugin gnocchi-grafana
grafana-cli plugins install gnocchixyz-gnocchi-datasource
Restart grafana
sudo service grafana-server restart
In browser run:
http://<your_IP>:3000
