Reconcile quitting_rpc_timeout with backoff RPC client
With backoff client, setting .timeout property on it doesn't take any
effect. It means that starting from Mitaka, we broke
quitting_rpc_timeout option.
Now, when the TERM signal is received, we reset the dict capturing
per-method timeouts; and we cap waiting times by the value of the
option. This significantly reduces time needed for the agent to
gracefully shut down.
Change-Id: I2d86ed7a6f337395bfcfdb0698ec685cf384f172
Related-Bug: #1663458
(cherry picked from commit aac17c6be90c2640ce9df4b02027d8fc01944fd8)
Reviewed: https:/ /review. openstack. org/448727 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=10f6e89e82e dbdf8b44829527c a12bc2574ee472
Committed: https:/
Submitter: Jenkins
Branch: stable/ocata
commit 10f6e89e82edbdf 8b44829527ca12b c2574ee472
Author: Ihar Hrachyshka <email address hidden>
Date: Thu Feb 9 06:43:55 2017 +0000
Reconcile quitting_ rpc_timeout with backoff RPC client
With backoff client, setting .timeout property on it doesn't take any rpc_timeout option.
effect. It means that starting from Mitaka, we broke
quitting_
Now, when the TERM signal is received, we reset the dict capturing
per-method timeouts; and we cap waiting times by the value of the
option. This significantly reduces time needed for the agent to
gracefully shut down.
Change-Id: I2d86ed7a6f3373 95bfcfdb0698ec6 85cf384f172 0ce9df4b02027d8 fc01944fd8)
Related-Bug: #1663458
(cherry picked from commit aac17c6be90c264