-
Notifications
You must be signed in to change notification settings - Fork 201
Add critest to Makefile and Docker test image #563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,6 +141,24 @@ perf-test: | |
$(FIRECRACKER_CONTAINERD_TEST_IMAGE):$(DOCKER_IMAGE_TAG) \ | ||
"go test -timeout 0 -v -count=1 -run \"^$(PERF_TESTNAME)$$\"" | ||
|
||
.PHONY: critest | ||
critest: | ||
$(CURDIR)/../tools/thinpool.sh reset "$(FICD_DM_POOL)" | ||
docker run --rm -it \ | ||
--privileged \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it work with --network=none? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as I have right now, it does not work with --network=none because critest need to pull an image for creating Pod sandboxes. Would it be best to pull this sandbox image into FIRECRACKER_CONTAINERD_TEST_IMAGE , then ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see. It would be better to keep that as is. Technically we could pull some images beforehand, but that may make critest less useful, assuming we might break the pulling part someday. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok yes and just more on that, the sandbox image could be predownloading but networking would still have to be enable as there are tests for pulling images too (e.g. [It] public image with tag should be pulled and removed) So for now I think we'll have to enable networking for this test. |
||
--ipc=host \ | ||
--volume /dev:/dev \ | ||
--volume /run/udev/control:/run/udev/control \ | ||
--volume $(CURDIR)/..:/src \ | ||
--volume $(GO_CACHE_VOLUME_NAME):/go \ | ||
--env FICD_DM_VOLUME_GROUP=$(FICD_DM_VOLUME_GROUP) \ | ||
--env FICD_DM_POOL=$(FICD_DM_POOL) \ | ||
--env GOPROXY=direct \ | ||
--env GOSUMDB=off \ | ||
--workdir="/src/runtime" \ | ||
$(FIRECRACKER_CONTAINERD_TEST_IMAGE):$(DOCKER_IMAGE_TAG) \ | ||
"critest -runtime-endpoint unix:///run/firecracker-containerd/containerd.sock" | ||
|
||
clean: | ||
- rm -f containerd-shim-aws-firecracker | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
imports = ["/etc/containerd/snapshotter/*.toml"] | ||
imports = ["/etc/containerd/snapshotter/*.toml", "/etc/containerd/cri/*.toml"] | ||
[grpc] | ||
address = "/run/firecracker-containerd/containerd.sock" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"cniVersion": "0.2.0", | ||
"name": "mynet", | ||
"type": "bridge", | ||
"bridge": "cni0", | ||
"isGateway": true, | ||
"ipMasq": true, | ||
"ipam": { | ||
"type": "host-local", | ||
"subnet": "10.22.0.0/16", | ||
"routes": [ | ||
{ "dst": "0.0.0.0/0" } | ||
] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"cniVersion": "0.2.0", | ||
"name": "lo", | ||
"type": "loopback" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to pin the version of loopback? I believe go get is going to fetch the latest version.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, go get will get version @ latest . I was following how we currently get/install other container networking plugins:
firecracker-containerd/Makefile
Lines 235 to 249 in 3c25750
Do we want to be able to pin a version for each of these as well? Can take that up as a separate issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh okay. I'm fine doing that in a separate PR in this case.