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 1088034 - VM migration in RHEV environment failed due to libvirt error "Failed to inquire lock: No such process"
Summary: VM migration in RHEV environment failed due to libvirt error "Failed to inqui...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.5
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Martin Kletzander
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1097227
TreeView+ depends on / blocked
 
Reported: 2014-04-15 21:11 UTC by Gordon Watson
Modified: 2018-12-06 16:18 UTC (History)
10 users (show)

Fixed In Version: libvirt-0.10.2-36.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-14 04:21:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1374 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2014-10-14 08:11:54 UTC

Comment 10 Jiri Denemark 2014-04-18 10:46:57 UTC
Once sanlock driver is enabled in libvirt's qemu.conf, libvirt will always call sanlock_register for all domains it starts even though no leases are setup for them. This is to support lease hotplug. And since vdsm enables sanlock driver, all domains should be registered with sanlockd. However, vdsm didn't enable sanlock driver until the last release (AFAIK).

So I wonder, if this could perhaps be an issue with domains started before sanlock was enabled, that is before upgrading vdsm. During the upgrade, vdsm would enable sanlock and restart libvirtd and suddenly libvirt may start querying sanlock even for domains that knew nothing about sanlock when they were started. Beware, this is just a theory that needs to be proved :-)

Comment 12 Martin Kletzander 2014-04-23 16:00:05 UTC
I reproduced the issue and can confirm that what Jiri stated in comment #10 indeed causes the problem.  Now we need to evaluate the following two approaches:

 1) either we will skip any sanlock (and related) operations for domains that were started without sanlock (or any locking mechanism)

 2) or, when starting libvirtd and getting information about running domains, we try to do the same thing we do when starting the domain (registering the PID, locking the disks, acquiring leases, whatever).

Approach (1) is indeed way easier and the only problem with it is that upgrading libvirt (or its configuration) will not get you sanlock on running domains.  Approach (2) might be able to achieve that, but it has tons of caveats.  Starting with the fact that we have no plumbing done for registering other than self PID and not ending with the fact that we don't know what to do any action while migrating fails.

Any pointers about this before I start working on one of these variants?

Comment 13 David Teigland 2014-04-23 17:11:16 UTC
I would suggest option 1.  rhev/vdsm does not actually configure or use sanlock leases for vms, so libvirt is just going through the sanlock steps as a formality; they are not actually doing anything useful now (or in the near future AFAIK.)

Comment 15 Martin Kletzander 2014-04-24 06:54:08 UTC
I agree, I'll start the work ASAP.

Comment 19 Martin Kletzander 2014-05-13 09:36:41 UTC
Fixed upstream by v1.2.4-51-gd990574 and v1.2.4-52-gda879e5:

commit d99057423c4c9310cfc324d73e201eeb83c7d6b8
Author: Martin Kletzander <mkletzan>
Date:   Mon May 12 11:38:08 2014 +0200

    sanlock: code movement in virLockManagerSanlockAcquire

commit da879e592142291709f7b95b9218d32bb1869d1a
Author: Martin Kletzander <mkletzan>
Date:   Mon May 12 11:38:47 2014 +0200

    sanlock: don't fail with unregistered domains

Comment 23 zhenfeng wang 2014-05-20 09:51:14 UTC
I can reproduce this bug with libvirt-0.10.2-35.el6 and can get the expect result with the libvirt-0.10.2-36.el6, so mark this bug verified. BTW, For more detials about the reproduce steps and verify steps, you can reference the comment6 in bug 1097227
https://bugzilla.redhat.com/show_bug.cgi?id=1097227#c6

Comment 25 errata-xmlrpc 2014-10-14 04:21:12 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, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHBA-2014-1374.html

Comment 26 David Teigland 2015-02-26 15:53:16 UTC
*** Bug 1189414 has been marked as a duplicate of this bug. ***


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