Skip to content

LifeCycle test fails since 'unpublish' is not run #316

@tikolsky

Description

@tikolsky

On branch master - in "volume lifecycle" test (func VolumeLifecycle), seems like the last method running is ControllerPublishVolumeRequest and nothing after that, which causes the test to fail since it expects unpublish.

on the other hand, on branch release-3.1, Lifecycle tests pass.

This is the failure from master branch:

CSI Driver Test Suite.Controller Service [Controller Server] volume lifecycle should workFailing for the past 2 builds (Since #580 )Took 0.44 sec.add descriptionStacktrace/usr/local/go/src/github.com/kubernetes-csi/csi-test/pkg/sanity/controller.go:119
recorded 1 failure(s)
/go/pkg/mod/github.com/onsi/ginkgo@v1.10.3/internal/leafnodes/runner.go:113Standard Output�[1mSTEP�[0m: reusing connection to CSI driver at /tmp/k8s_dir/nodecsi
�[1mSTEP�[0m: reusing connection to CSI driver controller at /tmp/k8s_dir/f
�[1mSTEP�[0m: creating mount and staging directories
�[1mSTEP�[0m: getting node information
�[1mSTEP�[0m: creating a single node writer volume
�[1mSTEP�[0m: calling controllerpublish on that volume
cleanup volumes: deleting A9000:6001738CFC9035EA000000000078E5C7
cleanup volumes: DeleteVolume failed: rpc error: code = Internal desc = an internal exception occurred : The volume mapped to a host cannot be deleted.

and:

CSI Driver Test Suite.Controller Service [Controller Server] volume lifecycle should be idempotentFailing for the past 2 builds (Since #580 )Took 23 ms.add descriptionStacktrace/usr/local/go/src/github.com/kubernetes-csi/csi-test/pkg/sanity/controller.go:1066
volume create failed
Unexpected error:
    <*status.Error | 0xc0001fe550>: {
        Code: 6,
        Message: "Volume was already created with different size.",
        Details: nil,
        XXX_NoUnkeyedLiteral: {},
        XXX_unrecognized: nil,
        XXX_sizecache: 0,
    }
    rpc error: code = AlreadyExists desc = Volume was already created with different size.
occurred
/usr/local/go/src/github.com/kubernetes-csi/csi-test/pkg/sanity/controller.go:1659Standard Output�[1mSTEP�[0m: reusing connection to CSI driver at /tmp/k8s_dir/nodecsi
�[1mSTEP�[0m: reusing connection to CSI driver controller at /tmp/k8s_dir/f
�[1mSTEP�[0m: creating mount and staging directories
�[1mSTEP�[0m: getting node information
�[1mSTEP�[0m: creating a single node writer volume

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions