ProcessLauncher needs a stop method

Bug #1311306 reported by Carl Baldwin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
Fix Released
Medium
Carl Baldwin

Bug Description

ProcessLauncher has no stop or kill method. Neutron -- for one -- may call this method and get an AttributeError when it does.

Revision history for this message
Ben Nemec (bnemec) wrote :

That's...odd. How did Neutron end up calling a method that doesn't exist? Did we remove it at some point?

Changed in oslo:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Carl Baldwin (carl-baldwin) wrote :

It is odd. I think the code path was never tested and is obviously not exercised in our tests. We can't add tests which exercise it until it is implemented. :)

Revision history for this message
ChangBo Guo(gcb) (glongwave) wrote :

Can you add more details about the code path ? A source code link is appreciated.

Revision history for this message
Carl Baldwin (carl-baldwin) wrote :

Here is the neutron path that would call it: https://review.openstack.org/#/c/72564/. Before, this code was trying to just set .running to False hoping that would stop the sub-processes. I don't think that is correct.

Changed in oslo:
assignee: nobody → Carl Baldwin (carl-baldwin)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo-incubator (master)

Reviewed: https://review.openstack.org/89686
Committed: https://git.openstack.org/cgit/openstack/oslo-incubator/commit/?id=5f12bba4267b3a34b8d9db99928c998ae197fc52
Submitter: Jenkins
Branch: master

commit 5f12bba4267b3a34b8d9db99928c998ae197fc52
Author: Carl Baldwin <email address hidden>
Date: Tue Apr 22 19:55:09 2014 +0000

    Implement stop method in ProcessLauncher

    This implements a stop call in ProcessLauncher which will stop respawn
    loops and terminate children.

    Change-Id: I13d03b2007f1b53387945b74f70f676734ad8167
    Closes-Bug: #1311306

Changed in oslo:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in oslo:
milestone: none → juno-1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.