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

do not use exec for start scripts using trap quit EXIT #4025

Merged
merged 1 commit into from
May 16, 2024

Conversation

zhangzujian
Copy link
Member

@zhangzujian zhangzujian commented May 15, 2024

Pull Request

What type of this PR

Examples of user facing changes:

  • Features
  • Bug fixes
  • Docs
  • Tests

Which issue(s) this PR fixes

exec replaces the current program in the current process, without forking a new process:

containerd-shim(731886)─┬─dumb-init(731983)───tail(732051)
                        ├─monitor(732200)───ovsdb-server(732201)
                        ├─monitor(732337)───ovs-vswitchd(732338)─┬─{ovs-vswitchd}(732521)
                        │                                        ├─{ovs-vswitchd}(732522)
                        │                                        ├─{ovs-vswitchd}(732523)
                        │                                        ├─{ovs-vswitchd}(732524)
                        │                                        ├─{ovs-vswitchd}(732525)
                        │                                        ├─{ovs-vswitchd}(732526)
                        │                                        ├─{ovs-vswitchd}(732527)
                        │                                        ├─{ovs-vswitchd}(732528)
                        │                                        ├─{ovs-vswitchd}(732529)
                        │                                        ├─{ovs-vswitchd}(732530)
                        │                                        ├─{ovs-vswitchd}(732531)
                        │                                        └─{ovs-vswitchd}(732532)
                        ├─monitor(732513)───ovn-controller(732514)─┬─{ovn-controller}(732515)
                        │                                          ├─{ovn-controller}(732516)
                        │                                          └─{ovn-controller}(732518)
                        ├─pause(731921)

Expected:

containerd-shim(940513)─┬─monitor(940761)───ovsdb-server(940763)
                        ├─monitor(940937)───ovs-vswitchd(940938)─┬─{ovs-vswitchd}(941152)
                        │                                        ├─{ovs-vswitchd}(941153)
                        │                                        ├─{ovs-vswitchd}(941155)
                        │                                        ├─{ovs-vswitchd}(941157)
                        │                                        ├─{ovs-vswitchd}(941158)
                        │                                        ├─{ovs-vswitchd}(941159)
                        │                                        ├─{ovs-vswitchd}(941160)
                        │                                        ├─{ovs-vswitchd}(941161)
                        │                                        ├─{ovs-vswitchd}(941162)
                        │                                        ├─{ovs-vswitchd}(941163)
                        │                                        ├─{ovs-vswitchd}(941164)
                        │                                        └─{ovs-vswitchd}(941165)
                        ├─monitor(941134)───ovn-controller(941136)─┬─{ovn-controller}(941137)
                        │                                          ├─{ovn-controller}(941138)
                        │                                          └─{ovn-controller}(941142)
                        ├─pause(940557)
                        ├─start-ovs.sh(940629)───tail(941143)

@zhangzujian zhangzujian marked this pull request as ready for review May 15, 2024 07:07
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
@zhangzujian zhangzujian changed the title do not use exec for start scripts with trap quit EXIT do not use exec for start scripts using trap quit EXIT May 16, 2024
@zhangzujian zhangzujian merged commit e0aa566 into kubeovn:master May 16, 2024
62 checks passed
@zhangzujian zhangzujian deleted the fix-ovs branch May 16, 2024 05:34
zhangzujian added a commit to zhangzujian/kube-ovn that referenced this pull request May 16, 2024
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
zcq98 pushed a commit to zcq98/kube-ovn that referenced this pull request May 16, 2024
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
bobz965 pushed a commit that referenced this pull request May 20, 2024
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants