RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1020495 - Disable live-storage-migration in virsh (migrate -b/-i in qemu)
Summary: Disable live-storage-migration in virsh (migrate -b/-i in qemu)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Privoznik
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1020493 1022392
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-17 18:55 UTC by Ademar Reis
Modified: 2014-06-26 13:41 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1020493
: 1022393 (view as bug list)
Environment:
Last Closed: 2014-06-26 13:41:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ademar Reis 2013-10-17 18:55:31 UTC
+++ This bug was initially created as a clone of Bug #1020493 +++

Via QMP, migrate -b (and -i) is available in our RHEL-6.x packages, but this option is not supported and was introduced by accident. The proper way to migrate a VM without shared storage is using drive_mirror and NBD, as supported in the -rhev flavor of QEMU.

virsh migrate --live --copy-storage-{all,inc} currently calls migrate -b in RHEL6.x and apparently it automatically calls block_stream if it's available (for example, in RHEV). This BZ will be cloned against libvirt to make sure these options are properly handled after the removal of migrate -b.

Comment 2 Jiri Denemark 2013-10-18 10:18:07 UTC
I don't think there anything we could or should do in libvirt. If a user specifies any of the options, libvirtd will run migrate with blk or inc arguments set to true and it's up to QEMU to fail if it doesn't support them. We don't have any way to check support for these arguments upfront. More over, you can't just remove them completely as libvirtd will always set them (to either true or false). Or did I get it wrong and this bug only affects HMP? If that's the case, libvirt does not use HMP for migration in RHEL 6.

Comment 3 Jiri Denemark 2013-10-18 10:19:51 UTC
I'm switching this bug to TestOnly. But if it turns out to be a HMP-only issue, I'll just close this as NOTABUG.

Comment 4 Ademar Reis 2013-10-18 12:18:15 UTC
I mentioned migrate -b out of habit. In fact this bug is about the removal of block copy and incremental copy in the migration command (in QMP: blk and inc parameters to migrate).

Users get to live storage migration via commands such as "virsh --live --copy-storage-{inc,all}". Ideally, they should not be present in RHEL, as they're not supported.

For more context, please check bug 1015979 (as I write this, turns out it's way more complicated than we originally though).

Comment 5 Daniel Berrangé 2013-10-18 12:22:04 UTC
(In reply to Ademar de Souza Reis Jr. from comment #4)
> Users get to live storage migration via commands such as "virsh --live
> --copy-storage-{inc,all}". Ideally, they should not be present in RHEL, as
> they're not supported.

virsh is a libvirt client application and can connect to a libvirtd host on any platform, even those which *do* support storage migration. As such, it would be inappropriate to remove these flags from virsh.

Comment 6 Eric Blake 2013-10-18 12:49:58 UTC
The best we can do in virsh is that if both 'migrate -b' and NBD are missing, we give a sane error message telling the user it is unsupported.  About the only thing this BZ can do is make sure that the failure is handled gracefully, if it is not already.

Comment 7 Ademar Reis 2013-10-18 18:04:13 UTC
(In reply to Daniel Berrange from comment #5)
> (In reply to Ademar de Souza Reis Jr. from comment #4)
> > Users get to live storage migration via commands such as "virsh --live
> > --copy-storage-{inc,all}". Ideally, they should not be present in RHEL, as
> > they're not supported.
> 
> virsh is a libvirt client application and can connect to a libvirtd host on
> any platform, even those which *do* support storage migration. As such, it
> would be inappropriate to remove these flags from virsh.

Good point. Which makes everything even more complicated: we should make it clear in the documentation (e.g.: Virt Admin Guides) that some features are not supported in RHEL, but the options are there in case the user connects to a remote libvirtd instance that supports it... Is it worth it? Is it the original intention?

(In reply to Eric Blake from comment #6)
> The best we can do in virsh is that if both 'migrate -b' and NBD are
> missing, we give a sane error message telling the user it is unsupported. 
> About the only thing this BZ can do is make sure that the failure is handled
> gracefully, if it is not already.

That's the idea (whenever we touch QMP in QEMU, we'll clone the bug to libvirt to stay on the safe side). So I'm moving this bug back to NEW. Feel free to move it back to ON_QA if you think no changes are needed.


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