Zun

Comment 1 for bug 1742840

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

Reviewed: https://review.openstack.org/532962
Committed: https://git.openstack.org/cgit/openstack/zun/commit/?id=abd7e2b08f05383fb05c66f7bc57ffb7f7a2ab9e
Submitter: Zuul
Branch: master

commit abd7e2b08f05383fb05c66f7bc57ffb7f7a2ab9e
Author: Hongbin Lu <email address hidden>
Date: Thu Jan 11 20:09:29 2018 +0000

    Fix an issue on context elevation

    The issue was introduced by:
    https://review.openstack.org/#/c/531561/
    That patch above fixed an issue of creating volumes in a wrong
    tenant, but it made the context elevation ineffective. As a result,
    some neutron API calls (i.e. port update) was made by a non-admin
    context thus failing due to insufficient permission.

    This patch fixed it by using get_admin_context instead of
    context.elevated().

    Closes-Bug: #1742840
    Change-Id: Ia68729b90d059d7d88a00915582453d38420ab24