Add support and checks for version in LUXI
A new constant, LUXI_VERSION, is used to verify the peer's version. The version is optional, so old(er) clients and servers talking to peers not supporting it won't break. Example with mismatching library: $ gnt-instance list Unhandled Ganeti error: LUXI version mismatch, server 2020000, request 1010000 Signed-off-by:Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
Showing
- daemons/ganeti-masterd 6 additions, 1 deletiondaemons/ganeti-masterd
- doc/walkthrough.rst 19 additions, 0 deletionsdoc/walkthrough.rst
- lib/constants.py 1 addition, 0 deletionslib/constants.py
- lib/luxi.py 22 additions, 8 deletionslib/luxi.py
- test/ganeti.luxi_unittest.py 141 additions, 2 deletionstest/ganeti.luxi_unittest.py
Loading
Please register or sign in to comment