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:52
Elapsed4m41s
Revision5b927d9f49de8688d8493adbe0a5e39b2edf306f
Refs 437

No Test Failures!


Error lines from build-log.txt

... skipping 70 lines ...
go: downloading sigs.k8s.io/yaml v1.2.0
go: downloading github.com/google/go-cmp v0.5.0
go: downloading github.com/beorn7/perks v1.0.0
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:56:24.872573    9035 azure.go:42] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
E0921 10:56:24.872944    9035 azure.go:71] Failed to load config from file: /etc/kubernetes/azure.json
W0921 10:56:24.873051    9035 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:56:24.873136    9035 azure.go:71] Failed to load config from file: /etc/kubernetes/azure.json
W0921 10:56:24.874010    9035 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:56:24.911593    9035 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:56:24.912777    9035 azure.go:71] Failed to load config from file: /etc/kubernetes/azure.json
W0921 10:56:24.913041    9035 azure.go:42] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
--- PASS: TestGetCloudProvider (0.04s)
=== 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:56:29.541042    9035 azure.go:42] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
I0921 10:56:29.560052    9035 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
I0921 10:56:29.560206    9035 driver.go:93] Enabling controller service capability: PUBLISH_UNPUBLISH_VOLUME
I0921 10:56:29.560236    9035 driver.go:93] Enabling controller service capability: CREATE_DELETE_SNAPSHOT
I0921 10:56:29.560265    9035 driver.go:93] Enabling controller service capability: EXPAND_VOLUME
I0921 10:56:29.560301    9035 driver.go:112] Enabling volume access mode: SINGLE_NODE_WRITER
I0921 10:56:29.561316    9035 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:56:29.586533    9035 azure.go:42] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
I0921 10:56:29.602466    9035 azurefile.go:153] disable UseInstanceMetadata for controller
I0921 10:56:29.603936    9035 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
I0921 10:56:29.604000    9035 driver.go:93] Enabling controller service capability: PUBLISH_UNPUBLISH_VOLUME
I0921 10:56:29.604027    9035 driver.go:93] Enabling controller service capability: CREATE_DELETE_SNAPSHOT
I0921 10:56:29.604053    9035 driver.go:93] Enabling controller service capability: EXPAND_VOLUME
I0921 10:56:29.604080    9035 driver.go:112] Enabling volume access mode: SINGLE_NODE_WRITER
... skipping 36 lines ...
=== RUN   TestCreateVolume/Create_file_share_error_tests
I0921 10:56:29.736845    9035 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
W0921 10:56:29.738159    9035 controllerserver.go:66] no quota specified, set as default value(100 GiB)
=== RUN   TestCreateVolume/Request_namespace_does_not_match
I0921 10:56:29.739069    9035 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
W0921 10:56:29.739229    9035 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:56:29.740342    9035 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
W0921 10:56:29.740450    9035 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:56:29.750673    9035 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
W0921 10:56:29.750722    9035 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:56:29.753762    9035 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
W0921 10:56:29.753826    9035 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.10s)
    --- PASS: TestCreateVolume/Controller_Capability_missing (0.04s)
    --- 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:56:29.786567    9035 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.02s)
    --- 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:56:29.849370    9035 controllerserver.go:644] NewSharedKeyCredential() in CreateSnapshot failed with error: illegal base64 data at input byte 3
E0921 10:56:29.849557    9035 controllerserver.go:650] parse serviceURLTemplate error: parse "https://^f5713de20cde511e8ba4900.file.abc": invalid character "^" in host name
--- PASS: TestGetServiceURL (0.00s)
=== 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:56:29.862123    9035 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:56:29.864268    9035 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:56:29.877961    9035 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:56:29.878223    9035 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:56:29.878734    9035 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:56:29.878842    9035 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.01s)
=== RUN   TestNodeUnstageVolume
W0921 10:56:29.880093    9035 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:56:29.880174    9035 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.00s)
=== RUN   TestNodeGetVolumeStats
--- PASS: TestNodeGetVolumeStats (0.00s)
=== RUN   TestEnsureMountPoint
W0921 10:56:29.892059    9035 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:56:29.892195    9035 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.00s)
=== RUN   TestGetVersion
--- PASS: TestGetVersion (0.00s)
=== RUN   TestGetVersionYAML
--- PASS: TestGetVersionYAML (0.00s)
FAIL
FAIL	sigs.k8s.io/azurefile-csi-driver/pkg/azurefile	8.251s
?   	sigs.k8s.io/azurefile-csi-driver/pkg/azurefileplugin	[no test files]
=== RUN   TestValidateVolumeCapabilities
I0921 10:56:19.016960    8980 driver.go:112] Enabling volume access mode: SINGLE_NODE_WRITER
I0921 10:56:19.017255    8980 driver.go:112] Enabling volume access mode: SINGLE_NODE_READER_ONLY
I0921 10:56:19.017315    8980 driver.go:112] Enabling volume access mode: MULTI_NODE_READER_ONLY
--- PASS: TestValidateVolumeCapabilities (0.00s)
... skipping 109 lines ...
=== RUN   TestCreateAzureCredentialFileOnAzurePublicCloud/WithEnvironmentVariables
--- PASS: TestCreateAzureCredentialFileOnAzurePublicCloud (0.05s)
    --- PASS: TestCreateAzureCredentialFileOnAzurePublicCloud/WithAzureCredentials (0.04s)
    --- PASS: TestCreateAzureCredentialFileOnAzurePublicCloud/WithEnvironmentVariables (0.01s)
PASS
ok  	sigs.k8s.io/azurefile-csi-driver/test/utils/credentials	0.419s
FAIL
make: *** [Makefile:55: unit-test] Error 1
+ EXIT_VALUE=2
+ set +o xtrace