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 1615716

Summary: The number of Displays becomes more after migration
Product: Red Hat Enterprise Linux 8 Reporter: Yanqiu Zhang <yanqzhan>
Component: spiceAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED NEXTRELEASE QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: cfergeau, dblechte, dyuan, fjin, fziglio, lmen, mzhan, tpelka, tzheng, victortoso, xiaodwan, xuzhang, yanqzhan
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-17 09:36:13 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:
Description Flags
displays2to4 none

Description Yanqiu Zhang 2018-08-14 06:18:57 UTC
Description of problem:
The number of Displays becomes more after migration

Version-Release number of selected component:
virt-viewer-5.0-11.el7.x86_64
spice-gtk3-0.35-2.el7.x86_64
spice-glib-0.35-2.el7.x86_64
spice-server-0.14.0-6.el7.x86_64
libvirt-4.5.0-6.el7.x86_64
qemu-kvm-rhev-2.12.0-10.el7.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Prepare a guest with GUI, with spice graphics listen to "0.0.0.0", and 1 video device with 2 heads:
    <graphics type='spice' autoport='yes' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
...
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='2' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>

2. Start the guest and connect by virt-viewer:
# virsh start V7.6-GUI
# virt-viewer V7.6-GUI --debug --spice-debug

3.After guest os fully started, open all 2 displays under 'View'->'Displays' in virt-viewer.

4.Do seamless spice migration:
# virsh migrate V7.6-GUI --live qemu+ssh://lenovo-***/system

5.Then check the displays on target:
The 2 displays work well.
But under 'View'->'Displays' sub-menu, there are another 2 displays available:
'Display 3', 'Display 4'. But when click 'Display 3' trying to open it, the new display shows "Waiting for Display 3" for only few seconds, then it disappears, and under the sub-menu the extra 2 displays options also disappears.

Actual results:
As in step 5, the number of Displays changes from 2 to 4 after migration.
And they disappears after try to click one to open.

Expected results:
The number of Displays should not change after migration


Additional info:
1.Also reproduces on rhel7.5 with following pkgs:
virt-viewer-5.0-10.el7.x86_64
spice-gtk3-0.34-3.el7_5.1.x86_64
spice-server-0.14.0-2.el7_5.5.x86_64
spice-glib-0.34-3.el7_5.1.x86_64
libvirt-3.9.0-14.el7_5.7.x86_64
qemu-kvm-rhev-2.10.0-21.el7_5.5.x86_64
2.Pls refer to attachment "displays2to4" for spice/libvirtd/qemu logs, guest xml, screenshot png.

Comment 2 Yanqiu Zhang 2018-08-14 06:21:31 UTC
Created attachment 1475749 [details]
displays2to4

Comment 3 Victor Toso 2018-12-13 14:44:52 UTC
On the client,

first:
> GSpice-DEBUG: 07:35:15.003: channel-display.c:1877 display-2:0: received new monitors config from guest: n: 1/1
...
> GSpice-DEBUG: 07:35:15.122: channel-display.c:1877 display-2:0: received new monitors config from guest: n: 1/2
...
> GSpice-DEBUG: 07:36:25.616: channel-display.c:1877 display-2:0: received new monitors config from guest: n: 2/2

migration and then:

> GSpice-DEBUG: 07:37:37.830: channel-display.c:1877 display-2:0: received new monitors config from guest: n: 2/4
...
> virt-viewer-DEBUG: 07:37:37.839: creating spice display (#:3)
> virt-viewer-DEBUG: 07:37:37.839: Insert display 3 0x563973f561b0
...
> GSpice-DEBUG: 07:38:03.140: channel-display.c:1877 display-2:0: received new monitors config from guest: n: 2/2

So, the client receives all the message that there is 2 displays enabled while 4 is the max.

Debug in the host is not enabled so hard to tell where is the problem.
Not marked as regression so I'm moving to RHEL 8.0 to be checked.