Git Product home page Git Product logo

satellite-sanity's Introduction

Build Status

IMPORTANT: Please note we do not plan any extra work being done on this project. Sanity checks for Foreman and Satellite 6 are currently gathered in this tool: https://github.com/theforeman/foreman_maintain (also packaged for Sat6).

satellite-sanity

Tooling to verify Red Hat Satellite health by checking for requirements, common issues, service status, etc.

Running the tool

If you have just cloned this GIT repo to your Red Hat Satellite, just run:

# cd satellite-sanity/
# ./satellite-sanity -h
# ./satellite-sanity --list-tags   # show available rule's tags
# ./satellite-sanity -t general,Satellite_5   # if you are on Satellite 5
# ./satellite-sanity -t general,Satellite_6   # if you are on Satellite 6

If you are running on system with rpm installed, just drop that ./ from above and run satellite-sanity.

Example output

$ ./satellite-sanity -t general
Selected tag(s): general
ERROR:satellite_sanity.config:Data not available for neighbour_table_overflow
[ PASS ] Check that hostname is configured properly (hostname_matches)
[ SKIP ] Check for ARP cache being full signs (neighbour_table_overflow)
[ FAIL ] Just a demo rule which keeps failing (example_fails)
         This text explains what is wrong, can use data returned by main()
         'dhcp131-38.brq.redhat.com' and provides howto and/or links to more info

In this example rule hostname_matches passed (see satellite_sanity/rules/hostname_matches.py), rule neighbour_table_overflow is skippet (because I have executed the tool as normal user so the tool was not able to read /var/log/messages, see satellite_sanity/rules/neighbour_table_overflow.py) and rule example_fails detected problem (well, it does all the time, see satellite_sanity/rules/example_fails.py) and provided some hints on what is going on.

Building rpm

Assuming you are on a recent Fedora system:

$ ./makedist   # generate tarball
$ ls ~/rpmbuild/SOURCES/satellite-sanity-0.1.tar.gz   # ensure tarball is where we want it
$ rpmbuild -ba satellite-sanity.spec

Running internal tests

# ./tests.py   # unit tests
# ./tests.sh   # kinda integration tests

satellite-sanity's People

Contributors

jhutar avatar bkearney avatar rdrazny avatar elyezer avatar evgeni avatar tstrych avatar

Watchers

 avatar

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.