pipe not closed with use of popen

Bug #1382906 reported by Simon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Undecided
Unassigned
python-keystoneclient
Fix Released
High
Simon

Bug Description

In keystoneclient.common.cms, subprocess.Popen is used to get the output of openssl execution. After running keystone for a while, there are many open pipes and eventually causing keystone to stop working because of open file limit.

Changed in python-keystoneclient:
assignee: nobody → Simon (xchenum)
status: New → In Progress
Revision history for this message
Simon (xchenum) wrote :

I submitted a patch to set close_fds=True in Popen - it at least solves the problem for my environment.

Revision history for this message
Simon (xchenum) wrote :
Changed in keystone:
status: New → Invalid
Dolph Mathews (dolph)
Changed in python-keystoneclient:
importance: Undecided → Medium
Dolph Mathews (dolph)
Changed in python-keystoneclient:
importance: Medium → High
Jay Pipes (jaypipes)
tags: added: icehouse-backport-potential juno-backport-potential
Jay Pipes (jaypipes)
tags: removed: icehouse-backport-potential juno-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

Reviewed: https://review.openstack.org/129456
Committed: https://git.openstack.org/cgit/openstack/python-keystoneclient/commit/?id=f00755f04ac5298c86620592af1c65acb0f021ae
Submitter: Jenkins
Branch: master

commit f00755f04ac5298c86620592af1c65acb0f021ae
Author: Xu (Simon) Chen <email address hidden>
Date: Sat Oct 18 23:00:01 2014 -0400

    set close_fds=True in Popen

    The current way of using Popen does not close pipes properly,
    and therefore long-running keystone processes, which depends on
    keystoneclient.common.cms for data sigining, eventually hit
    open file limit and stop working. Passing close_fds=True seems
    to have solved the problem.

    Change-Id: Ife452ab6843c1af5eb39debb8db453e45f78cba9
    Closes-Bug: 1382906

Changed in python-keystoneclient:
status: In Progress → Fix Committed
Changed in python-keystoneclient:
milestone: none → 0.11.2
Changed in python-keystoneclient:
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.