Browse Source

Use eventlet executor in rpc_service

The default executor of o.m is 'blocking', but after change [1],
o.m with blocking is broken. 'eventlet' and 'non-blocking' work
fine and most services use 'eventlet', so this is why it was
noticed by magnum which used the default one.

Use eventlet to not be affected by bug #1694728 , but more
importantly, the oslo team suggests to not use blocking which
has 0% test coverage and it is going to be deprecated and unset
from the default configuration.

[1] https://review.openstack.org/#/c/463673/

Change-Id: I47da73787456c97f7d84fd4440404b551ff62528
Closes-Bug: #1694728
(cherry picked from commit bd69b3fff6)
tags/mitaka-eol^0
Spyros Trigazis (strigazi) 2 years ago
parent
commit
a9c642af0c
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      magnum/common/rpc_service.py

+ 1
- 0
magnum/common/rpc_service.py View File

@@ -66,6 +66,7 @@ class Service(service.Service):
66 66
         # TODO(asalkeld) add support for version='x.y'
67 67
         target = messaging.Target(topic=topic, server=server)
68 68
         self._server = messaging.get_rpc_server(transport, target, handlers,
69
+                                                executor='eventlet',
69 70
                                                 serializer=serializer)
70 71
         self.binary = binary
71 72
 

Loading…
Cancel
Save