nova/nova/tests
Balazs Gibizer aab4b7a0e2 Use admin neutron client to query ports for binding
The compute service updates the binding:profile of the neutron port
during server create. If the port has resource_request then the
'allocation' key need to point to the resource provider the port is
allocating resources. Unfortunately this code used a non admin client to
query the port data and therefore if the original server create request
was sent by a non admin user the returned port does not have its
resource_request filled and as a consequence nova does not add the
allocation key to the binding profile.

This patch makes sure that the port is queried with an admin client.

There is a tempest test change that reproduces the issue:
https://review.opendev.org/#/c/690934

Change-Id: Icc631cf2e81a5c78cb7fb1d0b625d19bd8f5a274
Closes-Bug: #1849657
2019-11-06 15:38:53 -05:00
..
functional Merge "Enable evacuation with qos ports" 2019-11-04 23:00:36 +00:00
unit Use admin neutron client to query ports for binding 2019-11-06 15:38:53 -05:00
__init__.py
fixtures.py Merge "fixtures: Add support for security groups" 2019-10-30 23:43:43 +00:00
json_ref.py Transform instance.exists notification 2018-06-05 12:51:30 +00:00