Switch to use cast method in dhcp_ready_on_ports method
When DHCP agent reports to the neutron-server which ports are
ready, it was using call() method from rpc client.
That caused blocking dhcp agent's dhcp_ready_ports_loop thread which
blocks to send info about other ready ports if there are any.
Method call() should be used when RPC caller returns a value to the
caller but that's not the case here. On neutron server side this
RPC method is only calling provisioning_complete() method to
finish provisioning of ports. And is not returning anything.
So to make sending dhcp ready ports to neutron-server much faster
this patch switch to use cast() method from rpc client.
This method don't block to wait for return value from RPC caller.
Change-Id: Ie119693854aa283b863a1eac2bdae3330c2b6a9d
Closes-Bug: #1850864
(cherry picked from commit 1a686fb401eca1843b81292fc88c13a2e6fd274d)
Reviewed: https:/ /review. opendev. org/694558 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=69250307ee3 654f46efed4f9d8 1e2a555d635361
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 69250307ee3654f 46efed4f9d81e2a 555d635361
Author: Slawek Kaplonski <email address hidden>
Date: Thu Oct 31 23:12:03 2019 +0100
Switch to use cast method in dhcp_ready_on_ports method
When DHCP agent reports to the neutron-server which ports are ports_loop thread which
ready, it was using call() method from rpc client.
That caused blocking dhcp agent's dhcp_ready_
blocks to send info about other ready ports if there are any.
Method call() should be used when RPC caller returns a value to the complete( ) method to
caller but that's not the case here. On neutron server side this
RPC method is only calling provisioning_
finish provisioning of ports. And is not returning anything.
So to make sending dhcp ready ports to neutron-server much faster
this patch switch to use cast() method from rpc client.
This method don't block to wait for return value from RPC caller.
Change-Id: Ie119693854aa28 3b863a1eac2bdae 3330c2b6a9d 43b81292fc88c13 a2e6fd274d)
Closes-Bug: #1850864
(cherry picked from commit 1a686fb401eca18