Skip to content

[release/1.6] Regenerate UUID if state is empty in introspection service#10511

Merged
estesp merged 1 commit intocontainerd:release/1.6from
k8s-infra-cherrypick-robot:cherry-pick-10503-to-release/1.6
Jul 26, 2024
Merged

[release/1.6] Regenerate UUID if state is empty in introspection service#10511
estesp merged 1 commit intocontainerd:release/1.6from
k8s-infra-cherrypick-robot:cherry-pick-10503-to-release/1.6

Conversation

@k8s-infra-cherrypick-robot

This is an automated cherry-pick of #10503

/assign samuelkarp

The /var/lib/containerd/io.containerd.grpc.v1.introspection/uuid file
stores a UUID to identify the particular containerd daemon responding to
requests.  The file should either exist with a UUID, or not exist.
However, it has been observed that the file can be truncated with 0
bytes, which will then fail to be parsed as a valid UUID.

As a defensive practice, detect a 0-length file and overwrite with a new
UUID rather than failing.

Fixes: containerd#10491
Signed-off-by: Samuel Karp <[email protected]>
@k8s-ci-robot
Copy link

Hi @k8s-infra-cherrypick-robot. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@samuelkarp
Copy link
Member

/ok-to-test

@estesp estesp merged commit 881a788 into containerd:release/1.6 Jul 26, 2024
@dmcgowan dmcgowan changed the title [release/1.6] introspection: regenerate UUID if state is empty [release/1.6] Gegenerate UUID if state is empty in introspection service Aug 9, 2024
@dmcgowan dmcgowan changed the title [release/1.6] Gegenerate UUID if state is empty in introspection service [release/1.6] Regenerate UUID if state is empty in introspection service Aug 9, 2024
@dmcgowan dmcgowan changed the title [release/1.6] Regenerate UUID if state is empty in introspection service [release/1.6] Regenerate UUID if state is empty in introspection service Aug 9, 2024
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.

5 participants