Skip to content

post provision kill process that may have started in chroot #174

@coryb

Description

@coryb

Sometimes packages start up process as they are installed. This will cause the umount to fail so we cannot take an ebs snapshot. We need to discover processes with open files or cwd inside the chroot.

Python psutil looks promising for this:
https://pypi.python.org/pypi/psutil
http://code.google.com/p/psutil/wiki/Documentation#Processes

We can iterate over all open processes, then call getcwd() and maybe get_open_files() to see if the paths overlap with our chroot.

-Cory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions