Bug 841061 - the src spice client show black screen before migration finish
Summary: the src spice client show black screen before migration finish
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm
Version: 5.9
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: David Blechter
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-18 02:30 UTC by langfang
Modified: 2013-01-10 01:03 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-19 06:45:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
before migration finish ,the src spice client result (6.52 KB, image/png)
2012-07-18 02:39 UTC, langfang
no flags Details
src (18.85 KB, text/plain)
2012-07-19 03:07 UTC, langfang
no flags Details
destination (1.79 KB, text/plain)
2012-07-19 03:10 UTC, langfang
no flags Details
spice (4.59 KB, text/plain)
2012-07-19 03:11 UTC, langfang
no flags Details

Description langfang 2012-07-18 02:30:56 UTC
Description of problem:
boot guest with spice,then do migration -->the src spice client cut off(before migration finish)-->open src spice client again--->show black screen

Version-Release number of selected component (if applicable):
host:rhel5.9

# uname -r
2.6.18-327.el5

# rpm -q  kvm
kvm-83-256.el5

# rpm -q spice-client
spice-client-0.8.1-6.el5_8.2

How reproducible:

100%
Steps to Reproduce:
1.boot guest with spice
 /usr/libexec/qemu-kvm -m 4G -smp 4 -usbdevice tablet -drive file=/mnt/rhel5.8-test2.qcow2,if=virtio,boot=on,werror=stop,cache=none,format=qcow2,media=disk -net nic,macaddr=4a:22:15:26:29:31,model=virtio,vlan=0 -net tap,script=/etc/qemu-ifup,vlan=0 -uuid d06e43e7-d27a-4b04-b99a-d30d898ca64f -cdrom /mnt/RHEL5.8-Server-20120202.0-x86_64-DVD.iso -boot d -monitor stdio -spice host=0,ic=on,port=2000,disable-ticketing -qxl 1

2.boot guest 
....-incoming tcp:0:5999

3.(qemu)migrate -d tcp:0:5999
Migration status: active
transferred ram: 13311 kbytes
remaining ram: 2591912 kbytes
total ram: 4280408 kbytes

   
Actual results:
#spicec -h 10.66.4.183 -p 2000
connect : Connection refused
Warning: abort

open the src spice client again-->show block screen


Expected results:
before migrate finish,the src spice client should work normally.

Additional info:
1)after migrate finish.the src spice client is normal ,can see the screen again
2)test this with windown2008,also have the same problem
3)use vnc to test the src client work well.

do the same test on rhel6.3 host ,not hit the issue.the src spice client work well.

Comment 1 langfang 2012-07-18 02:39:07 UTC
Created attachment 598774 [details]
before migration finish ,the src spice client result

Comment 3 RHEL Program Management 2012-07-18 03:08:13 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 5 Yonit Halperin 2012-07-18 15:09:19 UTC
Hi,
you mean that the client is closed everytime migration occurs?

Please provide the qemu logs for both the migration src and the migration destination. Also provide the spice client log (under ~/.spicec/spicec.log).

The destination is rhel5 as well?

The issue to be investigated here is the client being disconnected from the src.
The black screen upon reconnection to the src during migration is not surprising, since in Rhel5 spice blocks new connection once migration has started.

Thanks,
Yonit.

Comment 6 langfang 2012-07-19 03:03:02 UTC
(In reply to comment #5)
> Hi,
> you mean that the client is closed everytime migration occurs?

yes

> Please provide the qemu logs for both the migration src and the migration
> destination. Also provide the spice client log (under ~/.spicec/spicec.log).
> 
> The destination is rhel5 as well?

yes,do the local migration
 
> The issue to be investigated here is the client being disconnected from the
> src.
> The black screen upon reconnection to the src during migration is not
> surprising, since in Rhel5 spice blocks new connection once migration has
> started.

Yonit, follow  above description,this is a normal phenomenon,right?thanks
> Thanks,
> Yonit.
hi! Yonit
  the src qemu log please see attachment: src.log
  the des qemu log please see attachment:des.log
  the spicec log please see spicec.log

Comment 7 langfang 2012-07-19 03:07:41 UTC
Created attachment 599047 [details]
src

Comment 8 langfang 2012-07-19 03:10:36 UTC
Created attachment 599048 [details]
destination

Comment 9 langfang 2012-07-19 03:11:20 UTC
Created attachment 599049 [details]
spice

Comment 10 Yonit Halperin 2012-07-19 06:16:54 UTC
Hi,
I think your migration cmd line is incomplete. In rhel5, in order to include spice in the migration, the cmd line should be:
migrate -d tcp:<dst-host>:<dst-port>,spiceport=<dst-spice-port>,spicehost=<dst-host>
Please let me know if now it works.

Comment 11 langfang 2012-07-19 06:38:52 UTC
hi!Yonit
   you are right.use cmd line "migrate -d tcp:<dst-host>:<dst-port>,spiceport=<dst-spice-port>,spicehost=<dst-host>",it work now.not  show dark screen.thanks a lot.


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