Bug 1139219

Summary: [spice-xpi] spice-xpi doesn't work with Firefox 31
Product: Red Hat Enterprise Linux 6 Reporter: Jiri Belka <jbelka>
Component: spice-xpiAssignee: Christophe Fergeau <cfergeau>
Status: CLOSED WORKSFORME QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.5CC: cfergeau, dblechte, ecohen, gklein, jbelka, marcandre.lureau, mkrcmari, rbalakri, stransky, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1140650 (view as bug list) Environment:
Last Closed: 2014-09-15 10:40:35 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:
Bug Depends On: 1113862    
Bug Blocks: 1043430, 1140650    
Attachments:
Description Flags
spice-xpi.log none

Description Jiri Belka 2014-09-08 12:29:58 UTC
Created attachment 935325 [details]
spice-xpi.log

Description of problem:
While testing upcoming ESR Firefox 31 I see spice-xpi doesn't work anymore.

Version-Release number of selected component (if applicable):
spice-xpi-2.7-25.el6.x86_64
firefox-31.0-4.el6_5.x86_64

How reproducible:
100%

Steps to Reproduce:
1. have firefox 31
2. open console via spice-xpi
3.

Actual results:
doesn't work

Expected results:
should work

Additional info:

Comment 2 Marc-Andre Lureau 2014-09-08 13:27:00 UTC
How can we get ESR Firefox 31 ?

From the log it looks like it is working, the client was started and connection established. So it could be an unrelated spice connection issue.

Comment 3 Jiri Belka 2014-09-08 13:44:11 UTC
http://download.eng.bos.redhat.com/brewroot////packages/firefox/

spice-xpi works fine with ff 24.x using same RHEVH setup.

Comment 9 Martin Stransky 2014-09-11 10:43:02 UTC
Hm, even the spice-xpi from RHEL6 (spice-xpi-2.7-25) works fine with FF31 when it's rebuild on Fedora. Seems to be something RHEL6 specific and/or we need to rebuild the plugin with the latest FF on RHEL6.

Comment 10 Martin Stransky 2014-09-11 11:34:03 UTC
Works for me on RHEL6, i686 box, FF31 and spice-xpi-2.7-25.el6.i686. Please make sure you have the spice plugin enabled in about:plugins.

Comment 11 Christophe Fergeau 2014-09-11 11:55:38 UTC
NB: Martin's testing has been done through https://teuf.fedorapeople.org/plugins/test.html if I'm not mistaken.
The test page works fine for me too as long as I make sure to enable the spice-xpi plugin (there's an info bar showing up at the top of the webpage to enable that).

When testing in rhev34, I've seen some issues with one VM, it seems no host/port get set on the spice-xpi plugin js object by the user portal. Another VM works just fine on the same session.

If the test page works fine, but there are more issues with the user portal, I'll need help to figure out  the user portal javascript.

Comment 12 Martin Stransky 2014-09-11 12:00:39 UTC
I guess we also should enable the spice-xpi plugin by default in Firefox. I'm investigating this possibility.

But please note that NPAPI plugins are going to be removed from Firefox soon. The next Firefox ESR version (Firefox 38) may not support them, the spice-xpi should be rewritten as an extension.

Comment 14 Jiri Belka 2014-09-11 13:39:49 UTC
I contacted Christophe via mail, he confirmed seeing some issues on my RHEVM setup as well.

Comment 15 Christophe Fergeau 2014-09-11 14:52:46 UTC
Sorry but you haven't tested any of the things I asked you to test (test page, or trying with an ovirt account where 2 VMs are running so that you can check if it fails for all of them or just one). If it's not working for you with the test page for example, then you are most likely seeing a different bug.

Comment 16 Tomas Pelka 2014-09-11 20:26:26 UTC
spice-xpi is working for me with firefox-31.1.0-5.el6_5

Comment 17 Jiri Belka 2014-09-15 08:58:05 UTC
even spice-xpi test page doesn't work for me, i see popup to allow spice but then nothing:

log: timestamp	message
Mon Sep 15 2014 10:32:02 GMT+0200 (CEST): 	Body Load
Mon Sep 15 2014 10:53:05 GMT+0200 (CEST): 	USB Filter String set to: ''
Mon Sep 15 2014 10:53:05 GMT+0200 (CEST): 	Disconnected, return code: 1
Mon Sep 15 2014 10:53:05 GMT+0200 (CEST): 	Connect: host '10.34.63.223', port '5900', secure port '5901', USB port ''
Mon Sep 15 2014 10:53:17 GMT+0200 (CEST): 	Show
Mon Sep 15 2014 10:53:21 GMT+0200 (CEST): 	USB Filter String set to: ''
Mon Sep 15 2014 10:53:21 GMT+0200 (CEST): 	Disconnected, return code: 1
Mon Sep 15 2014 10:53:21 GMT+0200 (CEST): 	Connect: host '10.34.63.223', port '5900', secure port '5901', USB port ''
Mon Sep 15 2014 10:53:59 GMT+0200 (CEST): 	USB Filter String set to: ''
Mon Sep 15 2014 10:53:59 GMT+0200 (CEST): 	Disconnected, return code: 1
Mon Sep 15 2014 10:53:59 GMT+0200 (CEST): 	Connect: host '10.34.63.223', port '5900', secure port '5901', USB port ''
Mon Sep 15 2014 10:54:30 GMT+0200 (CEST): 	Connected status = 1
Mon Sep 15 2014 10:54:33 GMT+0200 (CEST): 	Show
Mon Sep 15 2014 10:54:35 GMT+0200 (CEST): 	USB Filter String set to: ''
Mon Sep 15 2014 10:54:35 GMT+0200 (CEST): 	Disconnected, return code: 1
Mon Sep 15 2014 10:54:35 GMT+0200 (CEST): 	Connect: host '10.34.63.223', port '5900', secure port '5901', USB port ''

my .vv file was:

[virt-viewer]
type=spice
host=10.34.63.223
port=5900
password=WwYa4HA4kfKj
# Password is valid for 120 seconds.
tls-port=5901
fullscreen=0
title=b:%d - Press SHIFT+F12 to Release Cursor
enable-smartcard=0
enable-usb-autoshare=1
delete-this-file=1
usb-filter=-1,-1,-1,-1,0
tls-ciphers=DEFAULT
host-subject=O=rhev.lab.eng.brq.redhat.com,CN=10.34.63.223
ca=-----BEGIN CERTIFICATE-----\nMIIEMDCCAxigAwIBAgICEAAwDQYJKoZIhvcNAQEFBQAwajELMAkGA1UEBhMCVVMxJDAiBgNVBAoT\nG3JoZXYubGFiLmVuZy5icnEucmVkaGF0LmNvbTE1MDMGA1UEAxMsamItcmhldm0zNS5yaGV2Lmxh\nYi5lbmcuYnJxLnJlZGhhdC5jb20uNTQ1ODcwIhcRMTQwOTA0MDcxNDM3KzAwMDAXDTI0MDkwMjA3\nMTQzN1owajELMAkGA1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yKfOECCVjlFZtspovgoQjl/53dEXkE5l9T9buhYnZvk/B1ARMrUNszZl+TFpd\nBKmrbZY/Y5cabfemqHQmO36Wj+p90gga0IHKf4F5qz4ob1cyYwsonLuZOglBUWbUMtc=\n-----END CERTIFICATE-----\n
toggle-fullscreen=shift+f11
release-cursor=shift+f12
secure-attention=ctrl+alt+end
secure-channels=main;inputs;cursor;playback;record;display;usbredir;smartcard

fyi - your 'it works' is very vague. i stated i use 64bit rhel, from #16 is not clear what platform is that.

Comment 18 Jiri Belka 2014-09-15 09:07:22 UTC
i don't get it, i did 'setenforce 0', tried again, it worked, i did 'setenforce 1' and tried again (expecting it  won't work) and it worked even on test page.

Comment 19 Christophe Fergeau 2014-09-15 09:55:50 UTC
When using spice-xpi, you do not need a .vv file, spice-xpi and .vv file are mutually exclusive (if you use one to access a vm, the other mechanism is not used at all)

Comment 20 Christophe Fergeau 2014-09-15 09:57:08 UTC
If the test page does not work for you at some point, I'd be interested in seeing errors from the javascript console (if any). You can access it from the Tools/Web development menu.

Comment 21 Jiri Belka 2014-09-15 10:40:35 UTC
works for me after reboot, something odd with my rhel then.

Comment 22 Jiri Belka 2014-09-18 13:29:38 UTC
Well well well... mkrcmari told me, it's not working sometimes even for him. Any details?

Comment 23 Marian Krcmarik 2014-09-29 11:06:40 UTC
(In reply to Jiri Belka from comment #22)
> Well well well... mkrcmari told me, it's not working sometimes even for him.
> Any details?

The support for old exension was enabled in RHEl builds of firefox which solved the issue.