Skip to content

[cri] ensure log dir is created#4863

Merged
estesp merged 1 commit intocontainerd:masterfrom
crosbymichael:log-dir
Dec 18, 2020
Merged

[cri] ensure log dir is created#4863
estesp merged 1 commit intocontainerd:masterfrom
crosbymichael:log-dir

Conversation

@crosbymichael
Copy link
Copy Markdown
Member

containerd is responsible for creating the log but there is no code to ensure
that the log dir exists. While kubelet should have created this there can be
times where this is not the case and this can cause stuck tasks.

Signed-off-by: Michael Crosby [email protected]

containerd is responsible for creating the log but there is no code to ensure
that the log dir exists.  While kubelet should have created this there can be
times where this is not the case and this can cause stuck tasks.

Signed-off-by: Michael Crosby <[email protected]>
@crosbymichael crosbymichael added this to the 1.5 milestone Dec 17, 2020
Comment thread pkg/cri/server/helpers_linux.go
@crosbymichael
Copy link
Copy Markdown
Member Author

looks like the openlab check got stuck....

@crosbymichael
Copy link
Copy Markdown
Member Author

Does anyone think this should be a back port?

Copy link
Copy Markdown
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

LGTM

@mikebrow
Copy link
Copy Markdown
Member

Does anyone think this should be a back port?

yes..

maybe also to _other, _windows (or todo)

Copy link
Copy Markdown
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM

windows/other cases can be handled in the followup

Copy link
Copy Markdown
Member

@dims dims left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah
Copy link
Copy Markdown
Member

Cherry-picked in containerd/cri#1618 (needs containerd/cri to be re-vendored)

@AkihiroSuda AkihiroSuda added cherry-picked/1.4.x PR commits are cherry picked into the release/1.4 branch and removed cherry-pick/1.4.x labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/1.4.x PR commits are cherry picked into the release/1.4 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants