Commit e0a71e63 authored by Hrvoje Ribicic's avatar Hrvoje Ribicic
Browse files

Make parallel performance rename test more serial

While the rename operation still acquired the BGL lock, the parallel
performance rename test was effectively serialized. With the removal
of the BGL, the second rename fails as it hits a check for the
existence of the renamed instance before the rename is done.
This patch explicitly serializes the two operations by making them run
on success rather then submitting them almost immediately.
Signed-off-by: default avatarHrvoje Ribicic <>
Reviewed-by: default avatarKlaus Aehlig <>
parent 233228c1
......@@ -545,7 +545,7 @@ def _TestInstanceOperationInParallelToInstanceCreation(*cmds):
job_id = _ExecuteJobSubmittingCmd(cmds[cmd_idx])
job_id, running_fn=functools.partial(_SubmitNextCommand, cmd_idx + 1))
job_id, success_fn=functools.partial(_SubmitNextCommand, cmd_idx + 1))
assert qa_config.IsTemplateSupported(constants.DT_DRBD8)
assert len(cmds) > 0
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