Skip to content

Bump tags.cncf.io/container-device-interface to v0.7.1#10041

Merged
estesp merged 1 commit intocontainerd:mainfrom
elezar:bump-container-device-interface-v0.7.1
Apr 11, 2024
Merged

Bump tags.cncf.io/container-device-interface to v0.7.1#10041
estesp merged 1 commit intocontainerd:mainfrom
elezar:bump-container-device-interface-v0.7.1

Conversation

@elezar
Copy link
Copy Markdown
Contributor

@elezar elezar commented Apr 5, 2024

This includes migrating from cdi.GetRegistry() to cdi.Configure() and
using top-level cdi Refresh and InjectDevices functions as applicable.

@k8s-ci-robot
Copy link
Copy Markdown

Hi @elezar. 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/test-infra repository.

@elezar
Copy link
Copy Markdown
Contributor Author

elezar commented Apr 5, 2024

This should also be backported to the release-1.7 branch.

/cc @bart0sh

@k8s-ci-robot
Copy link
Copy Markdown

@elezar: GitHub didn't allow me to request PR reviews from the following users: bart0sh.

Note that only containerd members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

This should also be backported to the release-1.7 branch.

/cc @bart0sh

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/test-infra repository.

@elezar
Copy link
Copy Markdown
Contributor Author

elezar commented Apr 9, 2024

@klihub this differs a bit from cri-o/cri-o#7971. Do you have thoughts on changes here?

@klihub
Copy link
Copy Markdown
Member

klihub commented Apr 9, 2024

@klihub this differs a bit from cri-o/cri-o#7971. Do you have thoughts on changes here?

I just took a quick look at this, but I think the biggest difference is that in 7971 I opted for using the package level functions whenever possible (Configure(), Refresh() and Inject*()), while this PR looks closer to a literal replacement of GetRegistry() with GetDefaultCache(). I don't have a strong opinion on this, but the general idea was that we try to single out enough of the functionality to package level functions (which implicitly operate on the default cache), to cover the most common use cases (so that you wouldn't need to call GetDefaultCache() in those cases). But in the end it ends up running the same code anyway...

Comment thread cmd/ctr/commands/run/run_unix.go Outdated
Comment thread internal/cri/server/container_create_linux_test.go Outdated
Comment thread pkg/oci/spec_opts.go Outdated
@elezar elezar force-pushed the bump-container-device-interface-v0.7.1 branch from b064619 to 748d30f Compare April 10, 2024 12:42
@elezar elezar requested a review from klihub April 10, 2024 13:23
This includes migrating from cdi.GetRegistry() to cdi.Configure() and
using top-level cdi Refresh and InjectDevices functions as applicable.

Signed-off-by: Evan Lezar <[email protected]>
@elezar elezar force-pushed the bump-container-device-interface-v0.7.1 branch from 748d30f to 1b62224 Compare April 10, 2024 13:25
Copy link
Copy Markdown
Member

@klihub klihub left a comment

Choose a reason for hiding this comment

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

LGTM for the CRI related code changes.

In fedora39 vagrant integration one test case, TestUpgrade, fails in the test-cri-integration. I don't see how these changes could directly cause that, but combing through the logs more carefully would be a good idea.

@klihub
Copy link
Copy Markdown
Member

klihub commented Apr 10, 2024

LGTM for the CRI related code changes.

In fedora39 vagrant integration one test case, TestUpgrade, fails in the test-cri-integration. I don't see how these changes could directly cause that, but combing through the logs more carefully would be a good idea.

I don't know if this is the reason for TestUpgrade failing and if it is then just a transient: 2024-04-10T13:44:52.3584657Z default: E0410 13:44:52.351485 48352 remote_runtime.go:134] RunPodSandbox from runtime service failed: rpc error: code = Unknown desc = failed to get sandbox image "registry.k8s.io/pause:3.8": failed to pull image "registry.k8s.io/pause:3.8": failed to pull and unpack image "registry.k8s.io/pause:3.8": failed to copy: httpReadSeeker: failed open: failed to do request: Get "https://prod-registry-k8s-io-us-west-1.s3.dualstack.us-west-1.amazonaws.com/containers/images/sha256:4873874c08efc72e9729683a83ffbb7502ee729e9a5ac097723806ea7fa13517": dial tcp: lookup prod-registry-k8s-io-us-west-1.s3.dualstack.us-west-1.amazonaws.com: no such host

@klihub
Copy link
Copy Markdown
Member

klihub commented Apr 10, 2024

LGTM for the CRI related code changes.
In fedora39 vagrant integration one test case, TestUpgrade, fails in the test-cri-integration. I don't see how these changes could directly cause that, but combing through the logs more carefully would be a good idea.

I don't know if this is the reason for TestUpgrade failing and if it is then just a transient...

Looks like it was a transient.

@dmcgowan dmcgowan added this to the 2.0 milestone Apr 11, 2024
@estesp estesp added this pull request to the merge queue Apr 11, 2024
Merged via the queue into containerd:main with commit 99693a3 Apr 11, 2024
@elezar elezar deleted the bump-container-device-interface-v0.7.1 branch April 15, 2024 10:06
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.

6 participants