Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1038632 - PRD35 - [RFE] [spice-html5] spice-html5 js client is dumb: no error about network connection issue
PRD35 - [RFE] [spice-html5] spice-html5 js client is dumb: no error about net...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: RFEs (Show other bugs)
3.3.0
Unspecified Unspecified
unspecified Severity medium
: ---
: 3.5.0
Assigned To: Frantisek Kobzik
Ilanit Stein
virt
: FutureFeature
Depends On: 1108599
Blocks: rhev3.5beta 1149261 1156165
  Show dependency treegraph
 
Reported: 2013-12-05 09:23 EST by Jiri Belka
Modified: 2015-09-06 06:52 EDT (History)
17 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
This enhancement adds a button to the SPICE-HTML5 page and allows users to display console debug information when needed.
Story Points: ---
Clone Of:
: 1108599 1149261 (view as bug list)
Environment:
Last Closed: 2015-02-11 12:56:28 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
sherold: Triaged+


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 26984 None None None Never
Red Hat Product Errata RHSA-2015:0158 normal SHIPPED_LIVE Important: Red Hat Enterprise Virtualization Manager 3.5.0 2015-02-11 17:38:50 EST

  None (edit)
Description Jiri Belka 2013-12-05 09:23:44 EST
Description of problem:

I would expect that enteprise tool would tell users that something is wrong when user uses it and don't see expected behavious.

* spice-html5 JS console is dumb, when ovirt-websocket-proxy is not running the JS code does not show any error, the user just see dark gray rectangle and that all.

* when there is no connection between ovirt-websocket-proxy and host there is also no error, just again dark gray rectangle.

Some error should be seen.

Version-Release number of selected component (if applicable):
is25/spice-html5-0.1.4-1.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. do not start ovirt-websocket-proxy and open spice-html5 console
2. block connection between server hosting ovirt-websocket-proxy to host's ports 5634:6166
3.

Actual results:
spice-html5 is dumb, no error to the user

Expected results:
1. should be easy
2. server part should also do some logic and tell JS client there's network issue to host

Additional info:
it is spice-html5 but as it is part of RHEVM which sells this feature :)

part about ovirt-websocket-proxy -> host network issue:

-%-
  1: 10.34.131.48: Path: '/eyJ2YWxpZFRvIjoiMjAxMzEyMDUxNDE4MDAiLCJkYXRhIjoiJTdCJTIyaG9zdCUyMjolMjIxMC4zNC42My4yMjIlMjIsJTIycG9ydCUyMjolMjI1OTAzJTIyLCUyMnNzbF90YXJnZXQlMjI6dHJ1ZSU3RCIsInZhbGlkRnJvbSI6IjIwMTMxMjA1MTQxNjAwIiwic2lnbmVkRmllbGRzIjoidmFsaWRUbyxkYXRhLHZhbGlkRnJvbSxzYWx0Iiwic2lnbmF0dXJlIjoicHJvYUNUVDQ2b0VkdlE1VFhqMFE1QjFkTFN3MElId0Z4b1IreHNNcEJCd2xheWRDclQwQ0RRU3JGbTdoSGFNYW5xZm9VNXFidnJTUVRXWFhkNSs4Sk5VVnliYWFLMStML2VvdnlweWI4cTRmR0pyRHp0QmU0Y3hiTG5EQVhTQ2tzVmxjYkhUVGNzRFBaajNoaHdoVUIvWTN4SC9UQiswYm5ueUR6RmY0WDNLMmkwRXFSSGwyQzU2cXFNRVJ0azRiajJTVlZxWVJ5elIwaERVQ2Y5UHhUYXdtb05qQng5OVUyRExvOU1sSUVuUllCcGRoMGljWThwK3I0RGFDWjZyNVJQUFhKbkh4bnFobXE0azBKNEdqc1dZaVB3a0pIVm5tSjI0OUQ5a2ZNVkc4SG9YOWlITmRnSEdLNW5IV1JsTEJhRHVIdTBiWEhRL2xBV3lyNUZVRTJ3PT0iLCJzYWx0IjoiY2NnT2s5TFRRR2M9In0='
  1: connecting to: 10.34.63.222:5903 (using SSL)
  1: handler exception: [Errno 111] Connection refused
  1: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/websockify/websocket.py", line 797, in top_new_client
    self.new_client()
  File "/usr/lib/python2.6/site-packages/websockify/websocketproxy.py", line 183, in new_client
    connect=True, use_ssl=self.ssl_target, unix_socket=self.unix_target)
  File "/usr/lib/python2.6/site-packages/websockify/websocket.py", line 193, in socket
    sock.connect(addrs[0][4])
  File "<string>", line 1, in connect
error: [Errno 111] Connection refused
-%-
Comment 1 Jiri Belka 2013-12-05 09:24:53 EST
novnc seems to provide some info in top bar...
Comment 2 Omer Frenkel 2013-12-11 04:22:43 EST
this component is not really owned by ovirt, i am not sure how easy it would be to get the error and display something meaningful, or if even possible.
Comment 4 Michal Skrivanek 2014-01-31 04:14:28 EST
Franto, thoughts on what is possible and what's not?
Comment 6 Frantisek Kobzik 2014-02-04 08:22:20 EST
We can actually make the spice-html5 console visible (the drawback is the console shows a lot of unrelated information), or at least add a button that makes it visible.
Comment 8 Ilanit Stein 2014-07-06 08:48:49 EDT
Frank,

Would you please review the attached tcms test case?

Thanks,
Ilanit.
Comment 9 Frantisek Kobzik 2014-07-17 06:29:00 EDT
Hi Illanit,

I've just went through the test case and it looks fine.

Thanks,
F.
Comment 11 Jiri Belka 2014-09-25 10:25:32 EDT
not part of vt4

# grep -IR toggleMessages /usr/share/spice-html5
# rpm -q spice-html5
spice-html5-0.1.4-1.el6.noarch
Comment 12 Jiri Belka 2014-09-25 10:32:39 EDT
oops, ignore #11.

# grep -IR toggleMessage /usr/share/ovirt-engine
/usr/share/ovirt-engine/engine.ear/services.war/spicehtml5-main.html:            function toggleMessages() {
/usr/share/ovirt-engine/engine.ear/services.war/spicehtml5-main.html:            <button type="button" onclick="toggleMessages()">

# rpm -qf /usr/share/ovirt-engine/engine.ear/services.war/spicehtml5-main.html
rhevm-backend-3.5.0-0.13.beta.el6ev.noarch

anyway following error is not enough:

~~~
>> WebSockets.onerror[object Event]

[object Event]
~~~
Comment 13 Michal Skrivanek 2014-09-29 10:31:12 EDT
improvement to the message can wait for the next maintenance releases
Comment 16 Ilanit Stein 2014-10-29 09:28:17 EDT
Verified on vt7:

1. Stop ovirt-websocket-proxy and open spice-html5 console
Give error:
>> WebSockets.onerror[object Event]
[object Event]
2. block connection between server hosting ovirt-websocket-proxy to host by:
iptables -I OUTPUT -p tcp -d < host running the VM ip > -j REJECT
When trying to open the spice-html5 console there an operation cancelled window opens with the error: 
Error while executing action SetVmTicket: Network error during communication with the Host.

Also marked the relevant tcms case as passed:
https://tcms.engineering.redhat.com/run/163771/
Comment 19 errata-xmlrpc 2015-02-11 12:56:28 EST
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.

https://rhn.redhat.com/errata/RHSA-2015-0158.html

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