Skip to content

Commit e77e866

Browse files
authored
Merge pull request #366 from mxpv/ss-tests
Remove mention of naive snapshotter from examples and tests
2 parents 006b04a + a386709 commit e77e866

File tree

6 files changed

+9
-15
lines changed

6 files changed

+9
-15
lines changed

examples/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ integ-test:
5151
TEST_GATEWAY?=172.16.0.1
5252
TEST_IP?=172.16.0.2
5353
TEST_SUBNET?=/24
54-
TEST_SS?=naive
54+
TEST_SS?=devmapper
5555
TEST_POOL?=
5656
testtap:
5757
ip link add br0 type bridge

examples/taskworkflow.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,11 @@ const (
4646
func main() {
4747
var containerCIDR = flag.String("ip", "", "ip address and subnet assigned to the container in CIDR notation. Example: -ip 172.16.0.2/24")
4848
var gatewayIP = flag.String("gw", "", "gateway ip address. Example: -gw 172.16.0.1")
49-
var snapshotter = flag.String("ss", "", "snapshotter")
49+
var snapshotter = flag.String("ss", "devmapper", "snapshotter")
5050

5151
log.SetFlags(log.Ldate | log.Ltime | log.Lmicroseconds)
5252
flag.Parse()
5353

54-
if *snapshotter == "naive" {
55-
*snapshotter = "firecracker-naive"
56-
}
57-
5854
if *containerCIDR != "" && *gatewayIP == "" {
5955
log.Fatal("Incorrect usage. 'gw' needs to be specified when 'ip' is specified")
6056
}

examples/taskworkflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### About
22
The `taskworkfow.go` file contains code to pull and unpack a container image
3-
using the `naive` snaphotter, create a container and execute a task using the
3+
using the `devmapper` snaphotter, create a container and execute a task using the
44
`firecracker-containerd` runtime.
55

66
### Building

runtime/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ PERF_RUNTIME_SECONDS?=600
7979
PERF_VM_MEMSIZE_MB?=1024
8080
PERF_TARGET_BANDWIDTH?=1G
8181

82-
FICD_SNAPSHOTTER?=naive
82+
FICD_SNAPSHOTTER?=devmapper
8383
FICD_DM_POOL?=
8484

8585
tc-redirect-tap-perf:

runtime/integ_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ var defaultRuntimeConfig = config.Config{
4444
}
4545

4646
func defaultSnapshotterName() string {
47-
name := os.Getenv("FICD_SNAPSHOTTER")
48-
if name == "" || name == "naive" {
49-
return "firecracker-naive"
47+
if name := os.Getenv("FICD_SNAPSHOTTER"); name != "" {
48+
return name
5049
}
5150

52-
return name
51+
return "devmapper"
5352
}
5453

5554
func prepareIntegTest(t *testing.T, options ...func(*config.Config)) {

tools/docker/Dockerfile.integ-test

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:experimental
2-
# Test image that starts up containerd and the naive snapshotter. The default CMD will drop to a bash shell. Overrides
2+
# Test image that starts up containerd and the devmapper snapshotter. The default CMD will drop to a bash shell. Overrides
33
# to CMD will be provided appended to /bin/bash -c
44
FROM golang:1.13-stretch
55
ENV PATH="/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/go/bin"
@@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND="noninteractive"
88

99
ARG FIRECRACKER_TARGET=x86_64-unknown-linux-musl
1010
ENV FICD_LOG_DIR="/var/log/firecracker-containerd-test"
11-
ENV FICD_SNAPSHOTTER="naive"
11+
ENV FICD_SNAPSHOTTER="devmapper"
1212
ENV FICD_SNAPSHOTTER_OUTFILE="${FICD_LOG_DIR}/snapshotter.out"
1313
ENV FICD_CONTAINERD_OUTFILE="${FICD_LOG_DIR}/containerd.out"
1414

@@ -26,7 +26,6 @@ RUN apt-get update && apt-get install --yes --no-install-recommends \
2626
RUN mkdir -p \
2727
/var/run/firecracker-containerd \
2828
/src \
29-
/var/lib/firecracker-containerd/naive \
3029
/srv/firecracker_containerd_tests \
3130
${FICD_LOG_DIR}
3231

0 commit comments

Comments
 (0)