Bug 1419348
| Summary: | Backport to OSP 8: OpenStack Heat may fail to connect keystone admin API in multi-region environment | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Andreas Karis <akaris> |
| Component: | openstack-heat | Assignee: | Rabi Mishra <ramishra> |
| Status: | CLOSED ERRATA | QA Contact: | Amit Ugol <augol> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.0 (Liberty) | CC: | augol, a-yoshiyama, dcadzow, mburns, ramishra, rhel-osp-director-maint, sbaker, sclewis, shardy, srevivo, zbitter |
| Target Milestone: | --- | Keywords: | FeatureBackport, Triaged, ZStream |
| Target Release: | 8.0 (Liberty) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-heat-5.0.3-2.el7ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1418159 | Environment: | |
| Last Closed: | 2017-06-14 15:26:17 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1418159, 1428632 | ||
| Bug Blocks: | |||
|
Description
Andreas Karis
2017-02-05 17:11:54 UTC
Once the upstream bug and the bugfix of OSP 10/9 are through, I'd like to request a backport to OSP 8. A customer successfully tested this on OSP 8, so it shouldn't be too complicated to backport:
~~~
--- ./heat/common/heat_keystoneclient.py.orig 2016-08-25 18:21:42.000000000 +0000
+++ ./heat/common/heat_keystoneclient.py 2017-02-05 00:23:08.730154392 +0000
@@ -112,6 +112,10 @@
return self._client
@property
+ def region_name(self):
+ return self.context.region_name or cfg.CONF.region_name_for_services
+
+ @property
def domain_admin_auth(self):
if not self._domain_admin_auth:
# Note we must specify the domain when getting the token
@@ -140,13 +144,15 @@
if not self._domain_admin_client:
self._domain_admin_client = kc_v3.Client(
session=self.session,
- auth=self.domain_admin_auth)
+ auth=self.domain_admin_auth,
+ region_name=self.region_name)
return self._domain_admin_client
def _v3_client_init(self):
client = kc_v3.Client(session=self.session,
- auth=self.context.auth_plugin)
+ auth=self.context.auth_plugin,
+ region_name=self.region_name)
if hasattr(self.context.auth_plugin, 'get_access'):
# NOTE(jamielennox): get_access returns the current token without
~~~
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:1456 |