Networking Debug Tool for OpenStack
Go to file
Gerard Braad — 吉拉德 e381bfda10 Update README to contain project links
Made the README easier to read from the command line by splitting lines
at 80 chars.
Added links to source, bugs and wiki page
Rephrased some sentences

Change-Id: Ia658b57a3b54cad49d960ceb28585da95dd0633a
2016-04-08 03:08:25 +00:00
doc Change param when check-iperf 2016-02-17 16:57:38 +08:00
etc Change steth agent running user 2016-03-09 16:24:04 +08:00
steth Add uuid utils 2016-04-06 11:46:03 +08:00
.gitignore Upload steth doc 2016-01-19 10:35:20 +01:00
.gitreview Add .gitreview 2016-01-18 07:16:55 +01:00
LICENSE Initial commit 2015-12-21 12:19:11 +08:00
README.md Update README to contain project links 2016-04-08 03:08:25 +00:00
requirements.txt dhcp check and packet driver 2016-01-27 15:52:15 +08:00
setup.cfg Change all name and path from stetho to steth 2016-01-18 18:26:52 +08:00
setup.py use pbr replace setuptools 2016-01-12 11:29:40 +08:00
test-requirements.txt dhcp check and packet driver 2016-01-27 15:52:15 +08:00
tox.ini Make pep8 *the* linting interface 2016-02-10 22:25:38 +01:00

Steth

A network inspection tool for OpenStack.

Description

Steth is an inspection tool that can aid in pinpointing issues before deployment and during operation of an OpenStack environment.

It is modelled as agent(s)/client in which a controller interacts with agents deployed in your environment.

Background

OpenStack networking can be deloyed as different architectures, such as ML2 with OVS(legacy and DVR), Linux bridge, OVN, Dragonflow and so forth. However, they all need enviromental prerequisites. For instance, VLAN needs to be configured as we expect; bandwidth should meet our requirements; connection between nodes should be active, etc.

Besides, with some well-deployed architectures, troubleshooting for VM networking is difficult. For instance, why VM cannot get an IP address; or why it cannot connect to Internet, etc. Steth integrates useful scripts and third party tools(like iperf, tcpdump, etc.) to help operators keep tracking on VM networking.

Mission

Steth is an introspection tool for OpenStack networking. Only proved to be working in ML2 with OVS for now.

Multi-node Architecture

                                                                   note that steth does not save
                                                                   any state, it acts as a rpc
                                                                   client which makes requests to steth
                                    +--------------------------+   agent(s) and analyses the result.
                                    |                          |
                                    |   +------CLI---------+   |
                                    |   |                  |   |
             +--------------------------+     steth        +--------------------------+
             |                      |   |                  |   |                      |
             |                      |   +--------+---------+   |                      |
             |                      |            |             |                      |
             |                      +--------------------------+                      |
             |                                   |                                    |
             v                                   v                                    v
+-------+port:9698---------+        +-------+port:9698---------+         +-------+port:9698---------+
|            ^             |        |            ^             |         |            ^             |
|            |             |        |            |             |         |            |             |
| +----------+-------+     |        | +----------+-------+     |         | +----------+-------+     |
| |                  |     |        | |                  |     |         | |                  |     |
| |   steth-agent    |     |        | |   steth-agent    |     |         | |   steth-agent    |     |
| |                  |     |        | |                  |     |         | |                  |     |
| +-----------+------+     |        | +-----------+------+     |         | +-----------+------+     |
|             |            |        |             |            |         |             |            |
|             |            |        |             |            |         |             |            |
|  +----------v----------+ |        |  +----------v----------+ |         |  +----------v----------+ |
|  | run command like:   | |        |  | run command like:   | |         |  | run command like:   | |
|  | ping, iperf, tcpdump| |        |  | ping, iperf, tcpdump| |         |  | ping, iperf, tcpdump| |
|  | or use scapy to send| |        |  | or use scapy to send| |         |  | or use scapy to send| |
|  | packet              | |        |  | packet              | |         |  | packet              | |
|  +---------------------+ |        |  +---------------------+ |         |  +---------------------+ |
|                          |        |                          |         |                          |
|                          |        |                          |         |                          |
+--------------------------+        +--------------------------+         +--------------------------+

In a scenario using multiple nodes, Steth is a stateless CLI and controller. It knows each steth agent and will read config files, interact with OpenStack, and sending instructions to agents when needed.

Steth Agent is introduced to manage processes or run commands. It should be installed in each compute and network node, and their IPs should be specified in the config file of steth controller.

Steth Agent

Listening on 0.0.0.0:9698 and waiting for the rpc request.

Note: for get_interface() agent API, we use ifconfig to get full information. However, the output of ifconfig varies from a Linux distribution to another. The API has only been tested on CentOS 6.5 and 7.0. Any other distribution has not been tested. If it works, please let us know.