Comment 2 for bug 1531406

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/264537
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=20214477c80759836b10d1ae45d16d404b077463
Submitter: Jenkins
Branch: master

commit 20214477c80759836b10d1ae45d16d404b077463
Author: huangtianhua <email address hidden>
Date: Thu Jan 7 11:04:54 2016 +0800

    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.

    Change-Id: I44ed5c10b6dec6f39714f4f74cf51a10ef6104a6
    Closes-Bug: #1531406