OVS agent hangs on rpc calls if neutron-server is down and ovs-agent received SIGTERM
Bug #1408334 reported by
Jakub Libosvar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Jakub Libosvar | ||
Juno |
Fix Released
|
Medium
|
Jakub Libosvar |
Bug Description
There is an infinite loop in OVS agent driven by one variable. If OVG agent receives SIGTERM signal and loop is running, OVS agent must wait until execution reaches loop control variable. If at the same time neutron-server is down, agent still uses rpc call() methods and waits for response from neutron-server. Several timeouts on rpc must occur until OVS agents quits. If this whole process of exiting takes more than 90 seconds, systemd by default sends SIGKILL to ovs-agent process which means ovs-agent didn't exit with exit code 0. RPC calls are not necessary if we know agent is going to shutdown.
Changed in neutron: | |
assignee: | nobody → Jakub Libosvar (libosvar) |
status: | New → Confirmed |
Changed in neutron: | |
importance: | Undecided → Medium |
Changed in neutron: | |
status: | Confirmed → In Progress |
Changed in neutron: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | kilo-2 → 2015.1.0 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/145529 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=d3af7b0d2eb b2dd4da7e4a620e ca8f554c124ec6
Committed: https:/
Submitter: Jenkins
Branch: master
commit d3af7b0d2ebb2dd 4da7e4a620eca8f 554c124ec6
Author: Jakub Libosvar <email address hidden>
Date: Fri Jan 30 18:30:22 2015 +0100
Decrease rpc timeout after agent receives SIGTERM
The patch sets different timeout to rpc api objects in OVS agent after
SIGTERM is received. Given timeout is configurable. This action prevents
long waiting for rpc call() methods to timeout and decreases amount of time
needed to successfully stopping OVS agent.
DocImpact bad9e0bca3be1f5 35212a2e417
Change-Id: I3026775e813a74
Closes-Bug: 1408334