Bug 1368473

Summary: python-oslo-rootwrap: Handle renamed executables with KillFilter
Product: Red Hat OpenStack Reporter: Victor Stinner <vstinner>
Component: python-oslo-rootwrapAssignee: Victor Stinner <vstinner>
Status: CLOSED ERRATA QA Contact: Asaf Hirshberg <ahirshbe>
Severity: high Docs Contact:
Priority: high    
Version: 6.0 (Juno)CC: aathomas, apevec, dnavale, fdinitto, lhh, srevivo, ushkalim, vstinner
Target Milestone: asyncKeywords: ZStream
Target Release: 5.0 (RHEL 6)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-oslo-rootwrap-1.0.0-2.el6ost Doc Type: Bug Fix
Doc Text:
Previously, after a service upgrade, 'oslo.rootwrap' was unable to stop the service any more as the executable was replaced (renamed). With this update, the executables are renamed to use '/proc/$pid/cmdline' if it exists instead of '/proc/$pid/exe'. As a result, 'oslo.rootwrap' is now able to stop a service properly after an upgrade, even when the executable is replaced (renamed).
Story Points: ---
Clone Of: 1366697 Environment:
Last Closed: 2017-01-19 13:34:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1251211, 1366697, 1368475, 1368476    
Bug Blocks:    

Comment 1 Victor Stinner 2016-09-05 18:58:17 UTC
I built python-oslo-rootwrap-1.0.0-2.el6ost RPM with the backported fix.

Comment 3 Asaf Hirshberg 2016-12-19 13:09:42 UTC
Code verified using python-oslo-rootwrap-1.0.0-2.el6ost on rhel-6

Comment 5 errata-xmlrpc 2017-01-19 13:34:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0164.html