Bug 33963 - Tracebacks in UVMM
Tracebacks in UVMM
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Virtual machines (UVMM)
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 4.0-0-errata
Assigned To: Florian Best
Erik Damrose
:
: 24776 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-21 21:56 CET by Dirk Wiesenthal
Modified: 2015-02-04 15:56 CET (History)
7 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Error handling, External feedback, Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2014-01-21 21:56:05 CET
There are tracebacks in UVMM that may be explained a bit more in detail what went wrong. Tracebacks give very weak user experience.


File "/usr/lib/pymodules/python2.6/notifier/threads.py", line
82, in _run
tmp = self._function()
File "/usr/lib/pymodules/python2.6/notifier/__init__.py", line
104, in __call__
return self._function( *tmp, **self._kwargs )
File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/uvmm/uvmmd.py",

line 84, in request
raise UVMM_Error(str(ex))

UVMM_Error: Could not open socket "/var/run/uvmm.socket": 111


======================================


 Traceback:
  File "/usr/lib/pymodules/python2.6/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.6/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/uvmm/uvmmd.py",
line 84, in request
    raise UVMM_Error(str(ex))

UVMM_Error: Error while waiting for answer: 104


=================


See also Bug #33748
Comment 1 Philipp Hahn univentionstaff 2014-01-22 09:43:42 CET
(In reply to Dirk Wiesenthal from comment #0)
> There are tracebacks in UVMM that may be explained a bit more in detail what
> went wrong.
...
> File "/usr/lib/pymodules/python2.6/univention/management/console/modules/uvmm/uvmmd.py", line 84, in request
> raise UVMM_Error(str(ex))
> UVMM_Error: Could not open socket "/var/run/uvmm.socket": 111

The UMC-Middle-End-Python-Module is unable to talk to the UVMMd-Python-Backend.
This can be caused by UVMMd no longer be running or a performance problem, as I just encountered with Bug #33458.

>   File "/usr/lib/pymodules/python2.6/univention/management/console/modules/uvmm/uvmmd.py", line 84, in request
>     raise UVMM_Error(str(ex))
> UVMM_Error: Error while waiting for answer: 104

Same category: Something went wrong with IPC. "Maybe UVMMd needs to be restarted?" Most probably caused by "Bug #33741" not doing its job right.
Comment 2 Dirk Wiesenthal univentionstaff 2014-04-29 10:34:21 CEST
First one (UVMM_Error: Could not open socket "/var/run/uvmm.socket": 111) happened again. Reported via traceback feedback.
Comment 3 Dirk Wiesenthal univentionstaff 2014-04-29 10:52:29 CEST
(In reply to Dirk Wiesenthal from comment #2)
> First one (UVMM_Error: Could not open socket "/var/run/uvmm.socket": 111)
> happened again. Reported via traceback feedback.

But 3.2-0 errata16 (Borgfeld)... maybe actually fixed with Bug #33458?
Comment 4 Florian Best univentionstaff 2014-07-14 17:20:05 CEST
*** Bug 24776 has been marked as a duplicate of this bug. ***
Comment 5 Dirk Wiesenthal univentionstaff 2014-09-02 12:46:43 CEST
Reported again (the "Could not open socket" traceback). Means that it is not fixed yet.
Comment 6 Florian Best univentionstaff 2014-10-06 10:04:39 CEST
reported again:
UVMM_Error: Could not open socket "/var/run/uvmm.socket": 111
Remark:
when i control my slave UCS in virtualization it get not responding
Comment 7 Florian Best univentionstaff 2014-10-06 10:23:44 CEST
Also "UVMM_Error: Error while waiting for answer: 104" was reported again.
Comment 8 Stefan Gohmann univentionstaff 2014-10-11 08:26:52 CEST
I was able to reproduce it in the following way:
 - install UVMMd
 - open the module and create a EC2 connection
 - let the module open and restart the uvmmd process via the system services module

I got this traceback:

  File "/usr/lib/pymodules/python2.7/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.7/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/uvmm/uvmmd.py", line 84, in request
    raise UVMM_Error(str(ex))

UVMM_Error: Could not open socket "/var/run/uvmm.socket": 2
Comment 9 Ingo Steuwer univentionstaff 2014-11-14 08:12:11 CET
I had the first traceback. Steps were:
* browser had an old UMC session (>8 hours) displaying the menu
* click on the UVMM module opened the module and the authentication window
* after authentication the traceback appeared

UCS 4.0 RC
Comment 10 Florian Best univentionstaff 2014-11-14 13:52:28 CET
>>> os.strerror(2)
'No such file or directory'
>>> os.strerror(104)
'Connection reset by peer'
>>> os.strerror(111)
'Connection refused'
Comment 11 Florian Best univentionstaff 2014-11-20 12:48:48 CET
Reported again.
Comment 12 Florian Best univentionstaff 2014-12-01 09:41:40 CET
Reported with UCS 4.0:
UVMM_Error: Could not open socket "/var/run/uvmm.socket": 2
Comment 13 Florian Best univentionstaff 2014-12-08 11:06:23 CET
errno 2 reported again with 4.0-0 errata10 (Walle).
Comment 14 Florian Best univentionstaff 2014-12-08 11:40:05 CET
(In reply to Florian Best from comment #13)
> errno 2 reported again with 4.0-0 errata10 (Walle).
twice
Comment 15 Florian Best univentionstaff 2014-12-15 10:02:09 CET
Reported: 4.0-0 errata0 (Walle)
Comment 16 Florian Best univentionstaff 2014-12-16 10:51:54 CET
The ideal solution would be to display the servers / VM's as "not available" when this error occurs.
Comment 17 Erik Damrose univentionstaff 2014-12-16 11:04:37 CET
(In reply to Florian Best from comment #16)
> The ideal solution would be to display the servers / VM's as "not available"
> when this error occurs.

I do not think that this is ideal. If a server is down it is currently shown as 'not available'. To fix the problem i would debug the problem on that server.

If all servers are shown as offline i would think of it as a network problem.

We should show the error - the module could not connect to the local uvmm daemon - explicitly. Suggestion: Show an otherwise hidden widget above the tree and grid, do not show anything in the tree+grid.
Comment 18 Florian Best univentionstaff 2015-01-09 09:39:34 CET
Reported again, 4.0-0 errata21 (Walle)
Comment 19 Florian Best univentionstaff 2015-01-22 10:24:00 CET
Reported again, 4.0-0 errata41 (Walle)
Comment 20 Florian Best univentionstaff 2015-02-02 09:17:47 CET
Reported again, 4.0-0 errata21 (Walle)
Comment 21 Florian Best univentionstaff 2015-02-02 13:55:22 CET
Errno 2, 111 and 104 are now handled by displaying a human readable error message.

Fix: svn r57705
YAML: 2015-02-02-univention-virtual-machine-manager-daemon.yaml
Package: univention-virtual-machine-manager-daemon
Version: 4.0.23-1.577.201502021347
Comment 22 Erik Damrose univentionstaff 2015-02-03 10:40:19 CET
This is a great user experience improvement.

As discussed, one thing though: If the UMC module is opened if uvmmd is not running, the tree stays in an endless loading loop, even if uvmmd is started. A reload of the tree should be done if the connection to uvmmd comes back.
Comment 23 Florian Best univentionstaff 2015-02-03 13:02:28 CET
I added some workarounds / tree reloading for that case. It's currently not possible to do this automatically in every case. Package builds.
Comment 24 Erik Damrose univentionstaff 2015-02-03 14:18:40 CET
Reopen: As discussed, there are still some issues with the tree not reloading properly when clicking on the search button
Comment 25 Florian Best univentionstaff 2015-02-03 15:06:53 CET
Well, okay. I now reload the tree everytime after a successful search if it is empty.
Comment 26 Erik Damrose univentionstaff 2015-02-03 16:18:39 CET
OK: Error message
OK: Tree reload
OK: r57705, r57733, r57736, r57738
Fixed: yaml (r57740)
Verified
Comment 27 Janek Walkenhorst univentionstaff 2015-02-04 15:56:15 CET
<http://errata.univention.de/ucs/4.0/74.html>