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 -%-
novnc seems to provide some info in top bar...
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.
Franto, thoughts on what is possible and what's not?
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.
Frank, Would you please review the attached tcms test case? Thanks, Ilanit.
Hi Illanit, I've just went through the test case and it looks fine. Thanks, F.
not part of vt4 # grep -IR toggleMessages /usr/share/spice-html5 # rpm -q spice-html5 spice-html5-0.1.4-1.el6.noarch
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] ~~~
improvement to the message can wait for the next maintenance releases
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/
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