Bug 2052466 - Event does not include reason for inability to live migrate
Summary: Event does not include reason for inability to live migrate
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 4.10.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Pavel Kratochvil
QA Contact: Akriti Gupta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-09 10:38 UTC by Fabian Deutsch
Modified: 2023-11-13 08:15 UTC (History)
5 users (show)

Fixed In Version: hco-bundle-registry-container-v4.11.0-478
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-14 19:28:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
The event error message (21.79 KB, image/png)
2022-02-09 10:38 UTC, Fabian Deutsch
no flags Details
The (better) API error message (68.38 KB, image/png)
2022-02-09 10:38 UTC, Fabian Deutsch
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 7475 0 None open Add more descriptive message for failure during live-migration 2022-05-10 13:30:07 UTC
Github kubevirt kubevirt pull 7866 0 None open [release-0.53] Add more descriptive message for failure during live-migration 2022-06-07 11:46:21 UTC
Red Hat Issue Tracker CNV-16303 0 None None None 2023-11-13 08:15:41 UTC
Red Hat Product Errata RHSA-2022:6526 0 None None None 2022-09-14 19:29:07 UTC

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


Note You need to log in before you can comment on or make changes to this bug.