First cherry pick the patch for Transport from 2.15, update its documentation and other related transport classes.
Then add the option for omitting master checks to the RPC clients and use them in the WConfd client when appropriate. Finally, update the usage of Transport in the metadata daemon as well and add more descriptive logging when it fails to start. Petr Pudlak (9): Allow the Transport class to be used for non-master nodes Properly document all constructor arguments of Transport Add 'allow_non_master' to FdTransport for compatibility Add 'allow_non_master' to the Luxi test transport class too Add the option to disable master checks to the RPC client Add the 'allow_non_master' option to the WConfd RPC client Set up the configuration client properly on non-masters Set up the Metad client with allow_non_master When connecting to Metad fails, log the full stack trace lib/backend.py | 5 ++++- lib/config.py | 7 ++++++- lib/rapi/testutils.py | 3 ++- lib/rpc/client.py | 36 +++++++++++++++++++++++++----------- lib/rpc/transport.py | 42 +++++++++++++++++++++++++----------------- lib/wconfd.py | 7 +++++-- 6 files changed, 67 insertions(+), 33 deletions(-) -- 2.4.3.573.g4eafbef
