Skip to content

About

Local.conf com módulos ceilometer e gnocchi trabalhando

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Devstack-Ocata-local.conf

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).

Pre-requisites

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.

Configuration

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.

HowTo run

Add Stack User

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

Since this user will be making many changes to your system, it should have sudo privileges:

    $ sudo su - stack 

Update packages

   # sudo apt-get update
   # sudo apt-get install aptitude build-essential git ntp ntpdate   openssh-server python-dev sudo

Download DevStack

    $ git clone https://git.openstack.org/openstack-dev/devstack -b stable/ocata
    $ cd devstack

Create a local.conf

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>

UPDATE

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

Start the stack

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.

Configurations

Admin-openrc

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 

Gnocchi

Run:

export OS_AUTH_TYPE=password 

Test gnocchi with command:

gnocchi metric list

A list of metrics will appear in bash

Support Grafana

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

Execution grafana

In browser run:

http://<your_IP>:3000

Create your first datasource alt text

About

Local.conf com módulos ceilometer e gnocchi trabalhando

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors