Git Product home page Git Product logo

ocpdbtest's Introduction

ocpdbtest

Ansible playbook and roles that use a container to run connectivity tests to postgres and s3

This project is designed to achieve the following:

  • create project in openshift
  • Create PVC, Service, Route
  • Create Deployment config that deploys the test container with replicas set to 0
  • Run through all nodes that are not master or infra nodes, bringing up the container on each node 1 by 1
  • Post a get to the route endpoint each time the pod is brought up on a different node, reading the results.html file for error messages

Required parameters are as follows:

  • masters group in inventory file
  • Each node must have openshift_node_group_name defined
  • testproject: the name of the project to be created
  • localregistry: full url for container to be deployed (ex. localregistry=quay.io/grakover/ocpdbtest:latest)
  • storageclass: storage class to be used for PVC (ex. glusterfs-storage)
  • ocpappsdomain: apps subdomain for the openshift cluster (ex. apps.openshift.ocp.rhevdemo.com)
  • S3_HOST: The S3 endpoint (ex. "10.35.76.232:8000")
  • ACCESS_KEY: s3 access key
  • SECRET_KEY: s3 secret key
  • SSL: Sets if to use ssl or not for s3 command. Case sensitive, must be "TRUE" or "FALSE"
  • PSQL_HOST: Postgres database endpoint (ex. "10.35.76.251")
  • PSQL_USER: Postgres database user. Should be a user that does not require to use a password (ex. "postgres")

######Container Inforamation######

The container performs the following:

  • Uses s3mcd cli to get a bucket list from an s3 endpoint
  • Uses the psql cli to get the database list from a postgres instance
  • Creates a file under /var/www/html/ called results.html and prints the responses into the file

The container can be found at: quay.io/grakover/ocpdbtest:latest

  • contains httpd
  • s3cmd cli
  • psql cli
  • runs a script under /home/rocko/ called runChecks.sh before bringing up the httpd

ocpdbtest's People

Contributors

rockocoop avatar

Watchers

James Cloos avatar  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.