Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 622446

Summary: [vdsm] [libvirt] vm 'split brain' when 'vdsm' loose connection to 'libvirtd' after migration
Product: Red Hat Enterprise Linux 6 Reporter: Haim <hateya>
Component: vdsmAssignee: Eduardo Warszawski <ewarszaw>
Status: CLOSED ERRATA QA Contact: Haim <hateya>
Severity: high Docs Contact:
Priority: low    
Version: 6.1CC: abaron, bazulay, danken, hateya, iheim, ilvovsky, jlibosva, mgoldboi, Rhev-m-bugs, syeghiay, yeylon, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vdsm-4.9-69.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 709788 (view as bug list) Environment:
Last Closed: 2011-12-06 06:58:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 581275, 709788    
Attachments:
Description Flags
vdsm logs
none
Logs
none
vdsm - new 73 based none

Description Haim 2010-08-09 11:55:27 UTC
Created attachment 437572 [details]
vdsm logs

Description of problem:

vm 'split brain' scenario is created in case vdsm loses its connection to libvirt somehow (*) on destination machine, and migration from source (valid source) to that destination takes place. 

migration is reported as 'failed', and 'qemu' process is so called dies, however, migration succeeds to destination on virsh, this results a state, where vdsm 'thinks' vm is down (and rhevm respectively), and will try to run this vm on different host, which will result 'split brain'.

(*) how ? 

1) make sure you have 2 hosts ('host-a' and 'host-b')
2) make sure you have connected storage (i use iscsi)
3) run the following commands on 'host-b' 
   - kill -STOP `pgrep libvirt`
   - service libvirtd restart 
4) create a new domain (machine) on 'host-a' and make sure it runs 
5) migrate this vm from 'host-a' to 'host-b' 

result: 

migration will fail on source, however, it will succeeds on libvirt.

Comment 1 Haim 2010-08-09 11:55:59 UTC
libvirt-0.8.1-20.el6.x86_64
vdsm-4.9-12.el6.x86_64
qemu-kvm-0.12.1.2-2.106.el6.x86_64

Comment 3 Barak 2010-11-28 16:41:06 UTC
This happens because we may miss the libvirt event (domain finished migration) when we were down. This should be solved by checking on recovery if we are migration destination then recheck VM status and if it's running change our VM status accordingly..

Comment 5 Dan Kenigsberg 2011-01-02 10:32:58 UTC
*** Bug 601741 has been marked as a duplicate of this bug. ***

Comment 6 Eduardo Warszawski 2011-05-23 06:28:52 UTC
*** Bug 695391 has been marked as a duplicate of this bug. ***

Comment 8 Jakub Libosvar 2011-05-31 15:11:50 UTC
Using steps described in Description with vdsm-4.9-70.el6.x86_64, during migration the machine status in RHEV-M was down. After but according backend log, migration was in progress: 
2011-05-31 16:58:22,131 INFO  [com.redhat.rhevm.vdsbroker.VdsUpdateRunTimeInfo] (QuartzScheduler_Worker-12) vds::refreshVmList vm id 4f65e6ab-3bd1-4a69-be84-326ee9d988a8 is migrating to vds srh-11 ignoring it in the refresh till migration is done

Migration failed in RHEV-M at 17:02 according events. No ERROR in backend nor vdsm logs. Backend, source vds's and targer vds's vdsm and libvirt logs are attached in next comment.

In libvirt is error
16:57:46.712: 12070: error : remoteIO:10569 : Domain not found: no domain with matching uuid '4f65e6ab-3bd1-4a69-be84-326ee9d988a8'

Comment 9 Jakub Libosvar 2011-05-31 15:12:40 UTC
Created attachment 502022 [details]
Logs

Comment 12 Haim 2011-06-07 10:07:09 UTC
Created attachment 503440 [details]
vdsm - new 73 based

Comment 13 Haim 2011-06-12 09:24:32 UTC
no repro on 74. fixed

Comment 14 errata-xmlrpc 2011-12-06 06:58:37 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/RHEA-2011-1782.html