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

Concurrency issue #35

Merged
merged 2 commits into from
Apr 30, 2021
Merged

Concurrency issue #35

merged 2 commits into from
Apr 30, 2021

Conversation

rodnymolina
Copy link
Member

Refer to individual commits for details.

I'm simply following the same approach we went through in sysbox-mgr repo.

Signed-off-by: Rodny Molina <rmolina@nestybox.com>
Bug is fairly obvious here. Problem is triggered whenever no matching user-ns is found during the container registration phase, which could be a consequence of a timing / transient condition such as the container initialization process being abruptly terminated.

The following logs display the issue right before the deadlock was observed:

```
Apr 23 13:25:26 vm1 sysbox-fs[18766]: time="2021-04-23 13:25:26" level=warning msg="Error during syscall \"umount2\" processing on fd 23 pid 10907 (mountInfoParser error for pid = 10907: Error waiting for sysbox-fs first child process)"
Apr 23 13:25:26 vm1 sysbox-fs[18766]: time="2021-04-23 13:25:26" level=error msg="No namespace file found /proc/17775/ns/user"
Apr 23 13:25:26 vm1 sysbox-fs[18766]: time="2021-04-23 13:25:26" level=error msg="Container registration error: container 66279db8b73fa4c13a5198c62d4af8d91869783ef5c88c52c9952ec71eef5cab with invalid user-ns"
Apr 23 13:25:26 vm1 sysbox-fs[18766]: time="2021-04-23 13:25:26" level=warning msg="Sysbox-fs first child process error status: pid = 18423"
```

Signed-off-by: Rodny Molina <rmolina@nestybox.com>
Copy link
Member

@ctalledo ctalledo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants