Commit cbe82289 authored by Petr Pudlak's avatar Petr Pudlak
Browse files

Flush the configuration before cluster verify

For this expose the flushing operation in Python ConfigWriter.
Signed-off-by: default avatarPetr Pudlak <>
Reviewed-by: default avatarKlaus Aehlig <>
parent 4a3a34d4
......@@ -1866,6 +1866,9 @@ class LUClusterVerifyConfig(NoHooksLU, _VerifyErrors):
self.bad = False
self._feedback_fn = feedback_fn
# Force the configuration to be fully distributed before doing any tests
feedback_fn("* Verifying cluster config")
for msg in self.cfg.VerifyConfig():
......@@ -3470,3 +3470,13 @@ class ConfigWriter(object):
" in the candidate map." % node_uuid)
del cluster.candidate_certs[node_uuid]
def FlushConfig(self):
"""Force the distribution of configuration to master candidates.
It is not necessary to hold a lock for this operation, it is handled
internally by WConfd.
if not self._offline:
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