Commit 5fdd0f88 authored by Petr Pudlak's avatar Petr Pudlak

Add a command to gnt-debug to flush the configuration

This allows to enforce it during QA tests.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 155b94be
...@@ -658,6 +658,12 @@ def Wconfd(opts, args): # pylint: disable=W0613 ...@@ -658,6 +658,12 @@ def Wconfd(opts, args): # pylint: disable=W0613
return 1 return 1
result = wconfd.Client().ListAllLocksOwners() result = wconfd.Client().ListAllLocksOwners()
print "Answer: %s" % (result,) print "Answer: %s" % (result,)
elif args[0] == "flushconfig":
if len(args) != 1:
ToStderr("Command 'flushconfig' takes no arguments.")
return 1
wconfd.Client().FlushConfig()
print "Configuration flushed."
else: else:
ToStderr("Command '%s' not supported", args[0]) ToStderr("Command '%s' not supported", args[0])
return 1 return 1
......
...@@ -154,6 +154,11 @@ A request to list all locks in use, directly or indirectly, together ...@@ -154,6 +154,11 @@ A request to list all locks in use, directly or indirectly, together
with their respective direct owners is sent to WConfd and the answer with their respective direct owners is sent to WConfd and the answer
is displayed. is displayed.
| **wconfd** flushconfig
A request to ensure that the configuration is fully distributed to the
master candidates.
.. vim: set textwidth=72 : .. vim: set textwidth=72 :
.. Local Variables: .. Local Variables:
.. mode: rst .. mode: rst
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment