With the recent changes, opportunistic locking should not require retries any more on clusters that have enough capacity. So it is fair to add the --opportunistic-locking option the parallel instance creation tests. In this way, we - verify that the absence of the need to retry is indeed true and - get a realistic performance measurement for truly parallel instance creation.
Signed-off-by: Klaus Aehlig <[email protected]> Reviewed-by: Hrvoje Ribicic <[email protected]> Cherry-picked from 37d6f7f5f7ebfc3f40b70c28930a99045aa1cd01. Signed-off-by: Klaus Aehlig <[email protected]> --- qa/qa_performance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/qa_performance.py b/qa/qa_performance.py index dc49d7d..9d1797a 100644 --- a/qa/qa_performance.py +++ b/qa/qa_performance.py @@ -235,7 +235,7 @@ def _SubmitInstanceCreationJob(instance, disk_template=None): if disk_template is None: disk_template = qa_config.GetDefaultDiskTemplate() try: - cmd = (["gnt-instance", "add", "--submit", + cmd = (["gnt-instance", "add", "--submit", "--opportunisitic-locking", "--os-type=%s" % qa_config.get("os"), "--disk-template=%s" % disk_template] + GetGenericAddParameters(instance, disk_template)) -- 2.0.0.526.g5318336
