Skip to content

Commit

Permalink
Merge pull request coreos#1166 from miabbott/crictl_no_pull
Browse files Browse the repository at this point in the history
kola/test/crio: don't try to pull local images during crictl create
  • Loading branch information
Stephen Lowrie authored Jan 16, 2020
2 parents 77cd6d9 + 2e36448 commit 7997129
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions kola/tests/crio/crio.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func crioNetwork(c cluster.TestCluster) {
return err
}

containerID, err := c.SSH(dest, fmt.Sprintf("sudo crictl create %s %s %s",
containerID, err := c.SSH(dest, fmt.Sprintf("sudo crictl create --no-pull %s %s %s",
podID, crioConfigContainer, crioConfigPod))
if err != nil {
return err
Expand Down Expand Up @@ -348,7 +348,7 @@ func crioNetwork(c cluster.TestCluster) {
return err
}

containerID, err := c.SSH(src, fmt.Sprintf("sudo crictl create %s %s %s",
containerID, err := c.SSH(src, fmt.Sprintf("sudo crictl create --no-pull %s %s %s",
podID, crioConfigContainer, crioConfigPod))
if err != nil {
return err
Expand Down Expand Up @@ -389,9 +389,10 @@ func crioNetworksReliably(c cluster.TestCluster) {
if err != nil {
c.Fatal(err)
}

cmdCreatePod := fmt.Sprintf("sudo crictl runp %s", crioConfigPod)
podID := c.MustSSH(m, cmdCreatePod)
containerID := c.MustSSH(m, fmt.Sprintf("sudo crictl create %s %s %s",
containerID := c.MustSSH(m, fmt.Sprintf("sudo crictl create --no-pull %s %s %s",
podID, crioConfigContainer, crioConfigPod))
output = output + string(c.MustSSH(m, fmt.Sprintf("sudo crictl exec %s ping -i 0.2 10.88.0.1 -w 1 >/dev/null && echo PASS || echo FAIL", containerID)))
}
Expand Down Expand Up @@ -453,7 +454,7 @@ func crioPodContinuesDuringServiceRestart(c cluster.TestCluster) {
}
cmdCreatePod := fmt.Sprintf("sudo crictl runp %s", crioConfigPod)
podID := c.MustSSH(m, cmdCreatePod)
containerID := c.MustSSH(m, fmt.Sprintf("sudo crictl create %s %s %s",
containerID := c.MustSSH(m, fmt.Sprintf("sudo crictl create --no-pull %s %s %s",
podID, crioConfigContainer, crioConfigPod))

cmd := fmt.Sprintf("sudo crictl exec %s bash -c \"sleep 25 && echo PASS > /tmp/test/restart-test\"", containerID)
Expand Down

0 comments on commit 7997129

Please sign in to comment.