From olm
Analyzes OLM issues by correlating must-gather logs with source code, determining OCP version, cloning relevant repos, and querying Jira for known bugs.
How this command is triggered — by the user, by Claude, or both
Slash command
/olm:debug <issue-description> <must-gather-path> [olm-version]The summary Claude sees in its command listing — used to decide when to auto-load this command
## Name olm:debug ## Synopsis ## Description The `olm:debug` command analyzes OLM (Operator Lifecycle Manager) issues by correlating must-gather logs with the appropriate OLM source code. It automatically determines the OCP version from the must-gather logs, checks out the corresponding branch from the relevant OLM repositories, queries Jira for known bugs in the OCPBUGS project (OLM component), and provides detailed analysis and debugging insights. ## Arguments - **$1** (required): Issue description - A brief description of the OLM issue being investigated - **$2** (required): Must-gat...
olm:debug
/olm:debug <issue-description> <must-gather-path> [olm-version]
The olm:debug command analyzes OLM (Operator Lifecycle Manager) issues by correlating must-gather logs with the appropriate OLM source code. It automatically determines the OCP version from the must-gather logs, checks out the corresponding branch from the relevant OLM repositories, queries Jira for known bugs in the OCPBUGS project (OLM component), and provides detailed analysis and debugging insights.
olmv0 (default) or olmv1
olmv0: Uses operator-framework-olm repositoryolmv1: Uses operator-framework-operator-controller and cluster-olm-operator repositoriesValidate arguments
olmv0 if not specifiedParse must-gather logs to determine OCP version
cluster-scoped-resources/core/nodes/*.yaml - check node annotationscluster-scoped-resources/config.openshift.io/clusterversions/*.yaml4.14, 4.15, 4.16)release-4.14)Create working directory
.work/olm-debug/<timestamp>/ for temporary filesrepos/, analysis/, logs/Clone appropriate repositories based on OLM version
For olmv0:
https://github.com/openshift/operator-framework-olm.gitrelease-<ocp-version> (e.g., release-4.14)main or master branchFor olmv1:
https://github.com/openshift/operator-framework-operator-controller.githttps://github.com/openshift/cluster-olm-operator.gitrelease-<ocp-version>main or master branchVerify repository setup
Extract relevant OLM logs from must-gather
namespaces/openshift-operator-lifecycle-manager/ logspods/catalog-operator-*/, pods/olm-operator-*/namespaces/openshift-operator-controller/ logsIdentify error patterns and relevant logs
Query Jira for known OLM bugs
OCPBUGSolm4.14.0, 4.15.0)POST https://redhat.atlassian.net/rest/api/3/search/jql
Body: {"jql": "project=OCPBUGS AND component=olm AND affectedVersion~\"4.14\""}
Match errors with known bugs
Categorize and prioritize matches
Map errors to source code
Analyze relevant code sections
Generate detailed analysis report
Create output files
analysis.md: Detailed analysis reportrelevant-logs.txt: Extracted relevant log entriescode-references.md: Links to relevant source code sections with line numbersknown-bugs.md: List of potentially related Jira bugs with match confidenceThe command generates the following outputs in .work/olm-debug/<timestamp>/:
analysis.md: Comprehensive analysis report including:
relevant-logs.txt: Extracted relevant log entries from must-gather
code-references.md: Links to relevant source code files with line numbers
known-bugs.md: List of potentially related Jira bugs including:
repos/: Cloned repository directories for further manual investigation
Basic usage with olmv0 (default):
/olm:debug "CSV stuck in pending state" /path/to/must-gather
Debug olmv1 issue:
/olm:debug "ClusterExtension installation failing" /path/to/must-gather olmv1
Debug with detailed issue description:
/olm:debug "Operator upgrade from v1.0 to v2.0 fails with dependency resolution error" ~/Downloads/must-gather.local.123456 olmv0
git to be installed for cloning repositoriesnpx claudepluginhub cblecker/ai-helpers --plugin olm/ep-watchMonitors open Enhancement PRs in the openshift/enhancements repository, filters out OLM team members, scores PRs for OLM relevance, and returns up to 3 impactful proposals.
/sc-troubleshootDiagnoses and resolves issues in code, builds, deployments, and system behavior using systematic root cause analysis and structured debugging. Supports --type, --trace, and --fix flags.
/troubleshootDiagnoses issues in code, builds, deployments, and system behavior with structured root cause analysis and safe fix application.
/openshiftDiagnoses and resolves OpenShift cluster issues across SCC, Routes, GitOps, and upgrades. Also supports a debug mode for general troubleshooting.
/smart-debugParses error messages, stack traces, and failure patterns to identify root causes and produce a fix with automated observability steps.