From cd1823195fac3d18aa58a45c819e6e97151b0f23 Mon Sep 17 00:00:00 2001 From: Jan Gutter Date: Tue, 5 Feb 2019 14:51:49 +0200 Subject: [PATCH] Ignore some PendingDeprecationWarnings for os-vif os-vif got bumped to 1.14.0 in https://review.openstack.org/572082 and Nova is touching the VIFPortProfileOVSRepresentor class in a supported fashion until at least Train. However, that commit contributes to triggering bug 1813147 in check and gate. The warning is safe to silence and should be converted to an error in Train (once the older path is removed). Change-Id: I9d8175c78f068cf9bdad4aeba0941f6ff49a9acc Signed-off-by: Jan Gutter Related-Bug: #1813147 blueprint: generic-os-vif-offloads --- nova/tests/fixtures.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nova/tests/fixtures.py b/nova/tests/fixtures.py index 83b552c2320..4d530db0cca 100644 --- a/nova/tests/fixtures.py +++ b/nova/tests/fixtures.py @@ -843,6 +843,12 @@ def setUp(self): 'ignore', message='Evaluating non-mapped column expression', category=sqla_exc.SAWarning) + # TODO(jangutter): Change (or remove) this to an error during the Train + # cycle when the os-vif port profile is no longer used. + warnings.filterwarnings( + 'ignore', message=".* 'VIFPortProfileOVSRepresentor' .* " + "is deprecated", category=PendingDeprecationWarning) + self.addCleanup(warnings.resetwarnings)