Merge lp:~osomon/elisa/fix_amp_cookie_traceback into lp:elisa

Proposed by Olivier Tilloy
Status: Merged
Merged at revision: 1616
Proposed branch: lp:~osomon/elisa/fix_amp_cookie_traceback
Merge into: lp:elisa
Diff against target: 12 lines (+1/-1)
1 file modified
elisa-plugins/elisa/plugins/amp/protocol.py (+1/-1)
To merge this branch: bzr merge lp:~osomon/elisa/fix_amp_cookie_traceback
Reviewer Review Type Date Requested Status
Guillaume Emont Approve
Review via email: mp+26173@code.launchpad.net

Description of the change

This branch fixes an issue when elisa is run on top of a recent version of twisted (e.g. that of Ubuntu Lucid): lots of tracebacks are spit out on the console with the following error message: "twisted.protocols.amp.InvalidSignature: cookie is not a valid argument".

The problem had been there forever, I guess older versions of twisted were more permissive and ignored the invalid argument. The fix is trivial, too.

The careful reviewer will verify that the traceback is gone and that the unit tests for the amp plugin all pass (they were previously broken).

To post a comment you must log in.
Revision history for this message
Guillaume Emont (guijemont) wrote :

was there any bug report for this?

Revision history for this message
Olivier Tilloy (osomon) wrote :

> was there any bug report for this?

Not that I know of.

Revision history for this message
Guillaume Emont (guijemont) wrote :

It does fix the tracebacks and most of the amp unit tests, in a trivial manner.

It should be noted though that elisa.plugins.amp.tests.test_amp.UnixMasterTestCase.testSlavesPingTimeout still fails, though not all the time. This failure seems unlikely to be due to this change though, hence my approval.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'elisa-plugins/elisa/plugins/amp/protocol.py'
2--- elisa-plugins/elisa/plugins/amp/protocol.py 2009-11-09 15:44:51 +0000
3+++ elisa-plugins/elisa/plugins/amp/protocol.py 2010-05-27 13:20:59 +0000
4@@ -106,7 +106,7 @@
5 if diff < self.ping_period:
6 return
7
8- dfr = self.callRemote(Ping, cookie=self._cookie)
9+ dfr = self.callRemote(Ping)
10 self._startTimeout()
11 dfr.addCallback(self._pingCb)
12 dfr.addErrback(self._pingEb)

Subscribers

People subscribed via source and target branches