Git Product home page Git Product logo

network-tools's Introduction

network-tools

network-tools is a collection of tools for debugging OpenShift cluster network issues. It contains both debugging scripts (described in the next section) and useful tools to get information from the cluster. This repo is supposed to be used by network engineers and support to debug and diagnose issues. Customers can also be advised to use commands from this image to help get required information.

How to use

Locally

To use network-tools locally, you can just clone this repo and run ./debug-scripts/network-tools -h - that will list all available commands.

You can also create a symlink for your convenience to just use network-tools ln -s <repo-path>/debug-scripts/network-tools /usr/bin/network-tools network-tools -h

On the cluster

You can use almost all the same scripts on the cluster via network-tools image, to run one command you can use oc adm must-gather --image-stream openshift/network-tools:latest -- network-tools -h

WARNING! must-gather doesn't allow interactive input, don't use interactive options with must-gather. WARNING! For clusters older than 4.13, use --image quay.io/openshift/origin-network-tools:latest instead of --image-streams

For more examples and options check user docs

Debugging Scripts

Debugging scripts are kept in debug-scripts. The content of that folder is placed in /opt/bin in the image. Symlink is created for /opt/bin/network-tools to /usr/bin/network-tools that allows to just call network-tools.

debug-scripts/local-scripts folder contains scripts that shouldn't be run on the cluster via oc adm must-gather, they are not copied to the image. But these scripts are available for local use (network-tools -h will list currently available commands).

debug-scripts/network-tools is a single entry point for all commands that were tested and properly documented. Not all scripts from debug-scripts folder may be included to the network-tools. If you need to run such a script, call it directly via debug-scripts/<script path> locally or /opt/bin/<script path> in the image.

Documentation

  • Please see contributor docs for more information regarding the scope of this repository and how to contribute.
  • Users can go to user docs for information on how to leverage the tools and scripts shipped by this image.

Contacts

For all questions reach out to #forum-sdn Slack channel, Openshift SDN team is maintaining this repo.

network-tools's People

Contributors

astoycos avatar coverprice avatar flavio-fernandes avatar knobunc avatar kyrtapz avatar mfojtik avatar npinaeva avatar openshift-ci-robot avatar openshift-ci[bot] avatar openshift-merge-bot[bot] avatar openshift-merge-robot avatar ptrnull avatar rcarrillocruz avatar ricky-rav avatar tssurya avatar zshi-redhat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

network-tools's Issues

Regarding use-case of the tools

I have noted the Gathering logs is not in the scope of these scripts and are better suited on the openshift/must-gather image quote from the README and have questions about when to / when to not use this repo for tools.

I can see that there are a number of scripts that perform tests on the current state of the network, similar to sanity checks or unit-tests on the network. I do not see tools that collect information for further debug, such as collecting PCAPs or running / collecting iPerf output.

Is this the appropriate place for writing these kinds of tools or is it intended for this repo to contain only smoke-tests and pass/fail tests on the network?

ovnkube-trace can't be run on image version 4.13 and above

Using latest or 4.13 image quay.io/openshift/origin-network-tools, ovnkube-trace doesn't work failing with:

sh-4.4# ovnkube-trace -help

ovnkube-trace: /lib64/libc.so.6: version GLIBC_2.32' not found (required by ovnkube-trace) ovnkube-trace: /lib64/libc.so.6: version GLIBC_2.34' not found (required by ovnkube-trac

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.