Skip to content
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

Sanity test is not idempotent #83

Closed
songjiaxun opened this issue Nov 14, 2020 · 0 comments · Fixed by #95
Closed

Sanity test is not idempotent #83

songjiaxun opened this issue Nov 14, 2020 · 0 comments · Fixed by #95

Comments

@songjiaxun
Copy link
Contributor

songjiaxun commented Nov 14, 2020

What happened:
If you ran the sanity test twice, one test would fail. Seems like one volume is not mounted.
sudo umount -f /tmp/aa* helps.

------------------------------
Controller Service CreateVolume
  should not fail when creating volume with maximum-length name
  /home/azureuser/go/pkg/mod/github.com/kubernetes-csi/[email protected]+incompatible/pkg/sanity/controller.go:639
STEP: reusing connection to CSI driver at unix:///tmp/csi.sock
STEP: creating mount and staging directories
I1116 00:09:09.340667  130286 utils.go:47] GRPC call: /csi.v1.Controller/ControllerGetCapabilities
I1116 00:09:09.340688  130286 utils.go:48] GRPC request: {}
I1116 00:09:09.340731  130286 controllerserver.go:175] Using default ControllerGetCapabilities
I1116 00:09:09.340739  130286 utils.go:53] GRPC response: {"capabilities":[{"Type":{"Rpc":{"type":1}}}]}
STEP: creating a volume
I1116 00:09:09.341127  130286 utils.go:47] GRPC call: /csi.v1.Controller/CreateVolume
I1116 00:09:09.341142  130286 utils.go:48] GRPC request: {"capacity_range":{"required_bytes":10737418240},"name":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","parameters":{"server":"127.0.0.1","share":"/"},"volume_capabilities":[{"AccessType":{"Mount":{}},"access_mode":{"mode":1}}]}
I1116 00:09:09.341232  130286 controllerserver.go:243] internally mounting 127.0.0.1:/ at /tmp/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
I1116 00:09:09.378808  130286 controllerserver.go:261] internally unmounting /tmp/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
W1116 00:09:09.378835  130286 controllerserver.go:75] failed to unmount nfs server: rpc error: code = InvalidArgument desc = Volume ID missing in request
E1116 00:09:09.378842  130286 utils.go:51] GRPC error: rpc error: code = Internal desc = failed to make subdirectory: mkdir /tmp/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa: file exists

• Failure [0.039 seconds]
Controller Service
/home/azureuser/go/pkg/mod/github.com/kubernetes-csi/[email protected]+incompatible/pkg/sanity/tests.go:44
  CreateVolume
  /home/azureuser/go/pkg/mod/github.com/kubernetes-csi/[email protected]+incompatible/pkg/sanity/controller.go:358
    should not fail when creating volume with maximum-length name [It]
    /home/azureuser/go/pkg/mod/github.com/kubernetes-csi/[email protected]+incompatible/pkg/sanity/controller.go:639

    Unexpected error:
        <*status.statusError | 0xc0003e4840>: {
            state: {
                NoUnkeyedLiterals: {},
                DoNotCompare: [],
                DoNotCopy: [],
                atomicMessageInfo: nil,
            },
            sizeCache: 0,
            unknownFields: nil,
            Code: 13,
            Message: "failed to make subdirectory: mkdir /tmp/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa: file exists",
            Details: nil,
        }
        rpc error: code = Internal desc = failed to make subdirectory: mkdir /tmp/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa: file exists
    occurred

    /home/azureuser/go/pkg/mod/github.com/kubernetes-csi/[email protected]+incompatible/pkg/sanity/controller.go:670
------------------------------

What you expected to happen:

How to reproduce it:

Anything else we need to know?:

Environment:

  • CSI Driver version:
  • Kubernetes version (use kubectl version):
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
jsafrane pushed a commit to jsafrane/csi-driver-nfs that referenced this issue Jun 28, 2022
…cy-openshift-4.11-csi-driver-nfs

Updating csi-driver-nfs images to be consistent with ART
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant