Bug 756398

Summary: spice-vdagentd can't recognize Gnome or KDE session in Fedora 17
Product: [Fedora] Fedora Reporter: David Jaša <djasa>
Component: spice-vdagentAssignee: Hans de Goede <hdegoede>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: belegdol, hdegoede, marcandre.lureau
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spice-vdagent-0.10.0-1.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-12 03:05:01 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:

Description David Jaša 2011-11-23 12:56:01 UTC
Description of problem:
Any action of spice-vdagent fails. In /var/log/spice-vdagentd/spice-vdagentd.log, there are these this line for each instance of spice-vdagent:

GetSessionForUnixProcess failed: Unable to lookup session information for process '`pidof spice-vdagent`'
GetActiveSession failed: Seat has no active session

Version-Release number of selected component (if applicable):
spice-vdagent-0.8.1-1.fc16.x86_64

How reproducible:
always

Steps to Reproduce:
1. Install spice-vdagent Fedora 17/rawhide VM that supports gnome-shell rendering via LLVMpipe
2. log in to session
3. check if there are above mentioned lines in spice-vdagentd.log
  
Actual results:
the errors are in a log, features like guest to client copy & paste do not work

Expected results:
log does not contain such errors, guest to client copy & paste works

Additional info:

Comment 1 David Jaša 2012-02-19 14:43:26 UTC
Now it can't recognize KDE session as well. This means that no spice-vdagentd features are available for Fedora 17 guests.

Comment 2 Hans de Goede 2012-02-20 10:43:34 UTC
(In reply to comment #1)
> Now it can't recognize KDE session as well. This means that no spice-vdagentd
> features are available for Fedora 17 guests.

This is expected, since F-17 no longer has ConsoleKit, and spice-vdagentd uses that to figure out to which sessions the per session spice-vdagent processes belong. So it won't work with any DE / WM in F-17. spice-vdagent needs to be updated to know how to get this same information from systemd instead. This is on my TODO since this weekend (when I learned about this myself). I'm afraid I cannot give an ETA for a fix for this atm.

Comment 3 Fedora Update System 2012-03-22 12:28:02 UTC
spice-vdagent-0.10.0-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/spice-vdagent-0.10.0-1.fc17

Comment 4 Hans de Goede 2012-03-22 12:36:30 UTC
Note that the new agent also needs some selinux-policy changes to work out of the box. For now you're advised to run with selinux set to permissive if you want to run the agent. This is being tracked in bug 805907.

Comment 5 Fedora Update System 2012-03-23 00:40:28 UTC
Package spice-vdagent-0.10.0-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing spice-vdagent-0.10.0-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-4466/spice-vdagent-0.10.0-1.fc17
then log in and leave karma (feedback).

Comment 6 Julian Sikorski 2012-03-24 11:41:33 UTC
I installed this update, alongside with selinux-policy-3.10.0-106.fc17 and now the daemon refuses to start:

# service vdagentd start
Redirecting to /bin/systemctl  start vdagentd.service
Failed to issue method call: Unit vdagentd.service failed to load: No such file or directory. See system logs and 'systemctl status vdagentd.service' for details.
[root@branched julas]# systemctl status vdagentd.service
vdagentd.service
	  Loaded: error (Reason: No such file or directory)
	  Active: inactive (dead)

Comment 7 Julian Sikorski 2012-03-24 12:00:32 UTC
Hmm, it might say it is dead but at least clipboard sharing seems to be working. Strange.

Comment 8 Hans de Goede 2012-03-26 09:46:38 UTC
(In reply to comment #6)
> I installed this update, alongside with selinux-policy-3.10.0-106.fc17 and now
> the daemon refuses to start:
> 
> # service vdagentd start
> Redirecting to /bin/systemctl  start vdagentd.service
> Failed to issue method call: Unit vdagentd.service failed to load: No such file
> or directory. See system logs and 'systemctl status vdagentd.service' for
> details.
> [root@branched julas]# systemctl status vdagentd.service
> vdagentd.service
>    Loaded: error (Reason: No such file or directory)
>    Active: inactive (dead)

Hi,

The name of the service is (and has always been): "spice-vdagentd.service", not "vdagentd.service"

Regards,

Hans

Comment 9 Fedora Update System 2012-04-12 03:05:01 UTC
spice-vdagent-0.10.0-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.