Giter Club home page Giter Club logo

ocpsanitytests's Introduction

ocpsanitytests

ansible project for testing general OCP functionality

Prerequisites Install OCP oc client:

yum install atomic-openshift-clients

The following image must be available on a local insecure repository as follows:

<registryIP:Port>/openshift3/nginx:latest

Summary

Project contains the following roles at present:

create_project

Performs the following tasks:

  • create project
  • create persistent storage claim
  • deploy nginx with persistent storage
  • checks that pods are up nginx answers via router
  • tears down the project

infra_check

Checks the following tasks:

  • pods are running in the main OCP projects
  • checks for failed pods in all projects in the cluster
  • router
  • node status
  • etcd health
  • console health

infra_svc

Check the following tasks:

  • pods are running in the main OCP infra projects (logging, monitoring)
  • monitoring endpoint health
  • logging endpoint health
  • metrics endpoint health

restart_nodes

Performs the following for each node in the cluster:

  • checks selinux policy is correct
  • marks node as unschedulable
  • reboots node
  • checks node rejoins the cluster and is ready
  • marks node as schedulable

Once all roles have run, there is a 5 minute delay and then a check is run to see all pods are running

Additional Parameters:

The following parameters are needed to run the tests, in addition to a valid OCP inventory file for the environment (the one used to deploy)

    localregistry: <registry where nginx image > - default is nginx:latest
    testproject: <name of temporary project created for test app>  - default value is "sanitytest"
    storageclass: <persistent storage class type> - default is glusterfs

Example Run:

ansible-playbook playbooks/sanitytests.yaml -b --extra-vars "token=<YOUR_TOKEN>"

ocpsanitytests's People

Contributors

giuseppecofano avatar marbe avatar matancarmeli7 avatar rockocoop avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

giuseppecofano

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.