From 47fc69ba2c8f5ba54a3ff8af6289e6d1300e572f Mon Sep 17 00:00:00 2001 From: Telles Nobrega Date: Thu, 17 Jan 2019 10:56:50 -0300 Subject: [PATCH] Migrate away from oslo_i18n.enable_lazy() The method is known to be problematic, and it is going to be deprecated: http://lists.openstack.org/pipermail/openstack-operators/2018-November/016139.html Moreover, its usage in Sahara produces some nasty side-effects when Python 3.x is used. The provisioning of the clusters ends abruptly when sahara-engine tries to update the status in the database, with a failure inside oslo_i18n. Change-Id: I19b5b25d1afa8daaad372b7a89b1c2c7f01785a0 --- sahara_plugin_vanilla/tests/__init__.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sahara_plugin_vanilla/tests/__init__.py b/sahara_plugin_vanilla/tests/__init__.py index 40224b0..32dc711 100644 --- a/sahara_plugin_vanilla/tests/__init__.py +++ b/sahara_plugin_vanilla/tests/__init__.py @@ -15,10 +15,3 @@ from sahara_plugin_vanilla.utils import patches patches.patch_all() - -import oslo_i18n - -# NOTE(slukjanov): i18n.enable_lazy() must be called before -# sahara.utils.i18n._() is called to ensure it has the desired -# lazy lookup behavior. -oslo_i18n.enable_lazy()