diff --git a/rallytester/conf/regex.py b/rallytester/conf/regex.py index 0ea76caa74fa53826558c72481810fe93b5bd6f7..133a835914744e190b2ec014ae68239616bbefb0 100644 --- a/rallytester/conf/regex.py +++ b/rallytester/conf/regex.py @@ -14,6 +14,7 @@ enabled_regex = cfg.ListOpt( 'id_rally_replace', 'req_replace', 'long_id_replace', + 'migration', 'resource_replace', 'quota_exceeded', 'rally_tired', @@ -66,6 +67,7 @@ regex_dict = cfg.DictOpt( "id_rally_replace": "rally\\-([\\w\\-]{8,})", "req_replace": "req-[\\w\\-\\:]{12,}", "long_id_replace": "([a-f0-9]{32}|[a-f0-9\\-]{36})", + "migration": "(.*)(Migration failed)(.*)(change host)(.*)", "resource_replace": "Resource [a-z0-9\\-]{15,}", "resource_limit": "(.*)(Resource limit exceeded: .* per project)(.*)", "quota_exceeded": "Requested [0-9]*, [0-9]*, but already used [0-9]*," @@ -93,6 +95,7 @@ substitution_dict = cfg.DictOpt( "id_rally_replace": "rally-xyz", "req_replace": "req-xyz", "long_id_replace": "xyz", + "migration": "migration failed", "resource_replace": "Resource xyz", "resource_limit": "\\2", "quota_exceeded": "Requested .....", diff --git a/rallytester/tests/test_trimmer.py b/rallytester/tests/test_trimmer.py index 66e5e6526ded3b0226e7de8d5814f6855d594b5b..b8c4cd5664f13eaaef7554e05c9b62937daea6cb 100644 --- a/rallytester/tests/test_trimmer.py +++ b/rallytester/tests/test_trimmer.py @@ -96,6 +96,11 @@ class TestMsgTrimmer(unittest.TestCase): "req-xyz)", "Resource limit exceeded: You have reached the maximum clusters " "per project" + ), ( + "migration", + "Live Migration failed: Migration complete but " + "instance did not change host: i66366241007557.cern.ch", + "migration failed" ) ]) def test_regex(self, testname, message, result):