Skip to content

cri: call RegisterReadiness after NewCRIService#9164

Merged
dmcgowan merged 1 commit intocontainerd:mainfrom
AkihiroSuda:fix-9163
Sep 29, 2023
Merged

cri: call RegisterReadiness after NewCRIService#9164
dmcgowan merged 1 commit intocontainerd:mainfrom
AkihiroSuda:fix-9163

Conversation

@AkihiroSuda
Copy link
Copy Markdown
Member

NewCRIService() may easily fail and its error has to be ignored unless the CRI plugin is in the required_plugins list.

Now this has to be called before RegisterReadiness(), as PR #9153 Require plugins to succeed after registering readiness was merged on 2023-09-29.

Fix #9163: [Regression in main (2023-09-29)]: containerd-rootless.sh doesn't start up

@AkihiroSuda AkihiroSuda added area/cri Container Runtime Interface (CRI) cherry-pick/1.6.x cherry-pick/1.7.x Change to be cherry picked to release/1.7 branch labels Sep 29, 2023
`NewCRIService()` may easily fail and its error has to be ignored
unless the CRI plugin is in the `required_plugins` list.

Now this has to be called before `RegisterReadiness()`, as
PR 9153 "Require plugins to succeed after registering readiness"
was merged on 2023-09-29.

Fix issue 9163: `[Regression in main (2023-09-29)]: containerd-rootless.sh doesn't start up`

Signed-off-by: Akihiro Suda <[email protected]>
Copy link
Copy Markdown
Member

@henry118 henry118 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

@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

@dmcgowan dmcgowan merged commit 350a648 into containerd:main Sep 29, 2023
@dmcgowan dmcgowan added cherry-picked/1.6.x PR commits are cherry-picked into release/1.6 branch cherry-picked/1.7.x PR commits are cherry-picked into release/1.7 branch and removed cherry-pick/1.6.x cherry-pick/1.7.x Change to be cherry picked to release/1.7 branch labels Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) cherry-picked/1.6.x PR commits are cherry-picked into release/1.6 branch cherry-picked/1.7.x PR commits are cherry-picked into release/1.7 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Regression in main (2023-09-29)]: containerd-rootless.sh doesn't start up: failed to watch cni conf dir /etc/cni/net.d: permission denied

4 participants