Skip to content

A collection of tools aimed at automating as much of the Red Hat OpenShift Platform CI failure RCA process as possible

License

Notifications You must be signed in to change notification settings

redhat-nfvpe/ocp-ci-rca-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCP CI Root Cause Analysis Tool

Tooling aimed at automating as much of the Red Hat OpenShift Platform CI (OCP CI) Root Cause Analisys (RCA) process as possible.

The specific goal is to reduce the time it takes to understand an OCP CI job failure by compressing the information of a failed job output to the bits that commuicate the anomalies. This first POC version treats each relavent OCP CI logfile individually, baselined and analyzed with resultant output saved for subsequent analysis.

Usage

To use the code, first request GCS authentication credentials from your organizations GCS administrator (delivered as a JSON formated file), then enter the following commands:

cmd-line$ export GOOGLE_APPLICATION_CREDENTIALS="path to your GCS credentials file"
cmd-line$ gcloud auth activate-service-account --key-file="${GOOGLE_APPLICATION_CREDENTIALS}"

Next, enter the following command:

cmd-line$ ocpcigetlogsgcp <ocipci-gcs-project_id>, <ocpci-topic_id>, <ocpci-subscription_id>

where:

<ocipci-gcs-project_id> is "openshift-gce-devel"
<ocpci-topic_id> is "origin-ci-test",
<ocpci-subscription_id> is "ocpci-logs".

Current data output format is:

'local-ocpci-lr-server':/tmp/ocpci_lr/anomolies/anomolies-.json where:

is the Global Job ID that is the concatentation of the OCP CI GCS Bucket org_repo and job_name.

References:

About

A collection of tools aimed at automating as much of the Red Hat OpenShift Platform CI failure RCA process as possible

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages