Multiprocess nova-api does not handles SIGTERM correctly.

Bug #805604 reported by Nikolay Sokolov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Nikolay Sokolov

Bug Description

In current implementation, nova-api shuts down correctly only by keyboard interrupt. If we kill main nova-api process by SIGTERM, child processes won't stop, so that breaks some init scripts.

Related branches

Revision history for this message
Nikolay Sokolov (chemikadze) wrote :

Manual reproducing of bug.

Changed in nova:
assignee: nobody → Nickolay Sokolov (chemikadze)
status: New → Fix Committed
Changed in nova:
status: Fix Committed → New
Revision history for this message
Thierry Carrez (ttx) wrote :

That may explain why my laptop does not shut down correctly when nova is running :)
Could you propose your branch for merging ?

Changed in nova:
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Nikolay Sokolov (chemikadze) wrote :

I was told that now new merge proposals will be approved only with tests. Whether i write some test first, or this case doesn't need it?

Revision history for this message
Thierry Carrez (ttx) wrote :

A test case is always better... though if you have no idea on how to cover that with a unittest, you can propose for merging and ask the reviewers for suggestions.

Revision history for this message
Brian Lamar (blamar) wrote :

Great catch, diagnosis, and fix. I have a small suggestion which I've proposed for merge into your branch if you're open to it. Otherwise I don't think this requires an automated test and should be fine to merge.

Revision history for this message
Andrey Brindeyev (abrindeyev) wrote :

Brian, as a company, we are committed to make OpenStack better in Grid Dynamics. Please welcome our new employee and OpenStack developer - Nikolay Sokolov.

Revision history for this message
Jay Pipes (jaypipes) wrote : Re: [Bug 805604] Re: Multiprocess nova-api does not handles SIGTERM correctly.

Welcome to the community, Nikolay! :)

-jay

On Tue, Jul 5, 2011 at 2:45 PM, Andrey Brindeyev
<email address hidden> wrote:
> Brian, as a company, we are committed to make OpenStack better in Grid
> Dynamics. Please welcome our new employee and OpenStack developer -
> Nikolay Sokolov.
>
> --
> You received this bug notification because you are a member of Nova Bug
> Team, which is subscribed to OpenStack Compute (nova).
> https://bugs.launchpad.net/bugs/805604
>
> Title:
>  Multiprocess nova-api does not handles SIGTERM correctly.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nova/+bug/805604/+subscriptions
>

Revision history for this message
Nikolay Sokolov (chemikadze) wrote :

I'm wating for review for two days. I thing that it is too long for 3-line pathch.

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → In Progress
Brian Waldon (bcwaldon)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-3
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-3 → 2011.3
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.