Comment 6 for bug 1970383

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/nova/+/840732
Committed: https://opendev.org/openstack/nova/commit/60548e804219d91d8c68ab3d74dd0ae956cd33f3
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 60548e804219d91d8c68ab3d74dd0ae956cd33f3
Author: Andrew Bonney <email address hidden>
Date: Tue Apr 26 11:35:38 2022 +0100

    Fix segment-aware scheduling permissions error

    Resolves a bug encountered when setting the Nova scheduler to
    be aware of Neutron routed provider network segments, by using
    'query_placement_for_routed_network_aggregates'.

    Non-admin users attempting to access the 'segment_id' attribute
    of a subnet caused a traceback, resulting in instance creation
    failure.

    This patch ensures the Neutron client is initialised with an
    administrative context no matter what the requesting user's
    permissions are.

    Change-Id: Ic0f25e4d2395560fc2b68f3b469e266ac59abaa2
    Closes-Bug: #1970383
    (cherry picked from commit ee32934f34afd8e6df467361e9d71788cd36f6ee)