Bug 1968514 - [RFE] Add cancel migration action to virtctl
Summary: [RFE] Add cancel migration action to virtctl
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 4.8.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.11.0
Assignee: Uri Lublin
QA Contact: Akriti Gupta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-07 13:28 UTC by Israel Pinto
Modified: 2023-11-13 08:18 UTC (History)
7 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CNV-12329 0 None None None 2023-11-13 08:18:42 UTC
Red Hat Product Errata RHSA-2022:6526 0 None None None 2022-09-14 19:28:30 UTC

Description Israel Pinto 2021-06-07 13:28:52 UTC
Description of problem:
Like in the UI and other virtual products we should have in our virtctl the ability to cancel migration.


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


Additional info:
It can help with situation were the migration is stuck also like the bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1945532

Comment 2 Uri Lublin 2022-01-30 18:50:07 UTC
Upstream patches available: https://github.com/kubevirt/kubevirt/pull/6735

Comment 5 Akriti Gupta 2022-05-06 13:43:51 UTC
Checked with: iib:219905
kubevirt-virtctl-4.11.0-525.el8.x86_64.rpm

[akrgupta@fedora Downloads]$ virtctl migrate vm-rhel84-ocs
VM vm-rhel84-ocs was scheduled to migrate
[akrgupta@fedora Downloads]$ oc describe vm rhel8-excited-crocodile

Status:
  Conditions:
    Last Probe Time:       <nil>
    Last Transition Time:  2022-05-06T13:20:53Z
    Status:                True
    Type:                  Ready
    Last Probe Time:       <nil>
    Last Transition Time:  <nil>
    Message:               cannot migrate VMI: PVC rhel8-excited-crocodile-rootdisk-x7x0e is not shared, live migration requires that all PVCs must be shared (using ReadWriteMany access mode)
    Reason:                DisksNotLiveMigratable
    Status:                False
    Type:                  LiveMigratable
    Last Probe Time:       2022-05-06T13:21:40Z
    Last Transition Time:  <nil>
    Status:                True
    Type:                  AgentConnected
  Created:                 true
  Printable Status:        Running
  Ready:                   true

kubevirt-virtctl-4.11.0-580.el9.x86_64.rpm
[akrgupta@fedora Downloads]$ virtctl migrate vm-rhel84-ocs
VM vm-rhel84-ocs was scheduled to migrate
[akrgupta@fedora Downloads]$ oc describe vm rhel8-excited-crocodile

Status:
  Conditions:
    Last Probe Time:       <nil>
    Last Transition Time:  2022-05-06T13:20:53Z
    Status:                True
    Type:                  Ready
    Last Probe Time:       <nil>
    Last Transition Time:  <nil>
    Message:               cannot migrate VMI: PVC rhel8-excited-crocodile-rootdisk-x7x0e is not shared, live migration requires that all PVCs must be shared (using ReadWriteMany access mode)
    Reason:                DisksNotLiveMigratable
    Status:                False
    Type:                  LiveMigratable
    Last Probe Time:       2022-05-06T13:21:40Z
    Last Transition Time:  <nil>
    Status:                True
    Type:                  AgentConnected
  Created:                 true
  Printable Status:        Running
  Ready:                   true

Comment 7 Akriti Gupta 2022-05-11 07:59:42 UTC
Verifird with iib:219905
virtctl has the ability to cancel migration.


[cnv-qe-jenkins@virt-akr-411-jpqfs-executor ~]$ virtctl migrate vm-rhel84-ocs ; sleep 5 ; virtctl migrate-cancel vm-rhel84-ocs
VM vm-rhel84-ocs was scheduled to migrate
VM vm-rhel84-ocs was scheduled to migrate-cancel

Comment 9 errata-xmlrpc 2022-09-14 19:28:21 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.