Add for #15, we should also skip in neutron/agent/rpc.py for workaround to disable port binding:
diff --git a/neutron/agent/rpc.py b/neutron/agent/rpc.py index 130b18e..5ee396c 100644 --- a/neutron/agent/rpc.py +++ b/neutron/agent/rpc.py @@ -311,13 +311,6 @@ class CacheBackedPluginApi(PluginApi): binding = utils.get_port_binding_by_status_and_host( port_obj.bindings, constants.ACTIVE, raise_if_not_found=True, port_id=port_obj.id) - if (port_obj.device_owner.startswith( - constants.DEVICE_OWNER_COMPUTE_PREFIX) and - binding[pb_ext.HOST] != host): - LOG.debug("Device %s has no active binding in this host", - port_obj) - return {'device': device, - n_const.NO_ACTIVE_BINDING: True} net = self.remote_resource_cache.get_resource_by_id( resources.NETWORK, port_obj.network_id) net_qos_policy_id = net.qos_policy_id
diff --git a/nova/network/neutronv2/api.py b/nova/network/neutronv2/api.py index f73fee4..088c3f0 100644 --- a/nova/network/neutronv2/api.py +++ b/nova/network/neutronv2/api.py @@ -1226,8 +1226,7 @@ class API(base_api.NetworkAPI): :returns: True if the binding-extended API extension is available, False otherwise """ - self._refresh_neutron_extensions_cache(context) - return constants.PORT_BINDING_EXTENDED in self.extensions + return False
def bind_ports_to_host(self, context, instance, host, vnic_type=None, profile=None):
Add for #15, we should also skip in neutron/ agent/rpc. py for workaround to disable port binding:
diff --git a/neutron/ agent/rpc. py b/neutron/ agent/rpc. py agent/rpc. py agent/rpc. py inApi(PluginApi ): port_binding_ by_status_ and_host(
port_ obj.bindings, constants.ACTIVE, raise_if_ not_found= True,
port_ id=port_ obj.id) device_ owner.startswit h( DEVICE_ OWNER_COMPUTE_ PREFIX) and pb_ext. HOST] != host): NO_ACTIVE_ BINDING: True} resource_ cache.get_ resource_ by_id(
resources .NETWORK, port_obj. network_ id)
net_qos_ policy_ id = net.qos_policy_id
index 130b18e..5ee396c 100644
--- a/neutron/
+++ b/neutron/
@@ -311,13 +311,6 @@ class CacheBackedPlug
binding = utils.get_
- if (port_obj.
- constants.
- binding[
- LOG.debug("Device %s has no active binding in this host",
- port_obj)
- return {'device': device,
- n_const.
net = self.remote_
diff --git a/nova/ network/ neutronv2/ api.py b/nova/ network/ neutronv2/ api.py network/ neutronv2/ api.py network/ neutronv2/ api.py api.NetworkAPI) :
False otherwise neutron_ extensions_ cache(context) PORT_BINDING_ EXTENDED in self.extensions
index f73fee4..088c3f0 100644
--- a/nova/
+++ b/nova/
@@ -1226,8 +1226,7 @@ class API(base_
:returns: True if the binding-extended API extension is available,
"""
- self._refresh_
- return constants.
+ return False
def bind_ports_ to_host( self, context, instance, host,
vnic_type= None, profile=None):