Convert rpc module to RpcRunner
This big patch changes the call model used in internode-rpc from standalong function calls in the rpc module to via a RpcRunner class, that holds all the methods. This can be used in the future to enable smarter processing in the RPC layer itself (some quick examples are not setting the DiskID from cmdlib code, but only once in each rpc call, etc.). There are a few RPC calls that are made outside of the LU code, and these calls are left as staticmethods, so they can be used without a class instance (which requires a ConfigWriter instance). Reviewed-by: imsnah
Showing
- daemons/ganeti-masterd 2 additions, 2 deletionsdaemons/ganeti-masterd
- lib/bootstrap.py 8 additions, 7 deletionslib/bootstrap.py
- lib/cmdlib.py 149 additions, 139 deletionslib/cmdlib.py
- lib/config.py 1 addition, 1 deletionlib/config.py
- lib/jqueue.py 5 additions, 4 deletionslib/jqueue.py
- lib/mcpu.py 3 additions, 2 deletionslib/mcpu.py
- lib/rpc.py 577 additions, 527 deletionslib/rpc.py
- test/ganeti.hooks_unittest.py 3 additions, 1 deletiontest/ganeti.hooks_unittest.py
Loading
Please register or sign in to comment