From 04d3f889efeef74e8eb8d8bf330f1594913b161a Mon Sep 17 00:00:00 2001 From: Miro Tomaska Date: Wed, 15 Mar 2023 12:26:12 -0500 Subject: [PATCH] Fix metadata agent intermittent test failures Metadata agent has been experiencing intermittent failures mostly because of test conccurency and how the metadata agent code assumes its the only process running on the system and operating on the ovnmeta-* namespaces. See comment#1 the linked bug for more details. Although I dont like forcing --concurrency 1 for this test class, I think that is going to be the best solution and any new tests that will be added in the future. Closes-Bug: #2011377 Change-Id: Ie7f3b496de6b23be5739fbeba10f53602e8b300d --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index cfa2bfc39f3..34eed729558 100644 --- a/tox.ini +++ b/tox.ini @@ -79,8 +79,8 @@ setenv = {[testenv:dsvm-functional]setenv} deps = {[testenv:dsvm-functional]deps} commands = bash {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin - stestr run --exclude-regex (.*MySQL\.|.*PostgreSQL\.|.*test_get_all_devices) {posargs} - stestr run --combine --concurrency 1 (.*MySQL\.|.*PostgreSQL\.|.*test_get_all_devices) {posargs} + stestr run --exclude-regex (.*MySQL\.|.*PostgreSQL\.|.*test_get_all_devices|.*TestMetadataAgent\.) {posargs} + stestr run --combine --concurrency 1 (.*MySQL\.|.*PostgreSQL\.|.*test_get_all_devices|.*TestMetadataAgent\.) {posargs} [testenv:dsvm-fullstack] setenv = {[testenv]setenv}