containerd-stress: add support for running through CRI#6931
containerd-stress: add support for running through CRI#6931samuelkarp merged 1 commit intocontainerd:mainfrom
Conversation
|
Hi @egernst. 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 Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
19fbb4d to
d811b8c
Compare
|
Looks like the branch you started from is missing some recent commits from |
|
Thanks Phil (and Sam). Rebased accordingly. |
|
@samuelkarp Can you take a look? |
|
I tried running this, but I'm getting a bunch of errors like this: Here's how I invoked it: Meanwhile, the |
|
@samuelkarp thanks for giving it a try. crictl/CRI doesn't use the containerd fully qualified runtime name. Instead, it just uses the handler name. For runc, it'd be Example: I updated the usage of --cri in order to help clarify this change in expectations: |
Introduce a --cri flag, which will enable running container-stress using the CRI, instead of containerd's task API. In doing so, we introduce cri_worker, rename the existing worker to ctr_worker, and introduce a worker interface that each of these implement. Signed-off-by: Eric Ernst <[email protected]>
I didn't specify a runtime name, that was the default when running containerd-stress with just the With that said, when I run the command you provided I get further errors as follows: Can you document the requirements for running containerd-stress in this new mode? I assume it'd be something like:
|
|
I updated the --cri usage to provide more details on expectations of --runtime flag -- does that meet your needs? I think we'll probably want to introduce a README for containerd-stress if we want to augment and have more details around usage, expectations? WDYT? |
I don't see a new change yet (maybe it didn't get pushed?), but that would probably work. |
|
Goodness gracious, my fault. actually pushed now. Thanks. |
mikebrow
left a comment
There was a problem hiding this comment.
have not reviewed yet.. just a heads up there is a project called cri-tools where we usually create cri tools :-) there may also be a stress bucket or two over in k8s e2e.. Some may not want to put a CRI dependency here..
|
Hey Mike -- I did consider this initially. I want the same ux as existing containerd-stress, and frankly, the containerd-stress codebase was much easier to work with. We already have a (nice) package for interacting with CRI in containerd, and we are exercising the CRI handling which is implemented within containerd, so I figured it is pretty reasonable to include here. |
samuelkarp
left a comment
There was a problem hiding this comment.
I finally had the chance to come back and test this and it does work as long as the CNI plugins are also installed. LGTM.
Introduce a --cri flag, which'll run containerd-stress using the CRI,
instead of containerd's task api.
In doing so, introduce cri_worker, rename existing worker to ctr_worker and introduce
a worker interface that each of these implement.
Signed-off-by: Eric Ernst [email protected]