UI settings: if server is unreachable, the error isn't caught

Bug #949208 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Released
High
Geoff Teale

Bug Description

I used the UI to point my client to a local landscape deployment, on 10.0.1.11:8080. Turns out the UI tool defaults to https, which is fine, but which my server wasn't using, so it timed out eventually:

broker.log:
2012-03-07 14:33:22,291 ERROR [PoolThread-twisted.internet.reactor-1] Error contacting the server at https://10.0.1.11:8080/message-system.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/landscape/broker/transport.py", line 63, in exchange
    curly, data = self._curl(spayload, computer_id, message_api)
  File "/usr/lib/python2.7/dist-packages/landscape/broker/transport.py", line 42, in _curl
    headers=headers, cainfo=self._pubkey, curl=curl))
  File "/usr/lib/python2.7/dist-packages/landscape/lib/fetch.py", line 98, in fetch
    raise PyCurlError(e.args[0], e.args[1])
PyCurlError: Error 28: SSL connection timeout at 29938
2012-03-07 14:33:22,293 INFO [MainThread] Message exchange failed.

But another timeout is in play it seems, related to dbus. The ui settings app just crashed with this backtrace:

andreas@nsn7:~/canonical/source/landscape-client/trunk$ landscape-client-settings-ui
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/landscape/ui/controller/app.py", line 61, in setup_ui
    self.on_fail)
  File "/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.py", line 75, in persist
    self.register(on_notify, on_error, on_succeed, on_fail)
  File "/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.py", line 89, in register
    self._configuration.get_config_filename())
  File "/usr/lib/python2.7/dist-packages/landscape/ui/model/registration/proxy.py", line 111, in register
    error_handler=error_handler)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

I just verified and the UI settings app crashed before the broker reported the error.

Tags: client-ui

Related branches

description: updated
Geoff Teale (tealeg)
Changed in landscape-client:
status: New → In Progress
assignee: nobody → Geoff Teale (tealeg)
Geoff Teale (tealeg)
Changed in landscape-client:
status: In Progress → Fix Committed
Changed in landscape-client:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.