GithubHelp home page GithubHelp logo

acm-mce-must-gather's Introduction

acm_create-must-gather.sh - must-gather automation

Script to automate process of creating must-gather for RHACM support,

This script checks ACM and MCE version and create proper must-gathers for support team. This script is aimed to run on HUB or managed cluster now.

Works with ACM version 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 2.10

Disclaimer:

This scripts are NOT delivered and/or released by Red Hat. This is an independent project to help customers and Red Hat Support team to export and/or collect the data from Red Hat Advanced Cluster Management and managed clusters for reporting or troubleshooting purposes.

Disclaimer:

This scripts are NOT delivered and/or released by Red Hat. This is an independent project to help customers and Red Hat Support team to export and/or collect the data from Red Hat Advanced Cluster Management and managed clusters for reporting or troubleshooting purposes.

Usage:

Details about usage can be shown be '-h' option:

$ acm_create-must-gather.sh -h

Common usage is:

$ acm_create-must-gather.sh -d OUTPUT_DIR

or with specified own registry (for disconnected env):

$ acm_create-must-gather.sh -d OUTPUT_DIR -r internal.repo.address:port

The OUTPUT_DIR must not exists. This dir is created. Output structure:

OUTPUT_DIR/
  |-acm/     --- contains data collected by ACM must-gather
  |-mce/     --- data collected by MCE must-gather
  |-acm-must-gather.log  --- output of ACM m-g
  |-mce-must-gather.log  --- output of MCE m-g

OUTPUT_DIR is archived to ./acm_must_gather-$TIMESTAMP.tar.xz

Requirements:

The script is written in BASH and for successful usage needs:

  • oc - CLI tool for manage OpenShift clusters - https://console.redhat.com/openshift/downloads
  • jq - Tool for parsing JSON. Part of linux distributions, how to install, please check your distribution manual
  • tar and few other common linux CLI tools.

The script is tested on Linux distributions.

Known issues:

  • Not tested on non-HUB cluster for now. - For collecting data from managed cluster, use -m <ACM version> option
  • Do not cover situation, when image for m-g is not available, but this can be checked from oc adm must-gather ... output in specified dir (acm-must-gather.log and mce-must-gather.log).
    • It is possible to specify own image registry via -r parameter

TODO:

  • when executed on HUB cluster, show message like "This script gather data from HUB cluster now. If your issue with ACM affects some managed cluster, please run this script to gather data from managed cluster too." - done
  • Add functionality to collect data for submariner support - use -s parameter to collect submariner data

acm-mce-must-gather's People

Contributors

mheppler-rh avatar waldirio avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

acm-mce-must-gather's Issues

Request from Mihir Lele

  1. Going through the article https://access.redhat.com/solutions/5126721, I can see a lot of commands mapping to each version of ACM and MCE. These commands can be condensed to just two generic commands. Something like this:
For ACM must-gather:

$ oc adm must-gather --image=[registry.redhat.io/rhacm2/acm-must-gather-rhel8:$(oc](http://registry.redhat.io/rhacm2/acm-must-gather-rhel8:$(oc) get csv -n open-cluster-management -l [operators.coreos.com/advanced-cluster-management.open-cluster-management=](http://operators.coreos.com/advanced-cluster-management.open-cluster-management=) -o=jsonpath='{.items[].spec.version}')  --dest-dir=<directory>

For MCE must-gather:

$ oc adm must-gather --image=[registry.redhat.io/multicluster-engine/must-gather-rhel8:v$(oc](http://registry.redhat.io/multicluster-engine/must-gather-rhel8:v$(oc) get csv  -n multicluster-engine -l [operators.coreos.com/multicluster-engine.multicluster-engine=](http://operators.coreos.com/multicluster-engine.multicluster-engine=) -o=jsonpath='{.items[].spec.version}') --dest-dir=<directory>

Add versioning check

Add a versioning check in the script, this could check the github project version and compare with the current one. If different, it will alert the customer to download the latest version.

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.