Skip to content

Commit

Permalink
Merge pull request #401 from Callisto13/fix-ctrd-test-path
Browse files Browse the repository at this point in the history
Pin firecracker to `v0.25.2-macvtap` for nightly e2es
  • Loading branch information
Callisto13 authored Feb 23, 2022
2 parents 8032d3f + d270158 commit 194618b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
25 changes: 12 additions & 13 deletions test/e2e/utils/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,16 @@ import (
)

const (
containerdBin = "containerd"
flintlockCmdDir = "github.com/weaveworks/flintlock/cmd/flintlockd"
containerdSocket = "/run/containerd-e2e/containerd.sock"
containerdCfgDir = "/etc/containerd/config-e2e.toml"
containerdCfg = containerdCfgDir + "/config-e2e.toml"
containerdRootDir = "/var/lib/containerd-e2e"
containerdStateDir = "/run/containerd-e2e"
grpcDialTarget = "127.0.0.1:9090"
loopDeviceTag = "e2e"
containerdGrpcAddress = containerdStateDir + "/containerd.sock"
devMapperRoot = containerdRootDir + "/snapshotter/devmapper"
containerdBin = "containerd"
flintlockCmdDir = "github.com/weaveworks/flintlock/cmd/flintlockd"
containerdCfgDir = "/etc/containerd"
containerdRootDir = "/var/lib/containerd-e2e"
containerdStateDir = "/run/containerd-e2e"
containerdCfg = containerdCfgDir + "/config-e2e.toml"
containerdSocket = containerdStateDir + "/containerd.sock"
devMapperRoot = containerdRootDir + "/snapshotter/devmapper"
grpcDialTarget = "127.0.0.1:9090"
loopDeviceTag = "e2e"
)

// Runner holds test runner configuration.
Expand Down Expand Up @@ -156,7 +155,7 @@ func (r *Runner) writeContainerdConfig() {
"pool_name": r.params.ThinpoolName,
"root_path": devMapperRoot,
"base_image_size": "10GB",
"discard_blocks": "true",
"discard_blocks": true,
}
pluginTree, err := toml.TreeFromMap(dmplug)
gm.Expect(err).NotTo(gm.HaveOccurred())
Expand All @@ -166,7 +165,7 @@ func (r *Runner) writeContainerdConfig() {
Root: containerdRootDir,
State: containerdStateDir,
GRPC: ccfg.GRPCConfig{
Address: containerdGrpcAddress,
Address: containerdSocket,
},
Metrics: ccfg.MetricsConfig{
Address: "127.0.0.1:1338",
Expand Down
2 changes: 1 addition & 1 deletion test/tools/config/userdata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if [[ -z "$SKIP_DIRECT_LVM" ]]; then
fi

# install latest firecracker
./flintlock/hack/scripts/provision.sh firecracker
./flintlock/hack/scripts/provision.sh firecracker --version v0.25.2-macvtap

# install and setup containerd
curl -sL https://api.github.com/repos/containerd/containerd/releases/latest 2>/dev/null |
Expand Down

0 comments on commit 194618b

Please sign in to comment.