lxc-ps does not handle cgroups right

Bug #1177604 reported by Serge Hallyn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

lxc-ps looks at /sys/fs/cgroup/cpuset/lxc/$container/tasks to get a list of tasks in the container. However, in the face of either failed previous container startups, or multiple containers with theh same name in differnet lxcpaths, the container's cgroup could be /sys/fs/cgroup/cpuset/lxc/${container}-N/ (N being an ascending integer)

Tags: patch
Changed in lxc (Ubuntu):
assignee: nobody → Serge Hallyn (serge-hallyn)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

A proposed fix has been sent to the mailing list. I'm not sure whether we'll go with that patch, or re-write lxc-ps.

Changed in lxc (Ubuntu):
assignee: Serge Hallyn (serge-hallyn) → nobody
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :
tags: added: patch
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Fix has been committed upstream for some time.

Changed in lxc (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Matt Fischer (mfisch) wrote :

This landed upstream in May 2013 and from what I see is fixed in raring and therefore also saucy. Closing this out.

Changed in lxc (Ubuntu):
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.