TypeError in register(): on_fail() takes exactly 1 argument (2 given)

Bug #953026 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

Triggered a registration error by trying to register with an LDS server that isn't up. The broker failed after 30s, which is expected:

2012-03-12 10:58:03,845 ERROR [PoolThread-twisted.internet.reactor-1] Error contacting the server at https://ec2-107-22-16-212.compute-1.amazonaws.com/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: connect() timed out!
2012-03-12 10:58:03,845 INFO [MainThread] Message exchange failed.
2012-03-12 10:58:03,845 INFO [MainThread] Message exchange completed in 30.03s.

But then apport showed up saying ubuntu had a problem, and details show that landscape-client-settings-ui crashed:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/landscape/ui/controller/app.py", line 77, in setup_ui
    self.on_succeed, 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 91, in register
    error_handler=fail_method)
  File "/usr/lib/python2.7/dist-packages/landscape/ui/model/registration/proxy.py", line 120, in register
    error_handler(message)
TypeError: on_fail() takes exactly 1 argument (2 given)

Tags: client-ui
Geoff Teale (tealeg)
Changed in landscape-client:
status: New → In Progress
assignee: nobody → Geoff Teale (tealeg)
Changed in landscape-client:
milestone: 12.03.1 → 12.03.2
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.