cad

package
v0.54.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

README

CAD (Configuration Anomaly Detection) Commands

Commands for running manual investigations on the Configuration Anomaly Detection (CAD) clusters and writing the results to a backplane report.

Prerequisites

  • Connected to environment of the target cluster: ocm login --use-auth-code --url "<production|stage>"
  • The CAD clusters (both stage and prod) are always in production OCM

Usage

osdctl cluster cad run \
  --cluster-id <cluster-id> \
  --investigation <investigation-name> \
  --environment <stage|production> \
  --reason "<JIRA-ticket or reason>"
Flags
  • --cluster-id / -C: Target cluster ID (internal or external)
  • --investigation / -i: Investigation to run (see available investigations below)
  • --environment / -e: Target cluster environment (stage or production). This is kept explicit, because the pipeline will silently fail if this parameter isn't correct
  • --reason: Elevation reason for backplane access (e.g., OHSS-1234 or #ITN-2024-12345)
Available Investigations
  • chgm - Change Management
  • cmbb - Configuration Management Baseline Check
  • can-not-retrieve-updates - Update Retrieval Issues
  • ai - AI-based Analysis
  • cpd - Control Plane Degradation
  • etcd-quota-low - ETCD Quota Issues
  • insightsoperatordown - Insights Operator Down
  • machine-health-check - Machine Health Check
  • must-gather - Must-Gather Collection
  • upgrade-config - Upgrade Configuration Check
Example
osdctl cluster cad run \
  --cluster-id 1a2b3c4d5e6f7g8h9i0j \
  --investigation chgm \
  --environment production \
  --reason "OHSS-12345"

Debugging

To check the status of a PipelineRun after scheduling:

1. Connect to production OCM

ocm login --use-auth-code --url "production"

2. Login to the CAD cluster

  • For stage: ocm backplane login cads01ue1
  • For prod: ocm backplane login cadp01ue1

3. Check PipelineRuns

  • For stage:
    ocm backplane elevate -n -- get pipelinerun -n configuration-anomaly-detection-stage
    
  • For prod:
    ocm backplane elevate -n -- get pipelinerun -n configuration-anomaly-detection-production
    

Architecture Notes

  • CAD Cluster IDs: Hardcoded in app-interface
    • Stage: 2f9ghpikkv446iidcv7b92em2hgk13q9 (cads01ue1)
    • Prod: 2fbi9mjhqpobh20ot5d7e5eeq3a8gfhs (cadp01ue1)
  • Namespaces:
    • Stage: configuration-anomaly-detection-stage
    • Prod: configuration-anomaly-detection-production
  • Pipeline: cad-manual-investigation-pipeline (Tekton)
  • The command always connects to production OCM internally, regardless of user's current OCM context

Viewing Reports

After the investigation completes (may take several minutes), view reports using:

osdctl cluster reports list -C <cluster-id> -l 1

Note: You need to be connected to the correct OCM environment for the target cluster to view its reports.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCad

func NewCmdCad() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL