browbeat/ansible
Will Foster abc123dc6d Change conditional "or" instead of "and" for Grafana var check.
We want to force users to enter ip addresses for both graphite_host
and grafana_host, but using "and" catches scenarios when both
variables were missing.  Changing this conditional to "or" will
catch scenarios where one or the other might be missing too.

Patchset #1: change "and" to "or"
Patchset #2: minor commit description correction
Patchset #3: wrap commit comments cleaner

Change-Id: Ic0553a398c491ba414b194b8a330ea2b04a6eb44
2016-06-14 15:16:03 +01:00
..
browbeat Adding Adjustment for ovsdb 2016-05-31 11:27:48 -04:00
check Fix check for jenkins 2016-05-19 12:38:39 -04:00
gather Adding Keystone worker metadata 2016-06-07 15:24:55 -04:00
install Change conditional "or" instead of "and" for Grafana var check. 2016-06-14 15:16:03 +01:00
tune Starting performance tune playbook. 2016-02-16 19:38:42 -05:00
ansible.cfg Add connmon support for cinder. 2016-01-08 09:02:17 -05:00
gen_hostfile.sh Add ELK stack and ELK client Ansible playbooks. 2016-05-03 15:22:00 -04:00
README.cfme-allinone.md Fix ReadMe files. 2016-03-18 23:34:04 -04:00
README.collectd-generic.md Fix ReadMe files. 2016-03-18 23:34:04 -04:00
README.md Replace dummy 1.1.1.1 values for graphite_host, grafana_host 2016-06-03 13:43:54 +01:00

Table of Contents

Ansible for Browbeat

Currently we support Ansible 1.9.4 within browbeat-venv and ansible 2.0 for installation.

Playbooks for:

  • Installing Browbeat, collectd, connmon, ELK stack and clients, graphite, grafana, and grafana dashboards
  • Check overcloud for performance issues
  • Tune overcloud for performance (Experimental)
  • Adjust number of workers for cinder/keystone/neutron/nova
  • Deploy keystone in eventlet/httpd
  • Adjust keystone token type to UUID/Fernet
  • Adjust neutron l3 agents
  • Adjust nova greenlet_pool_size / max_overflow

Getting Started

Install your public key into stack's authorized_keys

# ssh-copy-id stack@<undercloud-ip>

Then run gen_hosts.sh script to generate your overcloud's hosts file for ansible and generate a "jumpbox" ssh config:

# ./gen_hostfile.sh <undercloud-ip> ~/.ssh/config

*Review the hosts file the script generates.

Ansible Installers

Install Browbeat

Image upload requires Ansible 2.0

# vi install/group_vars/all.yml  # Edit ansible vars file (Installation parameters)
# ansible-playbook -i hosts install/browbeat.yml
Install Collectd Agent (Requires a Graphite Server)

Prior to installing the agent, please review install/group_vars/all.yml file to ensure the correct parameters are passed.

# ansible-playbook -i hosts install/collectd-openstack.yml

To install collectd on everything other than Openstack machines, view the README for collectd-generic.

Install Connmon

Requires Ansible 2.0

# ansible-playbook -i hosts install/connmon.yml
Install Generic ELK Stack
ansible-playbook -i hosts install/elk.yml
Install ELK Stack (on an OpenStack Undercloud)
sed -i 's/nginx_kibana_port: 80/nginx_kibana_port: 8888/' install/group_vars/all.yml
sed -i 's/elk_server_ssl_cert_port: 8080/elk_server_ssl_cert_port: 9999/' install/group_vars/all.yml
ansible-playbook -i hosts install/elk.yml
Install Generic ELK Clients
ansible-playbook -i hosts install/elk-client.yml --extra-vars 'elk_server=X.X.X.X'
  • elk_server variable will be generated after the ELK stack playbook runs

Install ELK Clients for OpenStack nodes

ansible-playbook -i hosts install/elk-openstack-client.yml --extra-vars 'elk_server=X.X.X.X'
  • elk_server variable will be generated after the ELK stack playbook runs
Install graphite service
# ansible-playbook -i hosts install/graphite.yml
Install graphite service as a docker container

Prior to installing graphite as a docker container, please review install/group_vars/all.yml file and ensure the docker related settings will work with your target host.

# ansible-playbook -i hosts install/graphite-docker.yml
Install grafana service

Prior to installing grafana, please review install/group_vars/all.yml file and your ansible inventory file You will need to define values for the grafana_host and graphite_host IP addresses here.

# ansible-playbook -i hosts install/grafana.yml
Install grafana service as a docker container

Prior to installing graphite as a docker container, please review install/group_vars/all.yml file and ensure the docker related settings will work with your target host.

# ansible-playbook -i hosts install/grafana-docker.yml
Install Grafana Dashboards (Requires a Grafana Server)

Review install/group_vars/all.yml before deploying the grafana dashboards

# ansible-playbook -i hosts install/dashboards-openstack.yml

Performance Check

Run the check playbook to identify common performance issues:

# ansible-playbook -i hosts check/site.yml

Performance Tune

Run the tune playbook to tune your OSPd deployed cloud for performance:

# ansible-playbook -i hosts tune/tune.yml

Adjust your overcloud

To modify the number of workers each service is running:

# ansible-playbook -i hosts browbeat/adjustment-workers.yml -e "workers=8"

Openstack services will be running 8 workers per service.

To modify number of workers each service is running and ensure Keystone is deployed in eventlet:

# ansible-playbook -i hosts browbeat/adjustment-workers.yml -e "workers=8 keystone_deployment=eventlet"

To run Keystone in httpd, change keystone_deployment to httpd:

# ansible-playbook -i hosts browbeat/adjustment-workers.yml -e "workers=8 keystone_deployment=httpd"

To switch to fernet tokens:

# ansible-playbook -i hosts browbeat/adjustment-keystone-token.yml -e "token_provider=fernet"

To switch to UUID tokens:

# ansible-playbook -i hosts browbeat/adjustment-keystone-token.yml -e "token_provider=uuid"