Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-75853

Failure to mount the persistent-state-for-* PVC is not reflected in VM conditions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • CNV v4.22.0
    • CNV Virt-Node
    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Moderate
    • None

      Description of problem:

      For windows VMs there is a special PVC attached to the VM, prefixed by "persistent-state-for-", which contains the UEFI/TPM data for the VM.
      If the virt-launcher pod is unable to mount and attach this volume (for whatever reason), this error is not reflected in the VM's status.conditions, but only in the virt-launcher pod's events.
      Since this crucial info is not visible in the diagnostics tab (which is taken from the VM's conditions), the user sees the VM is "Starting" forever without any clue what is wrong, since all they can see is:
      
        conditions:
          - lastProbeTime: '2025-12-30T10:45:29Z'
            lastTransitionTime: '2025-12-30T10:45:29Z'
            message: Guest VM is not reported as running
            reason: GuestNotRunning
            status: 'False'
            type: Ready
          - lastProbeTime: null
            lastTransitionTime: null
            message: All of the VMI's DVs are bound and ready
            reason: AllDVsReady
            status: 'True'
            type: DataVolumesReady

      Version-Release number of selected component (if applicable):

      all versions

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create a windows virtual machine
      2. cause a storage issue in the persistent-state-for-* PVC that will prevent it to be mounted on the virt-launcher pod.
      3. observe the VM's conditions / diagnostics tab in the UI

      Actual results:

      No visible errors shown, although the VM is stuck at "Starting" forever

      Expected results:

      A clear error should be shown, suggesting the PVC/volume that can't be mounted on the pod, therefore the pod can't start (stuck at Init:0/1).
      There should be a condition that is telling the user that there is a volume configured on the VM that can't be attached/mounted.

      Additional info:

      A reproducer is available at:
      https://console-openshift-console.apps.bleeding.cnv.engineering.redhat.com
      namespace: rsdeor
      vm name: windows-2k22-virtio-maroon-porpoise-52

              sgott@redhat.com Stuart Gott
              ocohen@redhat.com Oren Cohen
              Shirly Radco
              Denys Shchedrivyi Denys Shchedrivyi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: