NSXv: use admin context for metadata port config

Using session context for the port creation caused conflict with IP
allocation for the metadata port.
Use of a new admin context resolves this issue.

Change-Id: Ic65b70ffd80be07aae4b668b4b8af09a915ab747
Co-Authored-By: Salvatore Orlando <sorlando@vmware.com>
This commit is contained in:
Kobi Samoray 2018-11-13 14:35:59 +02:00
parent 74eafcca69
commit aad3f76cf5
1 changed files with 1 additions and 1 deletions

View File

@ -704,7 +704,7 @@ class NsxVMetadataProxyHandler(object):
lb_obj.submit_to_backend(self.nsxv_plugin.nsx_v.vcns, edge_id)
def configure_router_edge(self, context, rtr_id):
ctx = context.elevated()
ctx = neutron_context.get_admin_context()
# Connect router interface to inter-edge network
port_data = {
'port': {