Openshift

CNV — Patch Workflow


Author: Unknown

CNV — Patch Workflow

Patching workflow for RHEL VMs running on OpenShift Virtualization. Similar to the cloud patching workflow but targeting CNV-managed virtual machines instead of EC2 instances.

  1. Take Snapshot — Creates VM snapshots for recovery
  2. Project Sync + Inventory Sync (parallel) — Refreshes project content and CNV inventory
  3. Patch Instance — Applies patches to CNV RHEL VMs
  4. Restore (on failure) — Restores VMs from snapshot if patching fails
  5. Ticket (on restore failure) — Creates a notification if restore also fails

Prerequisites

  • RHEL VMs provisioned on OpenShift CNV
  • OpenShift Credential configured
  • SSH connectivity to the CNV VMs

Job templates

Template Playbook Description
OpenShift ǀ CNV ǀ Patch Workflow openshift/setup.yml Runs the patching workflow against CNV-managed RHEL virtual machines

See other Openshift demos

Browse all Openshift demos →

Workflow

graph LR
  S["🏠 Start"]
  S --> A
  A["📸 Take Snapshot"] --> B["📂 Project Sync"]
  A --> C["🔄 Inventory Sync"]
  B --> D["🩹 Patch Instance"]
  C --> D
  D -->|success| E["✅ Done"]
  D -->|failure| F["⏪ Restore from Snapshot"]
  F -->|failure| G["🎫 Ticket — Restore Failed"]
  style A fill:#1e3a5f,stroke:#4a90d9,color:#fff
  style B fill:#2d2d2d,stroke:#888,color:#fff
  style C fill:#2d2d2d,stroke:#888,color:#fff
  style D fill:#3d1a1a,stroke:#cc0000,color:#fff
  style E fill:#162c46,stroke:#58a6ff,color:#fff
  style F fill:#4a1a1a,stroke:#ef4444,color:#fff
  style G fill:#4a1a1a,stroke:#ef4444,color:#fff
  style S fill:#212427,stroke:#8a8d90,color:#fff