Openstack

How do you debug OpenStack networking issues? (tools, logs, ...)

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

To debug networking issues in OpenStack (Neutron), you can use the following:

  • Logs: Check the Neutron service logs (e.g., /var/log/neutron/neutron-server.log, /var/log/neutron/openvswitch-agent.log, /var/log/neutron/l3-agent.log) for error messages.
  • Neutron CLI: Use the neutron command-line tool to check the status of networks, subnets, ports, routers, and other networking entities.
  • ip netns: Use the ip netns command to inspect network namespaces and the network configurations within them.
  • ovs-vsctl and ovs-ofctl: Use these tools to inspect the configuration and flow tables of Open vSwitch bridges.
  • tcpdump: Use tcpdump to capture and analyze network traffic on various interfaces to identify connectivity issues.