If enable re-auth, we will use the stored context
instead of request context, then we can't create
ceilometer alarm resource. There are two problems
when create ceilometer client:
1. the stored context has no domain info, an error
raised from keystone: BadRequest: Expecting to find
domain in project. So this patch will retrive the
user/project domain ids from the auth_ref.
2. after fix the first problem, then another error
raised from keystone: Forbidden: You are not authorized
to perform the requested action. Due keystone doesn't
allow to create a token by a trust-scoped token when
get aodh endpoint. So this patch will pass 'aodh_endpoint'
to ceilometer client to avoid this.
Closes-Bug: #1583208
(cherry picked from commit 20214477c80759836b10d1ae45d16d404b077463)
Reviewed: https:/ /review. fuel-infra. org/21844 ci/fuel- 8.0/liberty
Submitter: Pkgs Jenkins <email address hidden>
Branch: openstack-
Commit: 11cc95348dc3cf5 0147af36363bcf0 cfaf4383de
Author: huangtianhua <email address hidden>
Date: Thu Aug 4 10:03:47 2016
Make sure create ceilometer alarm successful
If enable re-auth, we will use the stored context
instead of request context, then we can't create
ceilometer alarm resource. There are two problems
when create ceilometer client:
1. the stored context has no domain info, an error
raised from keystone: BadRequest: Expecting to find
domain in project. So this patch will retrive the
user/project domain ids from the auth_ref.
2. after fix the first problem, then another error
raised from keystone: Forbidden: You are not authorized
to perform the requested action. Due keystone doesn't
allow to create a token by a trust-scoped token when
get aodh endpoint. So this patch will pass 'aodh_endpoint'
to ceilometer client to avoid this.
Closes-Bug: #1583208 36b10d1ae45d16d 404b077463)
(cherry picked from commit 20214477c807598
Conflicts: clients/ os/ceilometer. py
heat/engine/
Change-Id: I44ed5c10b6dec6 f39714f4f74cf51 a10ef6104a6