google / gvisor-containerd-shim

containerd shim for gVisor
https://gvisor.dev
Apache License 2.0
79 stars 30 forks source link

critest: support mount propagation #25

Open zhuangqh opened 5 years ago

zhuangqh commented 5 years ago

Problem

critest v1.12

mount with 'rprivate' should not support propagation

• Failure in Spec Teardown (AfterEach) [6.550 seconds]
[k8s.io] Container Mount Propagation
/root/go/src/github.com/kubernetes-sigs/cri-tools/pkg/framework/framework.go:72
  runtime should support mount propagation
  /root/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container_linux.go:45
    mount with 'rprivate' should not support propagation [AfterEach]
    /root/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container_linux.go:60

    failed to execSync in container "695e7047d9fe8720563ff13fe9f061cf6bb7974d68ed66f0228bc07a754f7f64"
    Expected error:
        <exec.CodeExitError>: {
            Err: {
                s: "command 'sh -c mount --bind /etc /tmp/testab622a576a8f2420dc6d31805dfdac185e1b4551a271f0d83abbe4222fbff146097996492/mnt/containerMntPoint' exited with 255: mount: mounting /etc on /tmp/testab622a576a8f2420dc6d31805dfdac185e1b4551a271f0d83abbe4222fbff146097996492/mnt/containerMntPoint failed: Bad address\n",
            },
            Code: 255,
        }
        command 'sh -c mount --bind /etc /tmp/testab622a576a8f2420dc6d31805dfdac185e1b4551a271f0d83abbe4222fbff146097996492/mnt/containerMntPoint' exited with 255: mount: mounting /etc on /tmp/testab622a576a8f2420dc6d31805dfdac185e1b4551a271f0d83abbe4222fbff146097996492/mnt/containerMntPoint failed: Bad address

    not to have occurred

    /root/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container.go:369

mount with 'rshared' should support propagation from host to container and vice versa

• Failure in Spec Teardown (AfterEach) [6.482 seconds]
[k8s.io] Container Mount Propagation
/root/go/src/github.com/kubernetes-sigs/cri-tools/pkg/framework/framework.go:72
  runtime should support mount propagation
  /root/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container_linux.go:45
    mount with 'rshared' should support propagation from host to container and vice versa [AfterEach]
    /root/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container_linux.go:94

    failed to execSync in container "a4ca1a09d097e7619ab9ea48317548af47fbf052f6e966430487bbb8a6062a81"
    Expected error:
        <exec.CodeExitError>: {
            Err: {
                s: "command 'sh -c mount --bind /etc /tmp/testf5ea918a1409f939d2234bd252d6442090176ec0847e04c4d82be23a644b5328860555100/mnt/containerMntPoint' exited with 255: mount: mounting /etc on /tmp/testf5ea918a1409f939d2234bd252d6442090176ec0847e04c4d82be23a644b5328860555100/mnt/containerMntPoint failed: Bad address\n",
            },
            Code: 255,
        }
        command 'sh -c mount --bind /etc /tmp/testf5ea918a1409f939d2234bd252d6442090176ec0847e04c4d82be23a644b5328860555100/mnt/containerMntPoint' exited with 255: mount: mounting /etc on /tmp/testf5ea918a1409f939d2234bd252d6442090176ec0847e04c4d82be23a644b5328860555100/mnt/containerMntPoint failed: Bad address

    not to have occurred

    /root/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container.go:369

runtime should support mount propagation

• Failure in Spec Teardown (AfterEach) [6.243 seconds]
[k8s.io] Container Mount Propagation
/root/go/src/github.com/kubernetes-sigs/cri-tools/pkg/framework/framework.go:72
  runtime should support mount propagation
  /root/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container_linux.go:45
    mount with 'rslave' should support propagation from host to container [AfterEach]
    /root/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container_linux.go:128

    failed to execSync in container "5218a01be8ae4d127449afc605708aef456a71359f06d2b7cffa8d84d7e0480b"
    Expected error:
        <exec.CodeExitError>: {
            Err: {
                s: "command 'sh -c mount --bind /etc /tmp/testd4433ff59e5fa368a0e781fdea3d1f54e5e50763a1a44e008c09ff9fe22f32ce123019627/mnt/containerMntPoint' exited with 255: mount: mounting /etc on /tmp/testd4433ff59e5fa368a0e781fdea3d1f54e5e50763a1a44e008c09ff9fe22f32ce123019627/mnt/containerMntPoint failed: Bad address\n",
            },
            Code: 255,
        }
        command 'sh -c mount --bind /etc /tmp/testd4433ff59e5fa368a0e781fdea3d1f54e5e50763a1a44e008c09ff9fe22f32ce123019627/mnt/containerMntPoint' exited with 255: mount: mounting /etc on /tmp/testd4433ff59e5fa368a0e781fdea3d1f54e5e50763a1a44e008c09ff9fe22f32ce123019627/mnt/containerMntPoint failed: Bad address

    not to have occurred

    /root/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container.go:369

Version

containerd 1.2 + containerd-shim-runsc-v1 runsc commit 0b768871