Terminate the long-running cat in rootwrap tests

Bug #1079629 reported by Thierry Carrez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Davanum Srinivas (DIMS)

Bug Description

Bug 1071443 replaced the "sleep 5" call in the rootwrap KillFilter tests by a cat with stdin=PIPE stdout=PIPE stderr=STDIN that sits there doing nothing indefinitely.

While it was indeed intrducing a race condition, the sleep call had the benefit of always terminating after 5 seconds, while the "cat" process will survive until the death of the parent.

At the very minimum, we should be terminating that "cat" subprocess at the end of test_KillFilter.

Tags: rootwrap
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/16306

Changed in nova:
assignee: nobody → Davanum Srinivas (dims-v)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/16306
Committed: http://github.com/openstack/nova/commit/bb9fe5e0c8376488f1d907825bdd10a62d5bcb80
Submitter: Jenkins
Branch: master

commit bb9fe5e0c8376488f1d907825bdd10a62d5bcb80
Author: Davanum Srinivas <email address hidden>
Date: Fri Nov 16 09:43:55 2012 -0500

    Ensure cat process is terminated

    per bug report we should be terminating that "cat" subprocess at the
    end of test_KillFilter.

    switching from kill to terminate/wait, add try/finally to make sure we
    are ok even if an exception is thrown in between

    fixes bug #1079629

    Change-Id: I8ca767402a2bd992d4b9579615375eda0c75cb6b

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-1 → 2013.1
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.