Drag-and-drop for files from client to guest stops work for second session.
Client: RHEL7/Win7 (doesn't matter).
How reproducible: always.
Steps to Reproduce:
1. Have a RHEL 6.9.z guest VM.
2. Start the VM.
3. Connect to the VM with remote-viewer.
3. Test that D-n-D works well. Drop some file from client to guest.
4. Close remote-viewer.
5. Open a new session with remote-viewer to the same VM.
6. Drop some file from client to guest.
Result: D-n-D doesn't work any more.
The i686 version is not exposed to this bug.
Created attachment 1239956 [details]
Hi, the agent relies on console kit about getting the info about the locked session (to avoid copying when the machine is locked - bug 1323630)
Are there any modification related to locking the session?
Console kit is the same for x64 and i686 ? The agent code is not taking into account the arch.
After installing ovirt-guest-agent I can reproduce the bug on i686 guest.
(In reply to Andrei Stepanov from comment #3)
> After installing ovirt-guest-agent I can reproduce the bug on i686 guest.
Does it have any logs ? Probably it is somehow locking the session & confusing our agent
Created attachment 1240024 [details]
ovirt guest agent log
Andrei, did you make any modification related to session locking?
1. I have installed completely new&fresh RHEL6.9(beta). Manually.
2. No additional steps were made. (User has password).
3. Install ovirt-guest-agent. Reboot VM.
After above steps the bug is reproducible.
Can you please get DEBUG level for the ovirt agent logs - I can see only "lock" session/screen events there and no unlock. That may explain why spice agent things that:
Jan 12 14:25:02.626900 spice-vdagentd: debug: (console-kit) session is locked: yes
Jan 12 14:25:02.626924 spice-vdagentd: debug: Session is locked, skipping file-xfer-start
Jan 12 14:25:02.626925 spice-vdagentd: warning: User's session is locked and cannot start file transfer. Cancelling client file-xfer request 2
Created attachment 1240379 [details]
Log for ovirt guest agent. With DEBUG level.
Next log was received with next modification to:
agent = OVirtAgentDaemon()
This bug is NOT reproducible on: Windows 7 64bit guest system with up&running:
spice-vdagent + OVirtGuestService
# rpm -qf /usr/share/rhev-guest-tools-iso/RHEV-toolsSetup_4.1_3.iso --changelog | head
* Thu Dec 22 2016 Lev Veyde <firstname.lastname@example.org> 4.1-3
- Updates: rhev-agent-msi-4.41-1 rhev-balloon-msi-4.41-1 rhev-vioscsi-msi-4.41-1
rhev-block-msi-4.41-1 rhev-network-msi-4.41-1 rhev-serial-msi-4.41-1
rhev-spice-agent-msi-4.41-1 rhev-spice-guest-msi-4.41-1 rhev-sso-msi-4.41-1
rhev-rng-msi-4.41-1 qemu-ga-msi-4.41-1 rhev-apt-4.41-1
- Based on: rhev-agent-binaries-4.41-1 virtio-win-1.9.0-3.el7 vdagent-win-4.1-1
This bug is NOT reproducible on: current RHEL 7 guest system with up&running:
Patch posted: https://lists.freedesktop.org/archives/spice-devel/2017-January/035000.html
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, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.