
This patch introduces the ansible materials to deploy the skydive service, that can be used to monitor and troubleshoot networking in an openstack deployment. Implements: blueprint skydive-service Co-Authored-By: Nicolas Bouron <nicolas.bouron@gmail.com> Signed-off-by: Mathieu Rohon <mathieu.rohon@gmail.com> Change-Id: I53051a1b0c85380416288e17040a398b6efb62c0
63 lines
1.7 KiB
Django/Jinja
63 lines
1.7 KiB
Django/Jinja
### Skydive analyzer config file
|
|
|
|
auth:
|
|
type: keystone
|
|
|
|
logging:
|
|
default: DEBUG
|
|
topology/probes: INFO
|
|
topology/graph: INFO
|
|
|
|
openstack:
|
|
auth_url: {{ keystone_public_url }}/v3
|
|
tenant_name: {{ openstack_auth['project_name'] }}
|
|
region_name: {{ openstack_region_name }}
|
|
domain_name: Default
|
|
|
|
etcd:
|
|
client_timeout: 100
|
|
{% if enable_etcd == "yes" %}
|
|
embeded: no
|
|
servers:
|
|
{% for host in groups['etcd'] %}
|
|
- http://{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ etcd_client_port }}
|
|
{% endfor %}
|
|
{% else %}
|
|
embeded: yes
|
|
servers:
|
|
{% for host in groups['skydive-analyzer'] %}
|
|
- http://{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ etcd_client_port }}
|
|
{% endfor %}
|
|
listen: {{ api_interface_address }}:{{ etcd_client_port }}
|
|
{% endif %}
|
|
|
|
analyzer:
|
|
listen: {{ api_interface_address }}:{{ skydive_analyzer_port }}
|
|
flowtable_expire: 60
|
|
flowtable_update: 5
|
|
flowtable_agent_ratio: 0.5
|
|
storage:
|
|
backend: elasticsearch
|
|
{% if groups['skydive-agent'] | length > 1 %}
|
|
topology:
|
|
fabric:
|
|
{% for interface in [network_interface, neutron_external_interface]|unique %}
|
|
{% set interfaces_loop = loop %}
|
|
{% for host in groups['skydive-agent'] %}
|
|
- TOR{{ interfaces_loop.index }}[Name=tor{{ interfaces_loop.index }}] -> TOR{{ interfaces_loop.index }}_PORT{{ loop.index }}[Name=port{{ loop.index }}, MTU=1500]
|
|
- TOR{{ interfaces_loop.index }}_PORT{{ loop.index }} -> *[Type=host,Name={{ hostvars[host]['ansible_hostname'] }}]/{{ interface }}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
storage:
|
|
elasticsearch:
|
|
host: {{ elasticsearch_address }}:{{ elasticsearch_port }}
|
|
maxconns: 10
|
|
retry: 60
|
|
|
|
graph:
|
|
embeded: true
|
|
client_timeout: 100
|
|
|