opennode/opennode-management — Issue #145: unhandled error in deferred sync_hw
Author: mmikulicic
Created: 2012-03-08 16:43:58+00:00
State: open
Labels: bug

```

(debug: C: Deferred was created:
C: File "/usr/local/pythonbrew/pythons/Python-2.7.2/lib/python2.7/threading.py", line 525, in __bootstrap
C: self.__bootstrap_inner()
C: File "/usr/local/pythonbrew/pythons/Python-2.7.2/lib/python2.7/threading.py", line 552, in __bootstrap_inner
C: self.run()
C: File "/usr/local/pythonbrew/pythons/Python-2.7.2/lib/python2.7/threading.py", line 505, in run
C: self.__target(*self.__args, **self.__kwargs)
C: File "/media/psf/opennode-knot/opennode/knot/backend/func/__init__.py", line 104, in spawn_thread
C: deferred.callback(res)
C: File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 362, in callback
C: self._startRunCallbacks(result)
C: File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 458, in _startRunCallbacks
C: self._runCallbacks()
C: File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 545, in _runCallbacks
C: current.result = callback(current.result, *args, **kw)
C: File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1095, in gotResult
C: _inlineCallbacks(r, g, deferred)
C: File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1039, in _inlineCallbacks
C: result = g.send(result)
C: File "/media/psf/opennode-knot/opennode/knot/backend/func/compute.py", line 231, in sync_hw
C: self._sync_hw(info, disk_info('total'), disk_info('used'), routes, uptime)
C: File "/media/psf/opennode-management/opennode/oms/zodb/db.py", line 136, in wrapper
C: lambda: run_in_tx(fun, *args, **kwargs))
C: File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/internet/threads.py", line 41, in deferToThreadPool
C: d = defer.Deferred()
I: First Invoker was:
I: File "bin/omsd", line 70, in
I: opennode.oms.daemon.run()
I: File "/media/psf/opennode-management/opennode/oms/daemon.py", line 138, in run
I: autoreload.main(run_app)
I: File "/media/psf/opennode-management/opennode/utils/autoreload.py", line 148, in main
I: reloader(main_func, args, kwargs, **more_options)
I: File "/media/psf/opennode-management/opennode/utils/autoreload.py", line 120, in python_reloader
I: main_func(*args, **kwargs)
I: File "/media/psf/opennode-management/opennode/oms/daemon.py", line 75, in run_app
I: twistd._SomeApplicationRunner(config).run()
I: File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 390, in run
I: self.postApplication()
I: File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/scripts/_twistd_unix.py", line 209, in postApplication
I: self.startReactor(None, self.oldstdout, self.oldstderr)
I: File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 402, in startReactor
I: self.config, oldstdout, oldstderr, self.profiler, reactor)
I: File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 323, in runReactorWithLogging
I: reactor.run()
I: File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/internet/base.py", line 1169, in run
I: self.mainLoop()
I: File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/internet/base.py", line 1178, in mainLoop
I: self.runUntilCurrent()
I: File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/internet/base.py", line 773, in runUntilCurrent
```