Bug 1211063

Summary: virt-viewer/virt-manager + spice + password auth + ssh URI doesn't work
Product: [Fedora] Fedora Reporter: Cole Robinson <crobinso>
Component: spice-gtkAssignee: Marc-Andre Lureau <marcandre.lureau>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: alon, berrange, cfergeau, djuran, hdegoede, marcandre.lureau, sandmann, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-29 23:39:01 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:

Description Cole Robinson 2015-04-12 16:41:11 UTC
$ rpm -q spice-gtk virt-viewer
spice-gtk-0.28-2.fc22.x86_64
virt-viewer-2.0-1.fc22.x86_64

$ virt-viewer --connect qemu+ssh://root@localhost/system f20
- enter password
- virt viewer shows the error:Unable to connect to the graphic server 127.0.0.1:5900

On the console there's these warnings:

(virt-viewer:16633): GSpice-WARNING **: incomplete link header (0/16)

(virt-viewer:16633): GSpice-WARNING **: incomplete link header (0/16)

100% reproducible. Also reproduces with virt-manager. Originally I thought this was a virt-manager issue and was scratching my head trying to figure out the issue. But since it affects virt-viewer too I'm guessing this is a spice-gtk bug

Works fine if connecting locally with qemu:///system + password auth

Comment 1 Christophe Fergeau 2015-04-13 10:20:15 UTC
By "password auth", do you mean you have a SPICE password set to access your VM? Or is it SSH password auth?

Comment 2 Marc-Andre Lureau 2015-04-13 10:28:45 UTC
(In reply to Christophe Fergeau from comment #1)
> By "password auth", do you mean you have a SPICE password set to access your
> VM? Or is it SSH password auth?

I can reproduce, it's the VM/spice password handling that is problematic.

Comment 3 Marc-Andre Lureau 2015-04-13 12:50:39 UTC
sent fix:
http://lists.freedesktop.org/archives/spice-devel/2015-April/019441.html

Comment 4 Marc-Andre Lureau 2015-06-29 23:39:01 UTC
f22 should have spice-gtk 0.29 with the fixes now