-
Notifications
You must be signed in to change notification settings - Fork 42
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
[api]ensure sidecar terminates on SIGTERM #606
[api]ensure sidecar terminates on SIGTERM #606
Conversation
We noticed that nova-api and nova-metadata pods do not immediately terminate on delete as the logging sidecar ignores SIGTERM. This PR adds the usage of dump-init to the sidecar command to ensure it handles SIGTERM properly
1de2b6d
to
01b2a53
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes this is required
@@ -129,9 +129,16 @@ func StatefulSet( | |||
{ | |||
Name: instance.Name + "-log", | |||
Command: []string{ | |||
"/bin/bash", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the entrypoint in the kolla contianer is
Entrypoint: "dumb-init --single-child --"
so i was expecting command to map to docker/podmans command
it would appear that k8s/openshfit is not following the normal rules
for how entrypoint and command interact
https://stackoverflow.com/a/66967227
so when i orgianlly wrote this i was expect it to be wrapped in dumb init already
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gibizer, mrkisaolamb, SeanMooney 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
cee3fe0
into
openstack-k8s-operators:main
We noticed that nova-api and nova-metadata pods do not immediately terminate on delete as the logging sidecar ignores SIGTERM. This PR adds the usage of dump-init to the sidecar command to ensure it handles SIGTERM properly
Fixes: OSPRH-770