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)
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.cache/ +/822671 /opendev. org/openstack/ oslo.cache/ commit/ 3df5e9001346d17 994deb8db60361c f8589a6230
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 3df5e9001346d17 994deb8db60361c f8589a6230
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)
Change-Id: Icbe6dc3e93b4d2
(cherry picked from commit 40946a9349407f3