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: I1e33216d7f1dc1ca7c7ab96deee9fa02d38b7252
This commit is contained in:
Telles Nobrega 2019-01-17 10:55:30 -03:00
parent 1d1feec71b
commit a66b3fffa4
1 changed files with 0 additions and 7 deletions

View File

@ -15,10 +15,3 @@
from sahara_plugin_spark.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()