Graceful shutdown of Virtual Machines from worker nodes in OpenShift 4

Solution Verified - Updated -

Issue

  • The OpenShift control plane was lost, how to gracefully shutdown Virtual Machines from OpenShift Virtualization before shutting down the worker nodes?
  • Shutting down Virtual Machines from their own OS automatically restart the Virtual Machines.
  • Virtual Machines are shut down hard instead of gracefully if a worker node is rebooted or shut down manually.
  • QEMU process receives SIGTERM signal when the virt-launcher pod scope is being stopped on shutdown/reboot.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Red Hat OpenShift Virtualization
    • 4
  • Virtual Machines

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content