This job view page is being replaced by Spyglass soon. Check out the new job view.
PRcvvz: feat: support cross subscription with management api
ResultFAILURE
Tests 0 failed / 0 succeeded
Started2022-09-01 07:53
Elapsed1m41s
Revision7bcaeb79344b45a8c4148959c12fffe580c8a324
Refs 1077

No Test Failures!


Error lines from build-log.txt

Activated service account credentials for: [pr-kubekins@kubernetes-jenkins-pull.iam.gserviceaccount.com]
+ WRAPPED_COMMAND_PID=31
+ wait 31
+ make unit-test
go test -v -race ./pkg/... ./test/utils/credentials
=== RUN   TestGetCloudProvider
W0901 07:54:59.653833   10876 azure.go:59] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
W0901 07:54:59.654035   10876 azure.go:98] load azure config from file(/etc/kubernetes/azure.json) failed with open /etc/kubernetes/azure.json: no such file or directory
W0901 07:54:59.654113   10876 azure.go:59] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
W0901 07:54:59.654169   10876 azure.go:98] load azure config from file(/etc/kubernetes/azure.json) failed with open /etc/kubernetes/azure.json: no such file or directory
W0901 07:54:59.654237   10876 azure.go:59] 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
W0901 07:54:59.654281   10876 azure.go:98] load azure config from file(/etc/kubernetes/azure.json) failed with open /etc/kubernetes/azure.json: no such file or directory
W0901 07:54:59.654764   10876 azure.go:59] 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
W0901 07:54:59.658862   10876 azure.go:98] load azure config from file(/etc/kubernetes/azure.json) failed with open /etc/kubernetes/azure.json: no such file or directory
W0901 07:54:59.659053   10876 azure.go:59] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
--- PASS: TestGetCloudProvider (0.01s)
=== RUN   TestUpdateSubnetServiceEndpoints
=== RUN   TestUpdateSubnetServiceEndpoints/[fail]_no_subnet
=== RUN   TestUpdateSubnetServiceEndpoints/[success]_subnetPropertiesFormat_is_nil
=== RUN   TestUpdateSubnetServiceEndpoints/[success]_ServiceEndpoints_is_nil
=== RUN   TestUpdateSubnetServiceEndpoints/[success]_storageService_does_not_exists
=== RUN   TestUpdateSubnetServiceEndpoints/[success]_storageService_already_exists
=== RUN   TestUpdateSubnetServiceEndpoints/[fail]_SubnetsClient_is_nil
--- PASS: TestUpdateSubnetServiceEndpoints (0.00s)
    --- PASS: TestUpdateSubnetServiceEndpoints/[fail]_no_subnet (0.00s)
    --- PASS: TestUpdateSubnetServiceEndpoints/[success]_subnetPropertiesFormat_is_nil (0.00s)
    --- PASS: TestUpdateSubnetServiceEndpoints/[success]_ServiceEndpoints_is_nil (0.00s)
    --- PASS: TestUpdateSubnetServiceEndpoints/[success]_storageService_does_not_exists (0.00s)
    --- PASS: TestUpdateSubnetServiceEndpoints/[success]_storageService_already_exists (0.00s)
    --- PASS: TestUpdateSubnetServiceEndpoints/[fail]_SubnetsClient_is_nil (0.00s)
=== RUN   TestGetFileSvcClient
--- PASS: TestGetFileSvcClient (0.00s)
=== RUN   TestCreateFileShare
=== RUN   TestCreateFileShare/ShareOptions_empty
=== RUN   TestCreateFileShare/AccountName_invalid
=== RUN   TestCreateFileShare/#00
... skipping 31 lines ...
--- PASS: TestIsCorruptedDir (0.00s)
=== RUN   TestNewDriver
--- PASS: TestNewDriver (0.00s)
=== RUN   TestGetFileURL
--- PASS: TestGetFileURL (0.00s)
=== RUN   TestGetAccountInfo
W0901 07:55:00.956187   10876 azurefile.go:585] parsing volumeID(uniqe-volumeid-nfs) return with error: error parsing volume id: "uniqe-volumeid-nfs", should at least contain two #
--- PASS: TestGetAccountInfo (0.00s)
=== RUN   TestCreateDisk
--- PASS: TestCreateDisk (4.40s)
=== RUN   TestGetFileShareQuota
--- PASS: TestGetFileShareQuota (0.00s)
=== RUN   TestRun
... skipping 7 lines ...
Driver Version: N/A
Git Commit: N/A
Go Version: go1.19
Platform: linux/amd64

Streaming logs below:
W0901 07:55:05.361834   10876 azure.go:59] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
I0901 07:55:05.364430   10876 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
I0901 07:55:05.364485   10876 driver.go:93] Enabling controller service capability: PUBLISH_UNPUBLISH_VOLUME
I0901 07:55:05.364503   10876 driver.go:93] Enabling controller service capability: CREATE_DELETE_SNAPSHOT
I0901 07:55:05.364519   10876 driver.go:93] Enabling controller service capability: EXPAND_VOLUME
I0901 07:55:05.364533   10876 driver.go:93] Enabling controller service capability: SINGLE_NODE_MULTI_WRITER
I0901 07:55:05.364588   10876 driver.go:112] Enabling volume access mode: SINGLE_NODE_WRITER
... skipping 14 lines ...
Driver Version: N/A
Git Commit: N/A
Go Version: go1.19
Platform: linux/amd64

Streaming logs below:
W0901 07:55:05.366251   10876 azure.go:59] get kubeconfig() failed with error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
I0901 07:55:05.367210   10876 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
I0901 07:55:05.367251   10876 driver.go:93] Enabling controller service capability: PUBLISH_UNPUBLISH_VOLUME
I0901 07:55:05.367271   10876 driver.go:93] Enabling controller service capability: CREATE_DELETE_SNAPSHOT
I0901 07:55:05.367286   10876 driver.go:93] Enabling controller service capability: EXPAND_VOLUME
I0901 07:55:05.367300   10876 driver.go:93] Enabling controller service capability: SINGLE_NODE_MULTI_WRITER
I0901 07:55:05.367318   10876 driver.go:112] Enabling volume access mode: SINGLE_NODE_WRITER
... skipping 82 lines ...
=== RUN   TestCreateVolume/invalid_parameter
I0901 07:55:05.380710   10876 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
W0901 07:55:05.380767   10876 controllerserver.go:98] no quota specified, set as default value(100 GiB)
=== RUN   TestCreateVolume/Account_limit_exceeded
I0901 07:55:05.381136   10876 driver.go:93] Enabling controller service capability: CREATE_DELETE_VOLUME
W0901 07:55:05.381173   10876 controllerserver.go:98] no quota specified, set as default value(100 GiB)
W0901 07:55:05.381310   10876 controllerserver.go:459] create file share(random-vol-name-valid-request) on account(stoacc) type(premium) subID() rg(rg) location(loc) size(100), error: TotalSharesProvisionedCapacityExceedsAccountLimit, skip matching current account
W0901 07:55:05.381400   10876 controllerserver.go:98] no quota specified, set as default value(100 GiB)
--- PASS: TestCreateVolume (0.01s)
    --- PASS: TestCreateVolume/Controller_Capability_missing (0.00s)
    --- PASS: TestCreateVolume/Volume_name_missing (0.00s)
    --- PASS: TestCreateVolume/Volume_capabilities_missing (0.00s)
    --- PASS: TestCreateVolume/Invalid_volume_capabilities (0.00s)
... skipping 24 lines ...
    --- PASS: TestCreateVolume/invalid_parameter (0.00s)
    --- PASS: TestCreateVolume/Account_limit_exceeded (0.00s)
=== RUN   TestDeleteVolume
=== RUN   TestDeleteVolume/Volume_ID_missing
=== RUN   TestDeleteVolume/Controller_capability_missing
=== RUN   TestDeleteVolume/Invalid_volume_ID
E0901 07:55:05.382436   10876 controllerserver.go:575] GetFileShareInfo(vol_1) in DeleteVolume failed with error: error parsing volume id: "vol_1", should at least contain two #
=== RUN   TestDeleteVolume/failed_to_get_account_info
=== RUN   TestDeleteVolume/Delete_file_share_returns_error
=== RUN   TestDeleteVolume/Valid_request
W0901 07:55:05.383212   10876 controllerserver.go:612] RemoveStorageAccountTag(skip-matching) under rg(vol_1) account(f5713de20cde511e8ba4900) failed with Retriable: false, RetryAfter: 0s, HTTPStatusCode: 0, RawError: StorageAccountClient is nil
--- 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)
    --- PASS: TestDeleteVolume/failed_to_get_account_info (0.00s)
    --- PASS: TestDeleteVolume/Delete_file_share_returns_error (0.00s)
    --- PASS: TestDeleteVolume/Valid_request (0.00s)
=== RUN   TestControllerGetVolume
--- PASS: TestControllerGetVolume (0.00s)
=== RUN   TestControllerGetCapabilities
--- PASS: TestControllerGetCapabilities (0.00s)
=== RUN   TestValidateVolumeCapabilities
W0901 07:55:05.383940   10876 azurefile.go:585] parsing volumeID(vol_1) return with error: error parsing volume id: "vol_1", should at least contain two #
--- PASS: TestValidateVolumeCapabilities (0.00s)
=== RUN   TestControllerPublishVolume
W0901 07:55:05.385508   10876 azurefile.go:585] parsing volumeID(vol_1) return with error: error parsing volume id: "vol_1", should at least contain two #
--- PASS: TestControllerPublishVolume (0.00s)
=== RUN   TestControllerUnpublishVolume
--- PASS: TestControllerUnpublishVolume (0.00s)
=== RUN   TestCreateSnapshot
    controllerserver_test.go:2009: test[Invalid volume ID]: unexpected error: rpc error: code = Internal desc = GetFileShareInfo(vol_1) failed with error: error parsing volume id: "vol_1", should at least contain two #, expected error: rpc error: code = Internal desc = failed to check if snapshot(snapname) exists: file share is empty after parsing sourceVolumeID: vol_1
--- FAIL: TestCreateSnapshot (0.00s)
=== RUN   TestDeleteSnapshot
W0901 07:55:05.387796   10876 azurefile.go:585] parsing volumeID(vol_1#) return with error: error parsing volume id: "vol_1#", should at least contain two #
--- PASS: TestDeleteSnapshot (0.00s)
=== RUN   TestControllerExpandVolume
=== RUN   TestControllerExpandVolume/Volume_ID_missing
=== RUN   TestControllerExpandVolume/Volume_Capacity_range_missing
=== RUN   TestControllerExpandVolume/Volume_capabilities_missing
=== RUN   TestControllerExpandVolume/Invalid_Volume_ID
... skipping 13 lines ...
    --- PASS: TestControllerExpandVolume/Invalid_Volume_ID (0.00s)
    --- PASS: TestControllerExpandVolume/Disk_name_not_empty (0.00s)
    --- PASS: TestControllerExpandVolume/Resize_file_share_returns_error (0.00s)
    --- PASS: TestControllerExpandVolume/get_account_info_failed (0.00s)
    --- PASS: TestControllerExpandVolume/Valid_request (0.00s)
=== RUN   TestGetShareURL
W0901 07:55:05.390499   10876 azurefile.go:585] parsing volumeID(vol_1) return with error: error parsing volume id: "vol_1", should at least contain two #
--- PASS: TestGetShareURL (0.00s)
=== RUN   TestGetServiceURL
W0901 07:55:05.390904   10876 azurefile.go:585] parsing volumeID(vol_1) return with error: error parsing volume id: "vol_1", should at least contain two #
E0901 07:55:05.391091   10876 controllerserver.go:1035] parse serviceURLTemplate error: parse "https://^f5713de20cde511e8ba4900.file.abc": invalid character "^" in host name
--- PASS: TestGetServiceURL (0.00s)
=== RUN   TestSnapshotExists
W0901 07:55:05.391364   10876 azurefile.go:585] parsing volumeID(vol_1) return with error: error parsing volume id: "vol_1", should at least contain two #
--- PASS: TestSnapshotExists (0.00s)
=== RUN   TestGetCapacity
--- PASS: TestGetCapacity (0.00s)
=== RUN   TestListVolumes
--- PASS: TestListVolumes (0.00s)
=== RUN   TestListSnapshots
... skipping 15 lines ...
--- PASS: TestGetPluginCapabilities (0.00s)
=== RUN   TestNodeGetInfo
--- PASS: TestNodeGetInfo (0.00s)
=== RUN   TestNodeGetCapabilities
--- PASS: TestNodeGetCapabilities (0.00s)
=== RUN   TestNodePublishVolume
E0901 07:55:05.393450   10876 nodeserver.go:538] 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
W0901 07:55:05.394394   10876 mount_helper_common.go:34] 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
W0901 07:55:05.395181   10876 azurefile.go:585] parsing volumeID(vol_1) return with error: error parsing volume id: "vol_1", should at least contain two #
W0901 07:55:05.395277   10876 azurefile.go:585] parsing volumeID(vol_1) return with error: error parsing volume id: "vol_1", should at least contain two #
W0901 07:55:05.395336   10876 azurefile.go:585] parsing volumeID(vol_1) return with error: error parsing volume id: "vol_1", should at least contain two #
W0901 07:55:05.395420   10876 azurefile.go:585] parsing volumeID(vol_1) return with error: error parsing volume id: "vol_1", should at least contain two #
W0901 07:55:05.395507   10876 azurefile.go:585] parsing volumeID(vol_1) return with error: error parsing volume id: "vol_1", should at least contain two #
W0901 07:55:05.395729   10876 azurefile.go:585] parsing volumeID(vol_1) return with error: error parsing volume id: "vol_1", should at least contain two #
I0901 07:55:05.396680   10876 mount_linux.go:449] Disk "/home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk.vhd" 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.vhd]
E0901 07:55:05.396809   10876 mount_linux.go:455] format of disk "/home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk.vhd" 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:() 
I0901 07:55:05.397130   10876 mount_linux.go:449] Disk "/home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk.vhd" 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.vhd]
E0901 07:55:05.397238   10876 mount_linux.go:455] format of disk "/home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk.vhd" 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:() 
I0901 07:55:05.397524   10876 mount_linux.go:449] Disk "/home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk.vhd" 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.vhd]
I0901 07:55:05.397589   10876 mount_linux.go:459] Disk successfully formatted (mkfs): ext4 - /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk.vhd /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/source_test
I0901 07:55:05.397700   10876 mount_linux.go:449] Disk "/home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk.vhd" 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.vhd]
I0901 07:55:05.397759   10876 mount_linux.go:459] Disk successfully formatted (mkfs): ext4 - /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/proxy-mount/test_disk.vhd /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/source_test
--- PASS: TestNodeStageVolume (0.00s)
=== RUN   TestNodeUnstageVolume
W0901 07:55:05.398336   10876 mount_helper_common.go:34] Warning: Unmount skipped because path does not exist: /home/prow/go/src/sigs.k8s.io/azurefile-csi-driver/pkg/azurefile/abc.go
W0901 07:55:05.398391   10876 mount_helper_common.go:34] 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
W0901 07:55:05.399111   10876 nodeserver.go:529] ReadDir ./false_is_likely_target failed with open ./false_is_likely_target: no such file or directory, unmount this directory
E0901 07:55:05.399202   10876 nodeserver.go:538] 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   TestCheckGidPresentInMountFlags
... skipping 27 lines ...
--- PASS: TestCreateStorageAccountSecret (0.00s)
=== RUN   TestConvertTagsToMap
--- PASS: TestConvertTagsToMap (0.00s)
=== RUN   TestChmodIfPermissionMismatch
--- PASS: TestChmodIfPermissionMismatch (0.00s)
=== RUN   TestSetVolumeOwnership
E0901 07:55:17.432776   10876 volume_linux.go:120] "Performing recursive ownership change on rootDir because reading permissions of root volume failed" err="stat not-exists: no such file or directory" path="not-exists"
--- PASS: TestSetVolumeOwnership (0.00s)
=== RUN   TestSetKeyValueInMap
--- PASS: TestSetKeyValueInMap (0.00s)
=== RUN   TestReplaceWithMap
--- PASS: TestReplaceWithMap (0.00s)
=== RUN   TestGetVersion
--- PASS: TestGetVersion (0.00s)
=== RUN   TestGetVersionYAML
--- PASS: TestGetVersionYAML (0.00s)
=== RUN   TestGetUserAgent
--- PASS: TestGetUserAgent (0.00s)
FAIL
FAIL	sigs.k8s.io/azurefile-csi-driver/pkg/azurefile	17.868s
?   	sigs.k8s.io/azurefile-csi-driver/pkg/azurefileplugin	[no test files]
=== RUN   TestNewFakeDriver
E0901 07:54:21.583692    6591 driver.go:40] Driver name missing
E0901 07:54:21.583938    6591 driver.go:45] NodeID missing
E0901 07:54:21.583968    6591 driver.go:50] Version argument missing, now skip it
--- PASS: TestNewFakeDriver (0.00s)
... skipping 69 lines ...
=== RUN   TestCreateAzureCredentialFileOnAzurePublicCloud/WithEnvironmentVariables
--- PASS: TestCreateAzureCredentialFileOnAzurePublicCloud (0.00s)
    --- PASS: TestCreateAzureCredentialFileOnAzurePublicCloud/WithAzureCredentials (0.00s)
    --- PASS: TestCreateAzureCredentialFileOnAzurePublicCloud/WithEnvironmentVariables (0.00s)
PASS
ok  	sigs.k8s.io/azurefile-csi-driver/test/utils/credentials	0.069s
FAIL
make: *** [Makefile:73: unit-test] Error 1
+ EXIT_VALUE=2
+ set +o xtrace