Comment 5 for bug 1538767

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.openstack.org/290184
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=22aed6d8061cc609da2351df23b6f5ef40ca8358
Submitter: Jenkins
Branch: master

commit 22aed6d8061cc609da2351df23b6f5ef40ca8358
Author: Shih-Hao Li <email address hidden>
Date: Thu Mar 10 00:22:45 2016 -0800

    Fix the context passed to get_subnets in _validate_routes

    In the patch for bug #1538767 (https://review.openstack.org/#/c/273278),
    get_ports() is passed with context.elevated(), while later get_subnet()
    for those ports is still passed with the original context. This could
    cause "Subnet could not be found" exception for ports only accessible
    in context.elevated() but not in the original context.

    This commit replaces context with context.elevated() in get_subnet().

    Related-Bug: #1538767
    Change-Id: I21e73625e0a625a431bfb22f847c3b6f9671daea