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 <>
Reviewed-by: default avatarKlaus Aehlig <>
parent 155b94be
......@@ -658,6 +658,12 @@ def Wconfd(opts, args): # pylint: disable=W0613
return 1
result = wconfd.Client().ListAllLocksOwners()
print "Answer: %s" % (result,)
elif args[0] == "flushconfig":
if len(args) != 1:
ToStderr("Command 'flushconfig' takes no arguments.")
return 1
print "Configuration flushed."
ToStderr("Command '%s' not supported", args[0])
return 1
......@@ -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
is displayed.
| **wconfd** flushconfig
A request to ensure that the configuration is fully distributed to the
master candidates.
.. vim: set textwidth=72 :
.. Local Variables:
.. 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