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)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /840732 /opendev. org/openstack/ nova/commit/ 60548e804219d91 d8c68ab3d74dd0a e956cd33f3
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/yoga
commit 60548e804219d91 d8c68ab3d74dd0a e956cd33f3
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 placement_ for_routed_ network_ aggregates' .
be aware of Neutron routed provider network segments, by using
'query_
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: Ic0f25e4d239556 0fc2b68f3b469e2 66ac59abaa2 6df467361e9d717 88cd36f6ee)
Closes-Bug: #1970383
(cherry picked from commit ee32934f34afd8e