Bug 2052466

Summary: Event does not include reason for inability to live migrate
Product: Container Native Virtualization (CNV) Reporter: Fabian Deutsch <fdeutsch>
Component: VirtualizationAssignee: Pavel Kratochvil <pakratoc>
Status: CLOSED ERRATA QA Contact: Akriti Gupta <akrgupta>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.10.0CC: acardace, cnv-qe-bugs, kbidarka, lpivarc, sgott
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hco-bundle-registry-container-v4.11.0-478 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-14 19:28:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The event error message
none
The (better) API error message none

Description Fabian Deutsch 2022-02-09 10:38:07 UTC
Created attachment 1860051 [details]
The event error message

Description of problem:
There is an event if a VM is not live migratable for some reason.
However, in the API conditions there is a reason (a really nice one!) of why the VM is not livemigrateable. This reason should be included in the event as well.

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

How reproducible:
Always

Steps to Reproduce:
1. Create a VM which is not live migratable i.e. using local storage (as in the screenshot)
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Fabian Deutsch 2022-02-09 10:38:34 UTC
Created attachment 1860053 [details]
The (better) API error message

Comment 2 Akriti Gupta 2022-05-02 16:48:45 UTC
Checked with: iib:219905

[cnv-qe-jenkins@virt-akr-411-jpqfs-executor ~]$ oc get vmi
NAME                  AGE     PHASE     IP             NODENAME                            READY
rhel9-fatal-camel     7m12s   Running   10.128.2.14    virt-akr-411-jpqfs-worker-0-j99b5   True

[cnv-qe-jenkins@virt-akr-411-jpqfs-executor ~]$ oc describe vm rhel9-fatal-camel | grep Message
    Message:               cannot migrate VMI: PVC rhel9-fatal-camel-rootdisk-ekzpj is not shared, live migration requires that all PVCs must be shared (using ReadWriteMany access mode)
  Type    Reason                      Age    From                       Message

[cnv-qe-jenkins@virt-akr-411-jpqfs-executor ~]$ oc get vm rhel9-fatal-camel -o json | jq '.spec.dataVolumeTemplates' | grep storageClassName
        "storageClassName": "hostpath-csi-basic",

Comment 3 lpivarc 2022-05-23 08:56:44 UTC
PR is in merge pool

Comment 4 sgott 2022-06-07 11:46:22 UTC
Backport PR is not merged yet. Moving back to POST.

Comment 7 errata-xmlrpc 2022-09-14 19:28:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Virtualization 4.11.0 Images security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:6526