Don't import module "etcd3gw" if etcd3gw backend is not used.
If module etcd3gw is not required for used backend,
then no need to have it installed and imported.
Otherwise we always have ugly log error:
Could not load 'oslo_cache.etcd3gw': No module named 'etcd3gw': ModuleNotFoundError: No module named 'etcd3gw
Closes-Bug: 1928318
Change-Id: Icbe6dc3e93b4d2fec1ceb88366027294e49d7032
(cherry picked from commit 40946a9349407f36a43d5020d991085c11468698)
(cherry picked from commit 3df5e9001346d17994deb8db60361cf8589a6230)
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.cache/ +/844273 /opendev. org/openstack/ oslo.cache/ commit/ f0ddb8a63f8b362 24b365c962004f1 7f83dd5ca4
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/victoria
commit f0ddb8a63f8b362 24b365c962004f1 7f83dd5ca4
Author: Mitya_Eremeev <email address hidden>
Date: Fri May 21 19:50:53 2021 +0300
Don't import module "etcd3gw" if etcd3gw backend is not used.
If module etcd3gw is not required for used backend, etcd3gw' : No module named 'etcd3gw': ModuleNotFoundE rror: No module named 'etcd3gw
then no need to have it installed and imported.
Otherwise we always have ugly log error:
Could not load 'oslo_cache.
Closes-Bug: 1928318 fec1ceb88366027 294e49d7032 6a43d5020d99108 5c11468698) 994deb8db60361c f8589a6230)
Change-Id: Icbe6dc3e93b4d2
(cherry picked from commit 40946a9349407f3
(cherry picked from commit 3df5e9001346d17