Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: test removing reaper #509

Closed
wants to merge 1 commit into from
Closed

Conversation

wongma7
Copy link
Contributor

@wongma7 wongma7 commented Jul 13, 2021

Is this a bug fix or adding new feature?

What is this PR about? / Why do we need it? It's not clear if the reaper is needed , the watchdog should be responsible for terminating/cleaning up stunnel processes. https://github.com/aws/efs-utils/blob/f3bb4a228a40bcf2e82fc28ab898d2b44ed8b05e/src/watchdog/__init__.py#L608-L642 . I guess if the watchdog restarts then zombie stunnel processes might need to be reaped? edit: i dont think zombies can happen actually, the stunnel processes should still be running and their PID is stored in state file, so watchdog should figure out again that they are still running and not spawn another stunnel.

But we are hearing about issues where mount fails with 'wait: no child processes' and I suspect this reaper is to blame, it might be racing with os.Command in mount_linux.go https://github.com/kubernetes/mount-utils/blob/19c6fae41ad49f3e4026f28b043f41343aa852fd/mount_linux.go#L176, I can't think of any other explanation for this weird error.

original PR adding reaper #113

What testing is done?

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 13, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wongma7

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 13, 2021
@wongma7
Copy link
Contributor Author

wongma7 commented Jul 13, 2021

/close

we do need a reaper because stunnel process have parent driver->mount.efs->stunnel but get terminated by driver->watchdog, and since driver is the parent and not watchdog it's driver's responsibility to reap driver->mount.efs->stunnel processes.

However as mentioend I suspect it is possible the reaper is waiting on non-stunnel processes and racing with os.exec in other parts of the driver, causing those os.exec waits to error out because the process disappears/gets replaced from under them?.

@k8s-ci-robot
Copy link
Contributor

@wongma7: Closed this PR.

In response to this:

/close

we do need a reaper because stunnel process have parent driver->mount.efs->stunnel but get terminated by driver->watchdog, and since driver is the parent and not watchdog it's driver's responsibility to reap driver->mount.efs->stunnel processes.

However as mentioend I suspect it is possible the reaper is waiting on non-stunnel processes and racing with os.exec in other parts of the driver, causing those os.exec waits to error out because the process disappears/gets replaced from under them?.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants