Bug 918619
| Summary: | migration may result in VM running on both source and target hosts | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | David Jaša <djasa> | ||||||
| Component: | libvirt | Assignee: | Ján Tomko <jtomko> | ||||||
| Status: | CLOSED WORKSFORME | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.4 | CC: | acathrow, bili, cwei, dallan, dyuan, mzhan, weizhan, xkatop, zhpeng | ||||||
| Target Milestone: | beta | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2013-09-05 13:14:38 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
virsh said (more or less - I got l10n'd output): error:Unable to read from monitor: Connection terminated by the other side src /etc/libvirt/qemu.conf: spice_listen = "::" spice_tls = 1 spice_tls_x509_cert_dir = "/etc/pki/libvirt-spice" dst /etc/libvirt/qemu.conf: spice_listen = "0.0.0.0" spice_tls = 1 spice_tls_x509_cert_dir = "/etc/pki/libvirt-spice" user = "root" Hi David,
Which transport protocol did you use when cross this issue?
I can not reproduce this bug with 'ssh' method for repeating 1024 rounds:
# cat migrate.sh
#!/bin/bash
# Migrate a guest back and forth between two hosts, printing progress as it goes
GUEST=$1
HOST1=$2
HOST2=$3
OPTIONS="--live --p2p"
#TRANSPORT="tcp"
#TRANSPORT="tls"
TRANSPORT="ssh"
date
for i in `seq 1 1024`;
do
echo "Loop ${i}: Migrating ${GUEST} from ${HOST1} to ${HOST2}"
echo "COMMAND: virsh -c qemu+${TRANSPORT}://root@${HOST1}/system migrate ${OPTIONS} ${GUEST} qemu+${TRANSPORT}://root@${HOST2}/system"
time virsh -c qemu+${TRANSPORT}://root@${HOST1}/system migrate ${OPTIONS} ${GUEST} qemu+${TRANSPORT}://root@${HOST2}/system
echo "Loop ${i}: Migrating ${GUEST} back from ${HOST2} to ${HOST1}"
echo "COMMAND: virsh -c qemu+${TRANSPORT}://root@${HOST2}/system migrate ${OPTIONS} ${GUEST} qemu+${TRANSPORT}://root@${HOST1}/system"
time virsh -c qemu+${TRANSPORT}://root@${HOST2}/system migrate ${OPTIONS} ${GUEST} qemu+${TRANSPORT}://root@${HOST1}/system
done
date
My /etc/libvirt/qemu.conf file is same with comment #6, and my guest xml as next attachment.
Thanks,
EricLee
Created attachment 706342 [details]
guest xml file
Hi Eric, I used local unix socket to access one host and plain tcp without authentication for other host. (In reply to comment #9) > Hi Eric, I used local unix socket to access one host and plain tcp without > authentication for other host. Hi David, I still can not reproduce it: # cat migrate.sh #!/bin/bash # Migrate a guest back and forth between two hosts, printing progress as it goes GUEST=$1 HOST1=$2 HOST2=$3 OPTIONS="--live --p2p" TRANSPORT="tcp" #TRANSPORT="tls" #TRANSPORT="ssh" date for i in `seq 1 512`; do echo "Loop ${i}: Migrating ${GUEST} from ${HOST1} to ${HOST2}" echo "COMMAND: virsh -c qemu+ssh://root@${HOST1}/system migrate ${OPTIONS} ${GUEST} qemu+${TRANSPORT}://root@${HOST2}/system" time virsh -c qemu+ssh://root@${HOST1}/system migrate ${OPTIONS} ${GUEST} qemu+${TRANSPORT}://root@${HOST2}/system echo "Loop ${i}: Migrating ${GUEST} back from ${HOST2} to ${HOST1}" echo "COMMAND: virsh -c qemu+${TRANSPORT}://root@${HOST2}/system migrate ${OPTIONS} ${GUEST} qemu+ssh://root@${HOST1}/system" time virsh -c qemu+${TRANSPORT}://root@${HOST2}/system migrate ${OPTIONS} ${GUEST} qemu+ssh://root@${HOST1}/system done date Do I miss some important steps? Thanks, EricLee No, you don't. It happened to me just once in many occasions, so I'm afraid that only the developer who'll look at the code may pinpoint the root cause and more reliable reproducer. I didn't find any issues in the code and I can't reproduce it either. |
Created attachment 706068 [details] domain xml Description of problem: migration may result in VM running on both source and target hosts Version-Release number of selected component (if applicable): libvirt-0.10.2-18.el6.x86_64 qemu-kvm-0.12.1.2-2.355.el6.x86_64 spice-server-0.12.0-12.el6.x86_64 (both machines) How reproducible: random Steps to Reproduce: 1. repeat migration back and forth till you get this result 2. 3. Actual results: Expected results: Additional info: