RAPI: Workaround twisted failure by early import rpc
authorIustin Pop <iustin@google.com>
Wed, 30 Apr 2008 09:20:18 +0000 (09:20 +0000)
committerIustin Pop <iustin@google.com>
Wed, 30 Apr 2008 09:20:18 +0000 (09:20 +0000)
commitb33ab93bf8d700422c35216a55b9bd4b9453ba40
tree751a17c48eb8cd39d65aba10c078e223cbf682c7
parent0b485139cf563e3bee10e7229af81800bd9d4b28
RAPI: Workaround twisted failure by early import rpc

This could probably solved in a nicer way, but it seems that somehow twisted
gets imported before our rpc which overrides the default twisted reactor; or
maybe it gets imported twice or such. Anyway, importing rpc early makes the rpc
layer work.

Lest this is taken as a random thing, this can be consistently
reproduced and traces of imports are not very clear of why this happens
- nor why gnt-os works, despite having a very similar import list and
not importing rpc.

Reviewed-by: amishchenko,imsnah
daemons/ganeti-rapi