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 2145004 - On a RHEL 9 VM stopping and starting the spice-vdagentd results in a non-usable console
Summary: On a RHEL 9 VM stopping and starting the spice-vdagentd results in a non-usab...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: spice-vdagent
Version: 8.6
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 8.5
Assignee: Victor Toso
QA Contact: Tomas Pelka
URL:
Whiteboard:
Depends On:
Blocks: 2160750
TreeView+ depends on / blocked
 
Reported: 2022-11-22 21:38 UTC by Frank DeLorey
Modified: 2023-05-16 10:07 UTC (History)
4 users (show)

Fixed In Version: spice-vdagent-0.20.0-5.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2160750 (view as bug list)
Environment:
Last Closed: 2023-05-16 08:41:15 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-140221 0 None None None 2022-11-22 21:38:46 UTC
Red Hat Product Errata RHBA-2023:2885 0 None None None 2023-05-16 08:41:19 UTC

Description Frank DeLorey 2022-11-22 21:38:08 UTC
Description of problem:
Customer reported that randomly the console to their RHEL 9 VM would be stuck at "Connected to graphic server"

Version-Release number of selected component (if applicable):
RHV 4.5.2

How reproducible:
At will

Steps to Reproduce:
1.systemctl stop spice-vdagentd
2.systemctl start spice-vdagentd

Actual results:
spice-vdagent appears to start but console is stuck

Expected results:
Console should allow logins

Additional info:
I can reproduce at will on our lab system. I noticed a few errors when it happens and they change but all result in a hung console. The first time I bounced the agent one of the spice-vdagents did not enter do_pol:

[root@dhcp181-100 ~]# ps -elfL|grep spice
5 R root        2143    1805    2143 26    3  80   0 - 40354 -      15:47 ?        00:04:51 /usr/bin/spice-vdagent
1 S root        2143    1805    2149  0    3  80   0 - 40354 do_pol 15:47 ?        00:00:00 /usr/bin/spice-vdagent
1 S root        2143    1805    2282  0    3  80   0 - 40354 do_pol 15:47 ?        00:00:00 /usr/bin/spice-vdagent
1 S root        2487       1    2487  0    3  80   0 - 39924 do_pol 16:01 ?        00:00:00 /usr/sbin/spice-vdagentd
1 S root        2487       1    2489  0    3  80   0 - 39924 do_pol 16:01 ?        00:00:00 /usr/sbin/spice-vdagentd
1 S root        2487       1    2490  0    3  80   0 - 39924 futex_ 16:01 ?        00:00:00 /usr/sbin/spice-vdagentd

The second time it did not spawn the spice-vdagent process?

[root@dhcp181-100 ~]# ps -elfL|grep spice
1 S root        1920       1    1920  0    3  80   0 - 39924 do_pol 16:21 ?        00:00:00 /usr/sbin/spice-vdagentd
1 S root        1920       1    1922  0    3  80   0 - 39924 do_pol 16:21 ?        00:00:00 /usr/sbin/spice-vdagentd
1 S root        1920       1    1923  0    3  80   0 - 39924 futex_ 16:21 ?        00:00:00 /usr/sbin/spice-vdagentd


We see some errors in the messages file:

Nov 22 16:08:04 localhost spice-vdagent[1769]: vdagent started
Nov 22 16:08:04 localhost systemd[1]: spice-vdagentd.service: Can't open PID file /run/spice-vdagentd/spice-vdagentd.pid (yet?) after start: Operation not permitted
Nov 22 16:08:04 localhost spice-vdagent[1769]: warning could not get file xfer save dir, file transfers will be disabled
Nov 22 16:08:04 localhost spice-vdagent[1769]: File transfer is disabled
Nov 22 16:08:04 localhost spice-vdagentd[1772]: opening vdagent virtio channel
Nov 22 16:08:04 localhost spice-vdagent[1769]: Received Graphics Device Info:
Nov 22 16:08:04 localhost spice-vdagent[1769]: Couldn't find an XRandr output for the specified device
Nov 22 16:08:04 localhost spice-vdagent[1769]: channel_id: 0 monitor_id: 0 device_address: pci/0000/01.0, device_display_id: 0 xrandr output ID NOT FOUND
Nov 22 16:08:04 localhost spice-vdagent[1769]: Received Graphics Device Info:
Nov 22 16:08:04 localhost spice-vdagent[1769]: Couldn't find an XRandr output for the specified device
Nov 22 16:08:04 localhost spice-vdagent[1769]: channel_id: 0 monitor_id: 0 device_address: pci/0000/01.0, device_display_id: 0 xrandr output ID NOT FOUND
Nov 22 16:08:04 localhost spice-vdagent[1769]: Received Graphics Device Info:
Nov 22 16:08:04 localhost spice-vdagent[1769]: Couldn't find an XRandr output for the specified device
Nov 22 16:08:04 localhost spice-vdagent[1769]: channel_id: 0 monitor_id: 0 device_address: pci/0000/01.0, device_display_id: 0 xrandr output ID NOT FOUND
Nov 22 16:13:06 localhost kernel: traps: spice-vdagentd[1772] general protection fault ip:7f3820fb5f5f sp:7fff0b3219c0 error:0 in libc.so.6[7f3820f31000+176000]
Nov 22 16:13:06 localhost spice-vdagent[1769]: warning could not get file xfer save dir, file transfers will be disabled
Nov 22 16:13:06 localhost spice-vdagent[1769]: File transfer is disabled
Nov 22 16:13:06 localhost kernel: spice-vdagent[1769]: segfault at 0 ip 0000555adfd836f6 sp 00007ffc57aa9490 error 4 in spice-vdagent[555adfd7b000+d000]
Nov 22 16:13:09 localhost systemd-coredump[1862]: Resource limits disable core dumping for process 1769 (spice-vdagent).
Nov 22 16:13:09 localhost systemd-coredump[1862]: Process 1769 (spice-vdagent) of user 42 dumped core.
Nov 22 16:13:09 localhost systemd-coredump[1863]: Resource limits disable core dumping for process 1772 (spice-vdagentd).
Nov 22 16:13:09 localhost systemd-coredump[1863]: Process 1772 (spice-vdagentd) of user 0 dumped core.
Nov 22 16:13:09 localhost systemd[1]: spice-vdagentd.service: Main process exited, code=dumped, status=11/SEGV
Nov 22 16:13:09 localhost systemd[1]: spice-vdagentd.service: Failed with result 'core-dump'.
Nov 22 16:13:38 localhost systemd[1]: spice-vdagentd.service: Can't open PID file /run/spice-vdagentd/spice-vdagentd.pid (yet?) after start: Operation not permitted
Nov 22 16:19:14 localhost spice-vdagent[1905]: vdagent started
Nov 22 16:19:14 localhost spice-vdagent[1905]: could not connect to X-server
Nov 22 16:19:14 localhost spice-vdagentd[1883]: Error receiving data: Connection reset by peer
Nov 22 16:21:24 localhost spice-vdagentd[1883]: vdagentd quitting, returning status 0
Nov 22 16:21:24 localhost systemd[1]: spice-vdagentd.service: Deactivated successfully.
Nov 22 16:21:56 localhost systemd[1]: spice-vdagentd.service: Can't open PID file /run/spice-vdagentd/spice-vdagentd.pid (yet?) after start: Operation not permitted

Comment 2 Peter Krempa 2022-11-23 08:28:19 UTC
Re-assigning to the 'spice' component for further investigation.

Please fill in the specific version information for the individual virtualization packages for the host and also the version of the spice-vdagent package in the guest OS.

Comment 3 Frank DeLorey 2022-11-25 16:59:23 UTC
HOST:

OS Version: RHEL - 8.6 - 0.1.el8
OS Description: Red Hat Enterprise Linux 8.6 (Ootpa)
Kernel Version: 4.18.0 - 372.26.1.el8_6.x86_64
KVM Version: 6.2.0 - 11.module+el8.6.0+14712+f96656d3
LIBVIRT Version: libvirt-8.0.0-5.module+el8.6.0+14495+7194fa43
VDSM Version: vdsm-4.50.2.2-1.el8ev
SPICE Version: 0.14.3 - 4.el8

VM:

spice-vdagent-0.21.0-4.el9.x86_64

Comment 10 Victor Toso 2023-01-13 14:56:28 UTC
Bug is not reproducible when backporting merge-request 42 and 46

[0] https://gitlab.freedesktop.org/spice/linux/vd_agent/-/merge_requests/42
[1] https://gitlab.freedesktop.org/spice/linux/vd_agent/-/merge_requests/46

Moving to POST.

Comment 22 errata-xmlrpc 2023-05-16 08:41:15 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 (spice-vdagent bug fix and enhancement update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2023:2885


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