This job view page is being replaced by Spyglass soon. Check out the new job view.
PRandyzhangx: fix: only lock when account is not provided
ResultFAILURE
Tests 0 failed / 0 succeeded
Started2020-09-21 10:51
Elapsed2m15s
Revision5b927d9f49de8688d8493adbe0a5e39b2edf306f
Refs 437

No Test Failures!


Error lines from build-log.txt

... skipping 70 lines ...
go: downloading github.com/Azure/go-autorest/autorest/date v0.3.0
go: downloading github.com/evanphx/json-patch v4.5.0+incompatible
go: downloading github.com/pkg/errors v0.8.1
go: downloading github.com/Azure/go-autorest/autorest/validation v0.1.0
go: downloading github.com/satori/go.uuid v1.2.0
=== RUN   TestGetCloudProvider
W0921 10:53:41.968662    9147 azure.go:42] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
E0921 10:53:41.974209    9147 azure.go:71] Failed to load config from file: /etc/kubernetes/azure.json
W0921 10:53:41.974285    9147 azure.go:42] get kubeconfig(/home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/non-exist.json) failed with error: stat /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/non-exist.json: no such file or directory
E0921 10:53:41.974443    9147 azure.go:71] Failed to load config from file: /etc/kubernetes/azure.json
W0921 10:53:41.975372    9147 azure.go:42] get kubeconfig(/home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/empty-kube-config) failed with error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
W0921 10:53:41.999681    9147 azure_config.go:52] Failed to get cloud-config from secret: failed to get secret azure-cloud-provider: Get "https://localhost:8080/api/v1/namespaces/kube-system/secrets/azure-cloud-provider": getting credentials: exec: exec: "foo-command": executable file not found in $PATH, skip initializing from secret
E0921 10:53:41.999767    9147 azure.go:71] Failed to load config from file: /etc/kubernetes/azure.json
W0921 10:53:42.000000    9147 azure.go:42] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
--- PASS: TestGetCloudProvider (0.03s)
=== RUN   TestGetFileSvcClient
--- PASS: TestGetFileSvcClient (0.00s)
=== RUN   TestCreateFileShare
=== RUN   TestCreateFileShare/ShareOptions_empty
=== RUN   TestCreateFileShare/AccountName_invalid
... skipping 43 lines ...
Driver Version: N/A
Git Commit: N/A
Go Version: go1.15.2
Platform: linux/amd64

Streaming logs below:
W0921 10:53:46.331400    9147 azure.go:42] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
I0921 10:53:46.343622    9147 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
I0921 10:53:46.343685    9147 driver.go:93] Enabling controller service capability: PUBLISH_UNPUBLISH_VOLUME
I0921 10:53:46.343715    9147 driver.go:93] Enabling controller service capability: CREATE_DELETE_SNAPSHOT
I0921 10:53:46.343754    9147 driver.go:93] Enabling controller service capability: EXPAND_VOLUME
I0921 10:53:46.343793    9147 driver.go:112] Enabling volume access mode: SINGLE_NODE_WRITER
I0921 10:53:46.343834    9147 driver.go:112] Enabling volume access mode: SINGLE_NODE_READER_ONLY
... skipping 11 lines ...
Driver Version: N/A
Git Commit: N/A
Go Version: go1.15.2
Platform: linux/amd64

Streaming logs below:
W0921 10:53:46.347531    9147 azure.go:42] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
I0921 10:53:46.348808    9147 azurefile.go:153] disable UseInstanceMetadata for controller
I0921 10:53:46.349797    9147 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
I0921 10:53:46.349855    9147 driver.go:93] Enabling controller service capability: PUBLISH_UNPUBLISH_VOLUME
I0921 10:53:46.349878    9147 driver.go:93] Enabling controller service capability: CREATE_DELETE_SNAPSHOT
I0921 10:53:46.349962    9147 driver.go:93] Enabling controller service capability: EXPAND_VOLUME
I0921 10:53:46.349996    9147 driver.go:112] Enabling volume access mode: SINGLE_NODE_WRITER
... skipping 36 lines ...
=== RUN   TestCreateVolume/Create_file_share_error_tests
I0921 10:53:46.405788    9147 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
W0921 10:53:46.405838    9147 controllerserver.go:66] no quota specified, set as default value(100 GiB)
=== RUN   TestCreateVolume/Request_namespace_does_not_match
I0921 10:53:46.406445    9147 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
W0921 10:53:46.406495    9147 controllerserver.go:66] no quota specified, set as default value(100 GiB)
    controllerserver_test.go:469: Unexpected error: rpc error: code = Internal desc = failed to store storage account key: the account info is not enough, accountName(), accountKey(bar)
=== RUN   TestCreateVolume/Create_disk_returns_error
I0921 10:53:46.407184    9147 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
W0921 10:53:46.407227    9147 controllerserver.go:66] no quota specified, set as default value(100 GiB)
    controllerserver_test.go:556: Unexpected error: rpc error: code = Internal desc = failed to create VHD disk: NewSharedKeyCredential() failed with error: illegal base64 data at input byte 0
I0921 10:53:46.409486    9147 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
W0921 10:53:46.409540    9147 controllerserver.go:66] no quota specified, set as default value(100 GiB)
    controllerserver_test.go:556: Unexpected error: rpc error: code = Internal desc = failed to create VHD disk: NewSharedKeyCredential() failed with error: illegal base64 data at input byte 0
=== RUN   TestCreateVolume/Valid_request
I0921 10:53:46.418595    9147 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
W0921 10:53:46.418669    9147 controllerserver.go:66] no quota specified, set as default value(100 GiB)
    controllerserver_test.go:627: Unexpected error: rpc error: code = Internal desc = failed to store storage account key: the account info is not enough, accountName(), accountKey(bar)
--- FAIL: TestCreateVolume (0.04s)
    --- PASS: TestCreateVolume/Controller_Capability_missing (0.02s)
    --- PASS: TestCreateVolume/Volume_name_missing (0.00s)
    --- PASS: TestCreateVolume/Volume_capabilities_missing (0.00s)
    --- FAIL: TestCreateVolume/No_valid_key_with_zero_request_gib (0.00s)
    --- FAIL: TestCreateVolume/No_valid_key,_check_all_params,_with_less_than_min_premium_volume (0.00s)
    --- PASS: TestCreateVolume/Get_file_share_returns_error (0.00s)
    --- PASS: TestCreateVolume/Create_file_share_error_tests (0.00s)
    --- FAIL: TestCreateVolume/Request_namespace_does_not_match (0.00s)
    --- FAIL: TestCreateVolume/Create_disk_returns_error (0.01s)
    --- FAIL: TestCreateVolume/Valid_request (0.00s)
=== RUN   TestDeleteVolume
=== RUN   TestDeleteVolume/Volume_ID_missing
=== RUN   TestDeleteVolume/Controller_capability_missing
=== RUN   TestDeleteVolume/Invalid_volume_ID
E0921 10:53:46.421592    9147 controllerserver.go:280] GetFileShareInfo(vol_1) in DeleteVolume failed with error: error parsing volume id: "vol_1", should at least contain two #
=== RUN   TestDeleteVolume/Delete_file_share_returns_error
=== RUN   TestDeleteVolume/Valid_request
--- PASS: TestDeleteVolume (0.00s)
    --- PASS: TestDeleteVolume/Volume_ID_missing (0.00s)
    --- PASS: TestDeleteVolume/Controller_capability_missing (0.00s)
    --- PASS: TestDeleteVolume/Invalid_volume_ID (0.00s)
... skipping 33 lines ...
    --- PASS: TestControllerExpandVolume/Disk_name_not_empty (0.00s)
    --- PASS: TestControllerExpandVolume/Resize_file_share_returns_error (0.00s)
    --- PASS: TestControllerExpandVolume/Valid_request (0.00s)
=== RUN   TestGetShareURL
--- PASS: TestGetShareURL (0.00s)
=== RUN   TestGetServiceURL
E0921 10:53:46.448728    9147 controllerserver.go:644] NewSharedKeyCredential() in CreateSnapshot failed with error: illegal base64 data at input byte 3
E0921 10:53:46.449061    9147 controllerserver.go:650] parse serviceURLTemplate error: parse "https://^f5713de20cde511e8ba4900.file.abc": invalid character "^" in host name
--- PASS: TestGetServiceURL (0.01s)
=== RUN   TestSnapshotExists
--- PASS: TestSnapshotExists (0.00s)
=== RUN   TestGetCapacity
--- PASS: TestGetCapacity (0.00s)
=== RUN   TestListVolumes
... skipping 14 lines ...
--- PASS: TestGetPluginCapabilities (0.00s)
=== RUN   TestNodeGetInfo
--- PASS: TestNodeGetInfo (0.00s)
=== RUN   TestNodeGetCapabilities
--- PASS: TestNodeGetCapabilities (0.00s)
=== RUN   TestNodePublishVolume
E0921 10:53:46.460289    9147 nodeserver.go:371] MakeDir failed on target: /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/azure.go (mkdir /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/azure.go: not a directory)
--- PASS: TestNodePublishVolume (0.00s)
=== RUN   TestNodeUnpublishVolume
W0921 10:53:46.463385    9147 mount_helper_common.go:33] Warning: Unmount skipped because path does not exist: /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/abc.go
--- PASS: TestNodeUnpublishVolume (0.00s)
=== RUN   TestNodeStageVolume
I0921 10:53:46.465605    9147 mount_linux.go:366] Disk "/home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk" appears to be unformatted, attempting to format as type: "ext4" with options: [-F -m0 /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk]
E0921 10:53:46.465959    9147 mount_linux.go:372] format of disk "/home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk" failed: type:("ext4") target:("/home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/source_test") options:("barrier=1,errors=remount-ro,loop,noatime,defaults") errcode:(formatting failed) output:() 
I0921 10:53:46.467255    9147 mount_linux.go:366] Disk "/home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk" appears to be unformatted, attempting to format as type: "ext4" with options: [-F -m0 /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk]
I0921 10:53:46.467390    9147 mount_linux.go:376] Disk successfully formatted (mkfs): ext4 - /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/source_test
--- PASS: TestNodeStageVolume (0.00s)
=== RUN   TestNodeUnstageVolume
W0921 10:53:46.475206    9147 mount_helper_common.go:33] Warning: Unmount skipped because path does not exist: /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/abc.go
W0921 10:53:46.475299    9147 mount_helper_common.go:33] Warning: Unmount skipped because path does not exist: /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount
--- PASS: TestNodeUnstageVolume (0.01s)
=== RUN   TestNodeGetVolumeStats
--- PASS: TestNodeGetVolumeStats (0.00s)
=== RUN   TestEnsureMountPoint
W0921 10:53:46.476546    9147 nodeserver.go:361] ReadDir ./false_is_likely_target failed with open ./false_is_likely_target: no such file or directory, unmount this directory
E0921 10:53:46.476725    9147 nodeserver.go:371] MakeDir failed on target: ./azure.go (mkdir ./azure.go: not a directory)
--- PASS: TestEnsureMountPoint (0.00s)
=== RUN   TestMakeDir
--- PASS: TestMakeDir (0.00s)
=== RUN   TestNodeExpandVolume
--- PASS: TestNodeExpandVolume (0.00s)
=== RUN   TestSimpleLockEntry
... skipping 14 lines ...
=== RUN   TestIsRetriableError
--- PASS: TestIsRetriableError (0.01s)
=== RUN   TestGetVersion
--- PASS: TestGetVersion (0.00s)
=== RUN   TestGetVersionYAML
--- PASS: TestGetVersionYAML (0.00s)
FAIL
FAIL	sigs.k8s.io/azurefile-csi-driver/pkg/azurefile	7.067s
?   	sigs.k8s.io/azurefile-csi-driver/pkg/azurefileplugin	[no test files]
=== RUN   TestValidateVolumeCapabilities
I0921 10:53:38.379681    9069 driver.go:112] Enabling volume access mode: SINGLE_NODE_WRITER
I0921 10:53:38.379955    9069 driver.go:112] Enabling volume access mode: SINGLE_NODE_READER_ONLY
I0921 10:53:38.380010    9069 driver.go:112] Enabling volume access mode: MULTI_NODE_READER_ONLY
--- PASS: TestValidateVolumeCapabilities (0.00s)
... skipping 109 lines ...
=== RUN   TestCreateAzureCredentialFileOnAzurePublicCloud/WithEnvironmentVariables
--- PASS: TestCreateAzureCredentialFileOnAzurePublicCloud (0.03s)
    --- PASS: TestCreateAzureCredentialFileOnAzurePublicCloud/WithAzureCredentials (0.02s)
    --- PASS: TestCreateAzureCredentialFileOnAzurePublicCloud/WithEnvironmentVariables (0.01s)
PASS
ok  	sigs.k8s.io/azurefile-csi-driver/test/utils/credentials	0.204s
FAIL
make: *** [Makefile:55: unit-test] Error 1
+ EXIT_VALUE=2
+ set +o xtrace