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

Bump v1beta3 APIs to v1 #155

Merged
merged 7 commits into from
Jun 18, 2021
Merged

Conversation

mauriciopoppe
Copy link
Member

What type of PR is this?
/kind api-change
/kind feature

What this PR does / why we need it:

Bumps the following APIs:

  • disk v1beta3 -> v1
  • volume v1beta3 -> v1
  • smb v1beta2 -> v1
  • filesystem v1beta2 -> v1

Also adds a new CI test for the bump script

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

The following APIs were bumped, disk v1beta3 -> v1, volume v1beta3 -> v1, smb v1beta2 -> v1, filesystem v1beta2 -> v1

/cc @jingxu97 @ddebroy
/hold

Waiting for #152 to be merged first

@k8s-ci-robot k8s-ci-robot requested review from ddebroy and jingxu97 June 16, 2021 04:39
@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jun 16, 2021
@mauriciopoppe mauriciopoppe force-pushed the bump-to-v1 branch 22 times, most recently from 708371a to dbd3518 Compare June 16, 2021 07:51
@mauriciopoppe mauriciopoppe force-pushed the bump-to-v1 branch 3 times, most recently from 9c56721 to b7d9bc8 Compare June 16, 2021 07:59
@jingxu97
Copy link
Contributor

/approve
@mauriciopoppe is this ready to merge?

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 17, 2021
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
protoc --version
cd /home/runner/work/csi-proxy/csi-proxy/go/src/github.com/kubernetes-csi/csi-proxy
API_GROUP=filesystem OLD_API_VERSION=v1beta2 NEW_API_VERSION=v99 scripts/bump-version.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not very familiar this part, just want to make sure the version number is the right one,

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this is actually new, so to bump the APIs I created the script scripts/bump-version.sh that automated the process which I used for all of the API versions that we needed to bump. I also added a CI script for it, the nice part is that this is also making sure that we don't break the generator code in the future too :)

The version number v99 is the arbitrary but it's ok for CI, it can't be v1 because we already have v1

@mauriciopoppe
Copy link
Member Author

@jingxu97 @ddebroy all the test passed for v1 too! I think this is ready to be merged, could we merge #154 first please?

PS C:\Users\mauriciopoppe\go\src\github.com\kubernetes-csi\csi-proxy> git log -n 1
commit faf74505e4333fb2aa414ecbb6940d1bf5d5c803 (HEAD -> bump-to-v1, origin/bump-to-v1)
Author: Mauricio Poppe <[email protected]>
Date:   Wed Jun 16 05:11:24 2021 +0000
PS C:\Users\mauriciopoppe\go\src\github.com\kubernetes-csi\csi-proxy> go test -timeout 30m -v .\integrationtests\
=== RUN   TestAPIGroups
=== RUN   TestAPIGroups/happy_path_with_v1alpha1
=== RUN   TestAPIGroups/overflow_with_v1alpha1
=== RUN   TestAPIGroups/happy_path_with_v1alpha2
=== RUN   TestAPIGroups/overflow_with_v1alpha2
=== RUN   TestAPIGroups/with_v1
--- PASS: TestAPIGroups (120.08s)
    --- PASS: TestAPIGroups/happy_path_with_v1alpha1 (0.02s)
    --- PASS: TestAPIGroups/overflow_with_v1alpha1 (0.01s)
    --- PASS: TestAPIGroups/happy_path_with_v1alpha2 (0.02s)
    --- PASS: TestAPIGroups/overflow_with_v1alpha2 (0.02s)
    --- PASS: TestAPIGroups/with_v1 (0.02s)
=== RUN   TestNewAPIGroup
    csi_api_gen_test.go:24: Skipping csi-api-generator test (ref 139#)
--- SKIP: TestNewAPIGroup (0.00s)
=== RUN   TestDiskAPIGroup
=== RUN   TestDiskAPIGroup/v1Tests
=== RUN   TestDiskAPIGroup/v1Tests/ListDiskIDs,ListDiskLocations
    disk_v1_test.go:40: diskIDsResponse=diskIDs:{key:0  value:{page83:"Google  persistent-disk-0"  serial_number:"                    "}}  diskIDs:{key:1  value:{page83:"4d534654202020205d069acaddc11b41bb89b51fd6e51461"}}  diskIDs:{key:2  value:{page83:"4d534654202020202c1c1fb5bf4bb94a99468ed09179f5f4"}}  diskIDs:{key:3  value:{page83:"4d5346542020202021c6e8f93c784949a309a2c910987a8b"}}  diskIDs:{key:4  value:{page83:"4d53465420202020ad3793e5f18f3644bcb7b36e85def9a9"}}  diskIDs:{key:5  value:{page83:"4d53465420202020206ee40616b84341b8a76a86a64ca323"}}  diskIDs:{key:6  value:{page83:"4d534654202020208a143dae7ee77e4186cbb090a6e84b87"}}  diskIDs:{key:7  value:{page83:"4d5346542020202014ab3091d0a8d54fa81e5562e7fc0261"}}  diskIDs:{key:8  value:{page83:"4d53465420202020d0a003a507dc0f43965a4fe824ac5735"}}  diskIDs:{key:9  value:{page83:"4d53465420202020375e309969b4e24a91a8073f28ab54de"}}  diskIDs:{key:10  value:{page83:"4d534654202020204227dfa67568f14f8fbda7a7eba8d2af"}}  diskIDs:{key:11  value:{page83:"4d534654202020200525b392ac43a742a6ee81b993c36422"}}  diskIDs:{key:12  value:{page83:"4d53465420202020b87ebb5c09060f45b9ff85f08968282d"}}  diskIDs:{key:13  value:{page83:"4d534654202020206e6a6cb7f0247248a52d9d67bb4ffc08"}}  diskIDs:{key:14  value:{page83:"4d5346542020202056a8b84c87640b429bdf4742658b2197"}}  diskIDs:{key:15  value:{page83:"4d53465420202020ec91bce3892afc4fa839dcfa1040c08e"}}  diskIDs:{key:16  value:{page83:"4d534654202020202c8f55611e6e724ca5aa64128b5a057c"}}  diskIDs:{key:17  value:{page83:"4d53465420202020edf74fa0fd24eb4e802c340e76b13778"}}  diskIDs:{key:18  value:{page83:"4d53465420202020524f448b22a583418fbf12cebdaaf6dd"}}  diskIDs:{key:19  value:{page83:"4d5346542020202002275a1ece88af4b991c8312eb7f5a36"}}  diskIDs:{key:20  value:{page83:"4d534654202020206e7dec0a2fc76a439bfa3d10195edafa"}}  diskIDs:{key:21  value:{page83:"4d53465420202020c17a81c13187c94dbdfceb549a6029b5"}}  diskIDs:{key:22  value:{page83:"4d5346542020202035f2b7f4746dc54e90e6504a4406a6cd"}}  diskIDs:{key:23  value:{page83:"4d53465420202020289465c73f039c4a9254edb4ced85202"}}  diskIDs:{key:24  value:{page83:"4d534654202020209f2bcf7eed43034297203b03ff998d83"}}  diskIDs:{key:25  value:{page83:"4d5346542020202078d3d53817bfb143ac4732f761202bf5"}}  diskIDs:{key:26  value:{page83:"4d5346542020202084badeacee5fb949b97f24c0cee0d3d9"}}  diskIDs:{key:27  value:{page83:"4d5346542020202094e532c830c9e845b46079a01ef37204"}}  diskIDs:{key:28  value:{page83:"4d53465420202020c3861d8b71dc3d45b68d82a6ade70abd"}}  diskIDs:{key:29  value:{page83:"4d5346542020202066cc85baa5582641a0f6ed0a6c7a7467"}}  diskIDs:{key:30  value:{page83:"4d53465420202
0207c080e653486b0479aa73d5c0861344f"}}  diskIDs:{key:31  value:{page83:"4d53465420202020dec9e1c594630d4ba5b51b1a2e990af5
"}}  diskIDs:{key:32  value:{page83:"4d53465420202020a463c94c44c2884796706bd8a4d1097d"}}  diskIDs:{key:33  value:{page83
:"4d534654202020204b7acb4e190b5e4aad61757d984a546a"}}  diskIDs:{key:34  value:{page83:"4d5346542020202097ddaba600452a48a
7647e83bc55df6e"}}  diskIDs:{key:35  value:{page83:"4d53465420202020d13c6f37d617a34c9e0d07b66d6dbfdc"}}  diskIDs:{key:36
  value:{page83:"4d534654202020208d740f0ab3411949853c965243bf08d0"}}  diskIDs:{key:37  value:{page83:"4d53465420202020ee0f7d0009bc8e4daf68e6ab665bc98c"}}  diskIDs:{key:38  value:{page83:"4d53465420202020ee04b4e75edbd949a539afdb6989accb"}}  diskIDs:{key:39  value:{page83:"4d534654202020207d017b5e0647584fba5a6fa23855423a"}}  diskIDs:{key:40  value:{page83:"4d53465420202020763bd81856a49f4eacdd5ba95624699c"}}  diskIDs:{key:41  value:{page83:"4d5346542020202018dba5fce4440b42aedd79146a71e214"}}  diskIDs:{key:42  value:{page83:"4d53465420202020b196c2e9ede48b4187a3ad61b9f3a099"}}  diskIDs:{key:43  value:{page83:"4d534654202020202fb814445e184e4d823b5b0644bc4c24"}}  diskIDs:{key:44  value:{page83:"4d53465420202020ae9e1667dadb404c812b357a4e210e9f"}}  diskIDs:{key:45  value:{page83:"4d53465420202020bd36e1b7e1c18a4285d1ee275bb29535"}}
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c hostname"
    disk_v1_test.go:72: listDiskLocationsResponse=disk_locations:{key:0  value:{Adapter:"0"  Target:"1"  LUNID:"0"}}
=== RUN   TestDiskAPIGroup/v1Tests/Get/SetDiskState
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\lib\\kubelet\\plugins\\testplugin-847.csi.io\\mount-847"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-847.csi.io\\disk-847.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-847.csi.io\\disk-847.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-847.csi.io\\disk-847.vhdx).DiskNumber"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Initialize-Disk -Number 46 -PartitionStyle GPT"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-Partition -DiskNumber 46 -UseMaximumSize"
    volume_test.go:129: Checking that the size is inside the bounds: 1052770304 < (actual) 1073741824 < 1073741824
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Disk -Number 46 | Set-Disk -IsOffline $true"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Disk -Number 46 | Select-Object -ExpandProperty IsOffline"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Disk -Number 46 | Select-Object -ExpandProperty IsOffline"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Dismount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-847.csi.io\\disk-847.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rm C:\\var\\lib\\kubelet\\plugins\\testplugin-847.csi.io\\disk-847.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\lib\\kubelet\\plugins\\testplugin-847.csi.io\\mount-847"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\lib\\kubelet\\plugins\\testplugin-847.csi.io\\"
=== RUN   TestDiskAPIGroup/v1Tests/PartitionDisk
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\lib\\kubelet\\plugins\\testplugin-76.csi.io\\mount-75"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-76.csi.io\\disk-63.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-76.csi.io\\disk-63.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C
:\\var\\lib\\kubelet\\plugins\\testplugin-76.csi.io\\disk-63.vhdx).DiskNumber"
=== RUN   TestDiskAPIGroup/v1beta3Tests
=== RUN   TestDiskAPIGroup/v1beta3Tests/ListDiskIDs,ListDiskLocations
    disk_v1beta3_test.go:40: diskIDsResponse=diskIDs:{key:0  value:{page83:"Google  persistent-disk-0"  serial_number:"                    "}}  diskIDs:{key:1  value:{page83:"4d534654202020205d069acaddc11b41bb89b51fd6e51461"}}  diskIDs:{key:2  value:{page83:"4d534654202020202c1c1fb5bf4bb94a99468ed09179f5f4"}}  diskIDs:{key:3  value:{page83:"4d5346542020202021c6e8f93c784949a309a2c910987a8b"}}  diskIDs:{key:4  value:{page83:"4d53465420202020ad3793e5f18f3644bcb7b36e85def9a9"}}  diskIDs:{key:5  value:{page83:"4d53465420202020206ee40616b84341b8a76a86a64ca323"}}  diskIDs:{key:6  value:{page83:"4d534654202020208a143dae7ee77e4186cbb090a6e84b87"}}  diskIDs:{key:7  value:{page83:"4d5346542020202014ab3091d0a8d54fa81e5562e7fc0261"}}  diskIDs:{key:8  value:{page83:"4d53465420202020d0a003a507dc0f43965a4fe824ac5735"}}  diskIDs:{key:9  value:{page83:"4d53465420202020375e309969b4e24a91a8073f28ab54de"}}  diskIDs:{key:10  value:{page83:"4d534654202020204227dfa67568f14f8fbda7a7eba8d2af"}}  diskIDs:{key:11  value:{page83:"4d534654202020200525b392ac43a742a6ee81b993c36422"}}  diskIDs:{key:12  value:{page83:"4d53465420202020b87ebb5c09060f45b9ff85f08968282d"}}  diskIDs:{key:13  value:{page83:"4d534654202020206e6a6cb7f0247248a52d9d67bb4ffc08"}}  diskIDs:{key:14  value:{page83:"4d5346542020202056a8b84c87640b429bdf4742658b2197"}}  diskIDs:{key:15  value:{page83:"4d53465420202020ec91bce3892afc4fa839dcfa1040c08e"}}  diskIDs:{key:16  value:{page83:"4d534654202020202c8f55611e6e724ca5aa64128b5a057c"}}  diskIDs:{key:17  value:{page83:"4d53465420202020edf74fa0fd24eb4e802c340e76b13778"}}  diskIDs:{key:18  value:{page83:"4d53465420202020524f448b22a583418fbf12cebdaaf6dd"}}  diskIDs:{key:19  value:{page83:"4d5346542020202002275a1ece88af4b991c8312eb7f5a36"}}  diskIDs:{key:20  value:{page83:"4d534654202020206e7dec0a2fc76a439bfa3d10195edafa"}}  diskIDs:{key:21  value:{page83:"4d53465420202020c17a81c13187c94dbdfceb549a6029b5"}}  diskIDs:{key:22  value:{page83:"4d5346542020202035f2b7f4746dc54e90e6504a4406a6cd"}}  diskIDs:{key:23  value:{page83:"4d53465420202020289465c73f039c4a9254edb4ced85202"}}  diskIDs:{key:24  value:{page83:"4d534654202020209f2bcf7eed43034297203b03ff998d83"}}  diskIDs:{key:25  value:{page83:"4d5346542020202078d3d53817bfb143ac4732f761202bf5"}}  diskIDs:{key:26  value:{page83:"4d5346542020202084badeacee5fb949b97f24c0cee0d3d9"}}  diskIDs:{key:27  value:{page83:"4d5346542020202094e532c830c9e845b46079a01ef37204"}}  diskIDs:{key:28  value:{page83:"4d53465420202020c3861d8b71dc3d45b68d82a6ade70abd"}}  diskIDs:{key:29  value:{page83:"4d5346542020202066cc85baa5582641a0f6ed0a6c7a7467"}}  diskIDs:{key:30  value:{page83:"4d534654202020207c080e653486b0479aa73d5c0861344f"}}  diskIDs:{key:31  value:{page83:"4d53465420202020dec9e1c594630d4ba5b51b1a2e990af5"}}  diskIDs:{key:32  value:{page83:"4d53465420202020a463c94c44c2884796706bd8a4d1097d"}}  diskIDs:{key:33  value:{p
age83:"4d534654202020204b7acb4e190b5e4aad61757d984a546a"}}  diskIDs:{key:34  value:{page83:"4d5346542020202097ddaba60045
2a48a7647e83bc55df6e"}}  diskIDs:{key:35  value:{page83:"4d53465420202020d13c6f37d617a34c9e0d07b66d6dbfdc"}}  diskIDs:{k
ey:36  value:{page83:"4d534654202020208d740f0ab3411949853c965243bf08d0"}}  diskIDs:{key:37  value:{page83:"4d53465420202
020ee0f7d0009bc8e4daf68e6ab665bc98c"}}  diskIDs:{key:38  value:{page83:"4d53465420202020ee04b4e75edbd949a539afdb6989accb
"}}  diskIDs:{key:39  value:{page83:"4d534654202020207d017b5e0647584fba5a6fa23855423a"}}  diskIDs:{key:40  value:{page83:"4d53465420202020763bd81856a49f4eacdd5ba95624699c"}}  diskIDs:{key:41  value:{page83:"4d5346542020202018dba5fce4440b42aedd79146a71e214"}}  diskIDs:{key:42  value:{page83:"4d53465420202020b196c2e9ede48b4187a3ad61b9f3a099"}}  diskIDs:{key:43  value:{page83:"4d534654202020202fb814445e184e4d823b5b0644bc4c24"}}  diskIDs:{key:44  value:{page83:"4d53465420202020ae9e1667dadb404c812b357a4e210e9f"}}  diskIDs:{key:45  value:{page83:"4d53465420202020bd36e1b7e1c18a4285d1ee275bb29535"}}  diskIDs:{key:46  value:{page83:"4d5346542020202015644a73b051bd4ba876a4fbdb399d64"}}
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c hostname"
    disk_v1beta3_test.go:72: listDiskLocationsResponse=disk_locations:{key:0  value:{Adapter:"0"  Target:"1"  LUNID:"0"}}
=== RUN   TestDiskAPIGroup/v1beta3Tests/Get/SetDiskState
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\lib\\kubelet\\plugins\\testplugin-747.csi.io\\mount-747"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-747.csi.io\\disk-747.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-747.csi.io\\disk-747.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-747.csi.io\\disk-747.vhdx).DiskNumber"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Initialize-Disk -Number 47 -PartitionStyle GPT"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-Partition -DiskNumber 47 -UseMaximumSize"
    volume_test.go:129: Checking that the size is inside the bounds: 1052770304 < (actual) 1073741824 < 1073741824
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Disk -Number 47 | Set-Disk -IsOffline $true"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Disk -Number 47 | Select-Object -ExpandProperty IsOffline"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Disk -Number 47 | Select-Object -ExpandProperty IsOffline"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Dismount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-747.csi.io\\disk-747.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rm C:\\var\\lib\\kubelet\\plugins\\testplugin-747.csi.io\\disk-747.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\lib\\kubelet\\plugins\\testplugin-747.csi.io\\mount-747"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\lib\\kubelet\\plugins\\testplugin-747.csi.io\\"
=== RUN   TestDiskAPIGroup/v1beta3Tests/PartitionDisk
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\lib\\kubelet\\plugins\\testplugin-39.csi.io\\mount-0"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-39.csi.io\\disk-1.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-39.csi.io\\disk-1.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-39.csi.io\\disk-1.vhdx).DiskNumber"
=== RUN   TestDiskAPIGroup/v1beta2Tests
=== RUN   TestDiskAPIGroup/v1beta2Tests/ListDiskIDs,ListDiskLocations
    disk_v1beta2_test.go:37: diskIDsResponse=diskIDs:<key:"0" value:<identifiers:<key:"page83" value:"Google  persistent-disk-0" > identifiers:<key:"serialNumber" value:"                    " > > > diskIDs:<key:"1" value:<identifiers:<key:"page83" value:"4d534654202020205d069acaddc11b41bb89b51fd6e51461" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"10" value:<identifiers:<key:"page83" value:"4d534654202020204227dfa67568f14f8fbda7a7eba8d2af" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"11" value:<identifiers:<key:"page83" value:"4d534654202020200525b392ac43a742a6ee81b993c36422" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"12" value:<identifiers:<key:"page83" value:"4d53465420202020b87ebb5c09060f45b9ff85f08968282d" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"13" value:<identifiers:<key:"page83" value:"4d534654202020206e6a6cb7f0247248a52d9d67bb4ffc08" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"14" value:<identifiers:<key:"page83" value:"4d5346542020202056a8b84c87640b429bdf4742658b2197" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"15" value:<identifiers:<key:"page83" value:"4d53465420202020ec91bce3892afc4fa839dcfa1040c08e" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"16" value:<identifiers:<key:"page83" value:"4d534654202020202c8f55611e6e724ca5aa64128b5a057c" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"17" value:<identifiers:<key:"page83" value:"4d53465420202020edf74fa0fd24eb4e802c340e76b13778" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"18" value:<identifiers:<key:"page83" value:"4d53465420202020524f448b22a583418fbf12cebdaaf6dd" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"19" value:<identifiers:<key:"page83" value:"4d5346542020202002275a1ece88af4b991c8312eb7f5a36" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"2" value:<identifiers:<key:"page83" value:"4d534654202020202c1c1fb5bf4bb94a99468ed09179f5f4" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"20" value:<identifiers:<key:"page83" value:"4d534654202020206e7dec0a2fc76a439bfa3d10195edafa" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"21" value:<identifiers:<key:"page83" value:"4d53465420202020c17a81c13187c94dbdfceb549a6029b5" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"22" value:<identifiers:<key:"page83" value:"4d5346542020202035f2b7f4746dc54e90e6504a4406a6cd" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"23" value:<identifiers:<key:"page83" value:"4d53465420202020289465c73f039c4a9254edb4ced85202" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"24" value:<identifiers:<key:"page83" value:"4d534654202020209f2bcf7eed43034297203b03ff998d83" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"25" value:<identifiers:<key:"page83" value:"4d5346542020202078d3d53817bfb143ac4732f761202bf5" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"26" value:<identifiers:<key:"page83" value:"4d5346542020202084badeacee5fb949b97f24c0
cee0d3d9" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"27" value:<identifiers:<key:"page83" value:"4d5
346542020202094e532c830c9e845b46079a01ef37204" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"28" value:
<identifiers:<key:"page83" value:"4d53465420202020c3861d8b71dc3d45b68d82a6ade70abd" > identifiers:<key:"serialNumber" va
lue:"" > > > diskIDs:<key:"29" value:<identifiers:<key:"page83" value:"4d5346542020202066cc85baa5582641a0f6ed0a6c7a7467"
 > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"3" value:<identifiers:<key:"page83" value:"4d5346542020202021c6e8f93c784949a309a2c910987a8b" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"30" value:<identifiers:<key:"page83" value:"4d534654202020207c080e653486b0479aa73d5c0861344f" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"31" value:<identifiers:<key:"page83" value:"4d53465420202020dec9e1c594630d4ba5b51b1a2e990af5" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"32" value:<identifiers:<key:"page83" value:"4d53465420202020a463c94c44c2884796706bd8a4d1097d" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"33" value:<identifiers:<key:"page83" value:"4d534654202020204b7acb4e190b5e4aad61757d984a546a" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"34" value:<identifiers:<key:"page83" value:"4d5346542020202097ddaba600452a48a7647e83bc55df6e" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"35" value:<identifiers:<key:"page83" value:"4d53465420202020d13c6f37d617a34c9e0d07b66d6dbfdc" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"36" value:<identifiers:<key:"page83" value:"4d534654202020208d740f0ab3411949853c965243bf08d0" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"37" value:<identifiers:<key:"page83" value:"4d53465420202020ee0f7d0009bc8e4daf68e6ab665bc98c" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"38" value:<identifiers:<key:"page83" value:"4d53465420202020ee04b4e75edbd949a539afdb6989accb" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"39" value:<identifiers:<key:"page83" value:"4d534654202020207d017b5e0647584fba5a6fa23855423a" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"4" value:<identifiers:<key:"page83" value:"4d53465420202020ad3793e5f18f3644bcb7b36e85def9a9" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"40" value:<identifiers:<key:"page83" value:"4d53465420202020763bd81856a49f4eacdd5ba95624699c" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"41" value:<identifiers:<key:"page83" value:"4d5346542020202018dba5fce4440b42aedd79146a71e214" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"42" value:<identifiers:<key:"page83" value:"4d53465420202020b196c2e9ede48b4187a3ad61b9f3a099" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"43" value:<identifiers:<key:"page83" value:"4d534654202020202fb814445e184e4d823b5b0644bc4c24" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"44" value:<identifiers:<key:"page83" value:"4d53465420202020ae9e1667dadb404c812b357a4e210e9f" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"45" value:<identifiers:<key:"page83" value:"4d53465420202020bd36e1b7e1c18a4285d1ee275bb29535" > identifiers:<key:"serialNumber" value:"" > > > diskID
s:<key:"46" value:<identifiers:<key:"page83" value:"4d5346542020202015644a73b051bd4ba876a4fbdb399d64" > identifiers:<key
:"serialNumber" value:"" > > > diskIDs:<key:"47" value:<identifiers:<key:"page83" value:"4d534654202020206f957d94c306b04
b96a10714828efb2d" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"5" value:<identifiers:<key:"page83" va
lue:"4d53465420202020206ee40616b84341b8a76a86a64ca323" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"6"
 value:<identifiers:<key:"page83" value:"4d534654202020208a143dae7ee77e4186cbb090a6e84b87" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"7" value:<identifiers:<key:"page83" value:"4d5346542020202014ab3091d0a8d54fa81e5562e7fc0261" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"8" value:<identifiers:<key:"page83" value:"4d53465420202020d0a003a507dc0f43965a4fe824ac5735" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"9" value:<identifiers:<key:"page83" value:"4d53465420202020375e309969b4e24a91a8073f28ab54de" > identifiers:<key:"serialNumber" value:"" > > >
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c hostname"
    disk_v1beta2_test.go:69: listDiskLocationsResponse=disk_locations:<key:"0" value:<Adapter:"0" Target:"1" LUNID:"0" > >
=== RUN   TestDiskAPIGroup/v1beta2Tests/Get/SetDiskState
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\lib\\kubelet\\plugins\\testplugin-759.csi.io\\mount-759"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-759.csi.io\\disk-759.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-759.csi.io\\disk-759.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-759.csi.io\\disk-759.vhdx).DiskNumber"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Initialize-Disk -Number 48 -PartitionStyle GPT"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-Partition -DiskNumber 48 -UseMaximumSize"
    volume_test.go:129: Checking that the size is inside the bounds: 1052770304 < (actual) 1073741824 < 1073741824
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Disk -Number 48 | Set-Disk -IsOffline $true"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Disk -Number 48 | Select-Object -ExpandProperty IsOffline"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Disk -Number 48 | Select-Object -ExpandProperty IsOffline"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Dismount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-759.csi.io\\disk-759.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rm C:\\var\\lib\\kubelet\\plugins\\testplugin-759.csi.io\\disk-759.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\lib\\kubelet\\plugins\\testplugin-759.csi.io\\mount-759"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\lib\\kubelet\\plugins\\testplugin-759.csi.io\\"
=== RUN   TestDiskAPIGroup/v1beta2Tests/PartitionDisk
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\lib\\kubelet\\plugins\\testplugin-73.csi.io\\mount-5"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-73.csi.io\\disk-91.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-73.csi.io\\disk-91.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-73.csi.io\\disk-91.vhdx).DiskNumber"
=== RUN   TestDiskAPIGroup/v1beta1Tests
=== RUN   TestDiskAPIGroup/v1beta1Tests/ListDiskIDs,ListDiskLocations
    disk_v1beta1_test.go:36: diskIDsResponse=diskIDs:<key:"0" value:<identifiers:<key:"page83" value:"Google  persistent-disk-0" > identifiers:<key:"serialNumber" value:"                    " > > > diskIDs:<key:"1" value:<identifiers:<key:"page83" value:"4d534654202020205d069acaddc11b41bb89b51fd6e51461" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"10" value:<identifiers:<key:"page83" value:"4d534654202020204227dfa67568f14f8fbda7a7eba8d2af" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"11" value:<identifiers:<key:"page83" value:"4d534654202020200525b392ac43a742a6ee81b993c36422" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"12" value:<identifiers:<key:"page83" value:"4d53465420202020b87ebb5c09060f45b9ff85f08968282d" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"13" value:<identifiers:<key:"page83" value:"4d534654202020206e6a6cb7f0247248a52d9d67bb4ffc08" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"14" value:<identifiers:<key:"page83" value:"4d5346542020202056a8b84c87640b429bdf4742658b2197" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"15" value:<identifiers:<key:"page83" value:"4d53465420202020ec91bce3892afc4fa839dcfa1040c08e" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"16" value:<identifiers:<key:"page83" value:"4d534654202020202c8f55611e6e724ca5aa64128b5a057c" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"17" value:<identifiers:<key:"page83" value:"4d53465420202020edf74fa0fd24eb4e802c340e76b13778" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"18" value:<identifiers:<key:"page83" value:"4d53465420202020524f448b22a583418fbf12cebdaaf6dd" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"19" value:<identifiers:<key:"page83" value:"4d5346542020202002275a1ece88af4b991c8312eb7f5a36" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"2" value:<identifiers:<key:"page83" value:"4d534654202020202c1c1fb5bf4bb94a99468ed09179f5f4" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"20" value:<identifiers:<key:"page83" value:"4d534654202020206e7dec0a2fc76a439bfa3d10195edafa" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"21" value:<identifiers:<key:"page83" value:"4d53465420202020c17a81c13187c94dbdfceb549a6029b5" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"22" value:<identifiers:<key:"page83" value:"4d5346542020202035f2b7f4746dc54e90e6504a4406a6cd" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"23" value:<identifiers:<key:"page83" value:"4d53465420202020289465c73f039c4a9254edb4ced85202" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"24" value:<identifiers:<key:"page83" value:"4d534654202020209f2bcf7eed43034297203b03ff998d83" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"25" value:<identifiers:<key:"page83" value:"4d5346542020202078d3d53817bfb143ac4732f761202bf5" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"26" value:<identifiers:<key:"page83" value:"4d5346542020202084badeacee5fb949b97f24c0cee0d3d9" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"27" value:<identifiers:<key:"page83" value:"4d5
346542020202094e532c830c9e845b46079a01ef37204" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"28" value:
<identifiers:<key:"page83" value:"4d53465420202020c3861d8b71dc3d45b68d82a6ade70abd" > identifiers:<key:"serialNumber" va
lue:"" > > > diskIDs:<key:"29" value:<identifiers:<key:"page83" value:"4d5346542020202066cc85baa5582641a0f6ed0a6c7a7467"
 > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"3" value:<identifiers:<key:"page83" value:"4d53465420202
02021c6e8f93c784949a309a2c910987a8b" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"30" value:<identifiers:<key:"page83" value:"4d534654202020207c080e653486b0479aa73d5c0861344f" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"31" value:<identifiers:<key:"page83" value:"4d53465420202020dec9e1c594630d4ba5b51b1a2e990af5" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"32" value:<identifiers:<key:"page83" value:"4d53465420202020a463c94c44c2884796706bd8a4d1097d" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"33" value:<identifiers:<key:"page83" value:"4d534654202020204b7acb4e190b5e4aad61757d984a546a" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"34" value:<identifiers:<key:"page83" value:"4d5346542020202097ddaba600452a48a7647e83bc55df6e" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"35" value:<identifiers:<key:"page83" value:"4d53465420202020d13c6f37d617a34c9e0d07b66d6dbfdc" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"36" value:<identifiers:<key:"page83" value:"4d534654202020208d740f0ab3411949853c965243bf08d0" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"37" value:<identifiers:<key:"page83" value:"4d53465420202020ee0f7d0009bc8e4daf68e6ab665bc98c" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"38" value:<identifiers:<key:"page83" value:"4d53465420202020ee04b4e75edbd949a539afdb6989accb" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"39" value:<identifiers:<key:"page83" value:"4d534654202020207d017b5e0647584fba5a6fa23855423a" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"4" value:<identifiers:<key:"page83" value:"4d53465420202020ad3793e5f18f3644bcb7b36e85def9a9" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"40" value:<identifiers:<key:"page83" value:"4d53465420202020763bd81856a49f4eacdd5ba95624699c" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"41" value:<identifiers:<key:"page83" value:"4d5346542020202018dba5fce4440b42aedd79146a71e214" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"42" value:<identifie
rs:<key:"page83" value:"4d53465420202020b196c2e9ede48b4187a3ad61b9f3a099" > identifiers:<key:"serialNumber" value:"" > >
 > diskIDs:<key:"43" value:<identifiers:<key:"page83" value:"4d534654202020202fb814445e184e4d823b5b0644bc4c24" > identif
iers:<key:"serialNumber" value:"" > > > diskIDs:<key:"44" value:<identifiers:<key:"page83" value:"4d53465420202020ae9e16
67dadb404c812b357a4e210e9f" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"45" value:<identifiers:<key:"
page83" value:"4d53465420202020bd36e1b7e1c18a4285d1ee275bb29535" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"46" value:<identifiers:<key:"page83" value:"4d5346542020202015644a73b051bd4ba876a4fbdb399d64" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"47" value:<identifiers:<key:"page83" value:"4d534654202020206f957d94c306b04b96a10714828efb2d" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"48" value:<identifiers:<key:"page83" value:"4d53465420202020d77c7ac978ec6c42a239df54be02761b" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"5" value:<identifiers:<key:"page83" value:"4d53465420202020206ee40616b84341b8a76a86a64ca323" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"6" value:<identifiers:<key:"page83" value:"4d534654202020208a143dae7ee77e4186cbb090a6e84b87" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"7" value:<identifiers:<key:"page83" value:"4d5346542020202014ab3091d0a8d54fa81e5562e7fc0261" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"8" value:<identifiers:<key:"page83" value:"4d53465420202020d0a003a507dc0f43965a4fe824ac5735" > identifiers:<key:"serialNumber" value:
"" > > > diskIDs:<key:"9" value:<identifiers:<key:"page83" value:"4d53465420202020375e309969b4e24a91a8073f28ab54de" > id
entifiers:<key:"serialNumber" value:"" > > >
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c hostname"
    disk_v1beta1_test.go:68: listDiskLocationsResponse=disk_locations:<key:"0" value:<Adapter:"0" Target:"1" LUNID:"0" >
 >
=== RUN   TestDiskAPIGroup/v1beta1Tests/Get/SetDiskState
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\lib\\kubelet\\plugins\\testplugin-282.csi.io\\mount-282"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-282.csi.io\\disk-282.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-282.csi.io\\disk-282.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-282.csi.io\\disk-282.vhdx).DiskNumber"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Initialize-Disk -Number 49 -PartitionStyle GPT"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-Partition -DiskNumber 49 -UseMaximumSize"
    volume_test.go:129: Checking that the size is inside the bounds: 1052770304 < (actual) 1073741824 < 1073741824
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Dismount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-282.csi.io\\disk-282.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rm C:\\var\\lib\\kubelet\\plugins\\testplugin-282.csi.io\\disk-282.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\lib\\kubelet\\plugins\\testplugin-282.csi.io\\mount-282"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\lib\\kubelet\\plugins\\testplugin-282.csi.io\\"
=== RUN   TestDiskAPIGroup/v1beta1Tests/PartitionDisk
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\lib\\kubelet\\plugins\\testplugin-0.csi.io\\mount-87"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-0.csi.io\\disk-92.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-0.csi.io\\disk-92.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-0.csi.io\\disk-92.vhdx).DiskNumber"
=== RUN   TestDiskAPIGroup/v1alpha1Tests
=== RUN   TestDiskAPIGroup/v1alpha1Tests/ListDiskLocations
    disk_v1alpha1_test.go:30: listDiskLocationsResponse=disk_locations:<key:"0" value:<Adapter:"0" Target:"1" LUNID:"0" > >
=== RUN   TestDiskAPIGroup/v1alpha1Tests/Rescan
=== RUN   TestDiskAPIGroup/v1alpha1Tests/PartitionDisk
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\lib\\kubelet\\plugins\\testplugin-47.csi.io\\mount-42"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-47.csi.io\\disk-8.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-47.csi.io\\disk-8.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-47.csi.io\\disk-8.vhdx).DiskNumber"
--- PASS: TestDiskAPIGroup (247.94s)
    --- PASS: TestDiskAPIGroup/v1Tests (60.88s)
        --- PASS: TestDiskAPIGroup/v1Tests/ListDiskIDs,ListDiskLocations (5.85s)
        --- PASS: TestDiskAPIGroup/v1Tests/Get/SetDiskState (37.55s)
        --- PASS: TestDiskAPIGroup/v1Tests/PartitionDisk (17.48s)
    --- PASS: TestDiskAPIGroup/v1beta3Tests (61.62s)
        --- PASS: TestDiskAPIGroup/v1beta3Tests/ListDiskIDs,ListDiskLocations (5.09s)
        --- PASS: TestDiskAPIGroup/v1beta3Tests/Get/SetDiskState (38.97s)
        --- PASS: TestDiskAPIGroup/v1beta3Tests/PartitionDisk (17.55s)
    --- PASS: TestDiskAPIGroup/v1beta2Tests (60.31s)
        --- PASS: TestDiskAPIGroup/v1beta2Tests/ListDiskIDs,ListDiskLocations (5.22s)
        --- PASS: TestDiskAPIGroup/v1beta2Tests/Get/SetDiskState (37.67s)
        --- PASS: TestDiskAPIGroup/v1beta2Tests/PartitionDisk (17.41s)
    --- PASS: TestDiskAPIGroup/v1beta1Tests (42.91s)
        --- PASS: TestDiskAPIGroup/v1beta1Tests/ListDiskIDs,ListDiskLocations (5.08s)
        --- PASS: TestDiskAPIGroup/v1beta1Tests/Get/SetDiskState (20.38s)
        --- PASS: TestDiskAPIGroup/v1beta1Tests/PartitionDisk (17.45s)
    --- PASS: TestDiskAPIGroup/v1alpha1Tests (22.22s)
        --- PASS: TestDiskAPIGroup/v1alpha1Tests/ListDiskLocations (2.43s)
        --- PASS: TestDiskAPIGroup/v1alpha1Tests/Rescan (2.27s)
        --- PASS: TestDiskAPIGroup/v1alpha1Tests/PartitionDisk (17.52s)
=== RUN   TestFilesystemAPIGroup
=== RUN   TestFilesystemAPIGroup/v1FilesystemTests
=== RUN   TestFilesystemAPIGroup/v1FilesystemTests/PathExists_positive
=== RUN   TestFilesystemAPIGroup/v1FilesystemTests/IsMount
=== RUN   TestFilesystemAPIGroup/v1beta2FilesystemTests
=== RUN   TestFilesystemAPIGroup/v1beta2FilesystemTests/PathExists_positive
=== RUN   TestFilesystemAPIGroup/v1beta2FilesystemTests/IsMount
=== RUN   TestFilesystemAPIGroup/v1beta1FilesystemTests
=== RUN   TestFilesystemAPIGroup/v1beta1FilesystemTests/PathExists_positive
=== RUN   TestFilesystemAPIGroup/v1beta1FilesystemTests/IsMount
=== RUN   TestFilesystemAPIGroup/v1alpha1FilesystemTests
=== RUN   TestFilesystemAPIGroup/v1alpha1FilesystemTests/PathExists_positive
=== RUN   TestFilesystemAPIGroup/v1alpha1FilesystemTests/IsMount
--- PASS: TestFilesystemAPIGroup (0.35s)
    --- PASS: TestFilesystemAPIGroup/v1FilesystemTests (0.07s)
        --- PASS: TestFilesystemAPIGroup/v1FilesystemTests/PathExists_positive (0.07s)
        --- PASS: TestFilesystemAPIGroup/v1FilesystemTests/IsMount (0.01s)
    --- PASS: TestFilesystemAPIGroup/v1beta2FilesystemTests (0.09s)
        --- PASS: TestFilesystemAPIGroup/v1beta2FilesystemTests/PathExists_positive (0.05s)
        --- PASS: TestFilesystemAPIGroup/v1beta2FilesystemTests/IsMount (0.04s)
    --- PASS: TestFilesystemAPIGroup/v1beta1FilesystemTests (0.09s)
        --- PASS: TestFilesystemAPIGroup/v1beta1FilesystemTests/PathExists_positive (0.05s)
        --- PASS: TestFilesystemAPIGroup/v1beta1FilesystemTests/IsMount (0.04s)
    --- PASS: TestFilesystemAPIGroup/v1alpha1FilesystemTests (0.09s)
        --- PASS: TestFilesystemAPIGroup/v1alpha1FilesystemTests/PathExists_positive (0.05s)
        --- PASS: TestFilesystemAPIGroup/v1alpha1FilesystemTests/IsMount (0.05s)
=== RUN   TestIscsiAPIGroup
    utils.go:146: Skipping test
--- SKIP: TestIscsiAPIGroup (0.00s)
=== RUN   TestSmbAPIGroup
=== RUN   TestSmbAPIGroup/v1alpha1SmbTests
=== RUN   TestSmbAPIGroup/v1beta1SmbTests
=== RUN   TestSmbAPIGroup/v1beta2SmbTests
=== RUN   TestSmbAPIGroup/v1SmbTests
--- PASS: TestSmbAPIGroup (39.13s)
    --- PASS: TestSmbAPIGroup/v1alpha1SmbTests (12.04s)
    --- PASS: TestSmbAPIGroup/v1beta1SmbTests (9.05s)
    --- PASS: TestSmbAPIGroup/v1beta2SmbTests (8.97s)
    --- PASS: TestSmbAPIGroup/v1SmbTests (9.07s)
=== RUN   TestGetBIOSSerialNumber
=== RUN   TestGetBIOSSerialNumber/GetBIOSSerialNumber
    system_test.go:31: The serial number is GoogleCloud-6E36B9EB2F74E25C3AB5037CC8BD3AD4
--- PASS: TestGetBIOSSerialNumber (0.27s)
    --- PASS: TestGetBIOSSerialNumber/GetBIOSSerialNumber (0.27s)
=== RUN   TestServiceCommands
=== RUN   TestServiceCommands/GetService
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Stop-Service -Name \"MSiSCSI\""
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Service -Name \"MSiSCSI\" | Select-Object -ExpandProperty Status"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Service -Nam
e \"MSiSCSI\" | Select-Object DisplayName, Status, StartType | ConvertTo-Json"
=== RUN   TestServiceCommands/Stop/Start_Service
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Stop-Service -Na
me \"MSiSCSI\""
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Service -Name \"MSiSCSI\" | Select-Object -ExpandProperty Status"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Service -Name \"MSiSCSI\" | Select-Object -ExpandProperty Status"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Get-Service -Name \"MSiSCSI\" | Select-Object -ExpandProperty Status"
--- PASS: TestServiceCommands (6.76s)
    --- PASS: TestServiceCommands/GetService (1.60s)
    --- PASS: TestServiceCommands/Stop/Start_Service (5.17s)
=== RUN   TestVolumeAPIs
=== RUN   TestVolumeAPIs/NegativeDiskTests
=== RUN   TestVolumeAPIs/NegativeVolumeTests
=== RUN   TestVolumeAPIs/v1alpha1Tests
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\lib\\kubelet\\plugins\\testplugin-441.csi.io\\mount-441"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-441.csi.io\\disk-441.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-441.csi.io\\disk-441.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-441.csi.io\\disk-441.vhdx).DiskNumber"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Initialize-Disk
-Number 51 -PartitionStyle GPT"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-Partition -D
iskNumber 51 -UseMaximumSize"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Resize-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-441.csi.io\\disk-441.vhdx -SizeBytes 2147483648"
    volume_v1alpha1_test.go:78: Attempt to resize volume from sizeBytes=1073741824 to sizeBytes=1610612736
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Dismount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-441.csi.io\\disk-441.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rm C:\\var\\lib\\kubelet\\plugins\\testplugin-441.csi.io\\disk-441.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\l
ib\\kubelet\\plugins\\testplugin-441.csi.io\\mount-441"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\l
ib\\kubelet\\plugins\\testplugin-441.csi.io\\"
=== RUN   TestVolumeAPIs/v1beta1Tests
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\lib\\kubelet\\plugins\\testplugin-690.csi.io\\mount-690"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-690.csi.io\\disk-690.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-690.csi.io\\disk-690.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-690.csi.io\\disk-690.vhdx).DiskNumber"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Initialize-Disk -Number 51 -PartitionStyle GPT"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-Partition -D
iskNumber 51 -UseMaximumSize"
    volume_test.go:129: Checking that the size is inside the bounds: 1052770304 < (actual) 1056894976 < 1073741824
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Resize-VHD -Path
 C:\\var\\lib\\kubelet\\plugins\\testplugin-690.csi.io\\disk-690.vhdx -SizeBytes 2147483648"
    volume_v1beta1_test.go:100: Attempt to resize volume from sizeBytes=1056894976 to sizeBytes=1585342464
    volume_test.go:129: Checking that the size is inside the bounds: 1564370944 < (actual) 1585340416 < 1585342464
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Dismount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-690.csi.io\\disk-690.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rm C:\\var\\lib\\kubelet\\plugins\\testplugin-690.csi.io\\disk-690.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\l
ib\\kubelet\\plugins\\testplugin-690.csi.io\\mount-690"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\l
ib\\kubelet\\plugins\\testplugin-690.csi.io\\"
=== RUN   TestVolumeAPIs/v1beta2Tests
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\lib\\kubelet\\plugins\\testplugin-254.csi.io\\mount-254"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-254.csi.io\\disk-254.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-254.csi.io\\disk-254.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-254.csi.io\\disk-254.vhdx).DiskNumber"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Initialize-Disk -Number 51 -PartitionStyle GPT"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-Partition -D
iskNumber 51 -UseMaximumSize"
    volume_test.go:129: Checking that the size is inside the bounds: 1052770304 < (actual) 1056894976 < 1073741824
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Resize-VHD -Path
 C:\\var\\lib\\kubelet\\plugins\\testplugin-254.csi.io\\disk-254.vhdx -SizeBytes 2147483648"
    volume_v1beta2_test.go:99: Attempt to resize volume from sizeBytes=1056894976 to sizeBytes=1585342464
    volume_test.go:129: Checking that the size is inside the bounds: 1564370944 < (actual) 1585340416 < 1585342464
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Dismount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-254.csi.io\\disk-254.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rm C:\\var\\lib\\kubelet\\plugins\\testplugin-254.csi.io\\disk-254.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\lib\\kubelet\\plugins\\testplugin-254.csi.io\\mount-254"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\l
ib\\kubelet\\plugins\\testplugin-254.csi.io\\"
=== RUN   TestVolumeAPIs/v1beta3Tests
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\l
ib\\kubelet\\plugins\\testplugin-417.csi.io\\mount-417"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-417.csi.io\\disk-417.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-417.csi.io\\disk-417.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C:\\var\\lib\\kubelet\\plugins\\testplugin-417.csi.io\\disk-417.vhdx).DiskNumber"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Initialize-Disk -Number 51 -PartitionStyle GPT"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-Partition -DiskNumber 51 -UseMaximumSize"
    volume_v1beta3_test.go:73: VolumeId \\?\Volume{33ea2605-f62c-4872-bb84-15e9f5c5350c}\
    volume_test.go:129: Checking that the size is inside the bounds: 1052770304 < (actual) 1056894976 < 1073741824
 C:\\var\\lib\\kubelet\\plugins\\testplugin-417.csi.io\\disk-417.vhdx -SizeBytes 2147483648"
    volume_v1beta3_test.go:112: Attempt to resize volume from sizeBytes=1056894976 to sizeBytes=1585342464
    volume_test.go:129: Checking that the size is inside the bounds: 1564370944 < (actual) 1585340416 < 1585342464
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Dismount-VHD -Pa
th C:\\var\\lib\\kubelet\\plugins\\testplugin-417.csi.io\\disk-417.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rm C:\\var\\lib\
\kubelet\\plugins\\testplugin-417.csi.io\\disk-417.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\l
ib\\kubelet\\plugins\\testplugin-417.csi.io\\mount-417"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\l
ib\\kubelet\\plugins\\testplugin-417.csi.io\\"
=== RUN   TestVolumeAPIs/v1Tests
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c mkdir C:\\var\\l
ib\\kubelet\\plugins\\testplugin-434.csi.io\\mount-434"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-VHD -Path C:
\\var\\lib\\kubelet\\plugins\\testplugin-434.csi.io\\disk-434.vhdx -SizeBytes 1073741824"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Mount-VHD -Path
C:\\var\\lib\\kubelet\\plugins\\testplugin-434.csi.io\\disk-434.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c (Get-VHD -Path C
:\\var\\lib\\kubelet\\plugins\\testplugin-434.csi.io\\disk-434.vhdx).DiskNumber"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Initialize-Disk
-Number 51 -PartitionStyle GPT"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c New-Partition -D
iskNumber 51 -UseMaximumSize"
    volume_v1_test.go:73: VolumeId \\?\Volume{6d68852f-7a70-4477-bd47-54757814ff4e}\
    volume_test.go:129: Checking that the size is inside the bounds: 1052770304 < (actual) 1056894976 < 1073741824
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Resize-VHD -Path
 C:\\var\\lib\\kubelet\\plugins\\testplugin-434.csi.io\\disk-434.vhdx -SizeBytes 2147483648"
    volume_v1_test.go:112: Attempt to resize volume from sizeBytes=1056894976 to sizeBytes=1585342464
    volume_test.go:129: Checking that the size is inside the bounds: 1564370944 < (actual) 1585340416 < 1585342464
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c Dismount-VHD -Pa
th C:\\var\\lib\\kubelet\\plugins\\testplugin-434.csi.io\\disk-434.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rm C:\\var\\lib\
\kubelet\\plugins\\testplugin-434.csi.io\\disk-434.vhdx"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\l
ib\\kubelet\\plugins\\testplugin-434.csi.io\\mount-434"
    utils.go:160: Executing command: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c rmdir C:\\var\\l
ib\\kubelet\\plugins\\testplugin-434.csi.io\\"
--- PASS: TestVolumeAPIs (307.47s)
    --- PASS: TestVolumeAPIs/NegativeDiskTests (0.00s)
    --- PASS: TestVolumeAPIs/NegativeVolumeTests (10.92s)
    --- PASS: TestVolumeAPIs/v1alpha1Tests (46.95s)
    --- PASS: TestVolumeAPIs/v1beta1Tests (56.92s)
    --- PASS: TestVolumeAPIs/v1beta2Tests (56.67s)
    --- PASS: TestVolumeAPIs/v1beta3Tests (73.52s)
    --- PASS: TestVolumeAPIs/v1Tests (62.49s)
PASS
ok      github.com/kubernetes-csi/csi-proxy/integrationtests    722.263s

@mauriciopoppe
Copy link
Member Author

/unhold

#154 is merged too

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 17, 2021
@jingxu97
Copy link
Contributor

/approve
@ddebroy could you give a final review?

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jingxu97, mauriciopoppe

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

@ddebroy ddebroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great and LGTM overall. Just some formatting nits and a question about placement of a conversion functions for disk API group.

// If not an IP address, share name has to be a valid DNS name.
// UNC specifications to local paths or prefix: \\?\ is not allowed.
// Characters: + [ ] " / : ; | < > , ? * = $ are not allowed.
string remote_path = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: how about a space here to stay consistent?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a newline

service Volume {
// ListVolumesOnDisk returns the volume IDs (in \\.\Volume{GUID} format) for all volumes from a
// given disk number and partition number (optional)
rpc ListVolumesOnDisk(ListVolumesOnDiskRequest) returns (ListVolumesOnDiskResponse) {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: let's add a single line space between the rpcs here and the message members below to stay consistent with the rest of the APIs.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added newlines

return autoConvert_impl_ListDiskLocationsRequest_To_v1_ListDiskLocationsRequest(in, out)
}

func autoConvert_v1_ListDiskLocationsResponse_To_impl_ListDiskLocationsResponse(in *v1.ListDiskLocationsResponse, out *impl.ListDiskLocationsResponse) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this (and autoConvert_v1_ListDiskIDsResponse_To_impl_ListDiskIDsResponse above) go in the conversion.go file? i.e. along with Convert_impl_ListDiskLocationsResponse_To_v1_ListDiskLocationsResponse? Or are these generated correctly?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw that for each request there are 4 conversion functions generated that start with Convert_:

  • versioned client request -> internal request
  • internal request -> versioned client request
  • internal response -> versioned client response
  • versioned client response -> internal response

However if you see we only use 2 of the 4 functions generated above:

  • versioned client request -> internal request
  • internal response -> versioned client response

The other two which are generated by the code generation are the inverse versions however we don't use them, we have unused functions but they never gave problems during testing.

On top of this if we don't provide an override in conversion.go for a version then the code generator will generate additional auto_ functions.

If there's an override to one of the above then both the Convert_ and the auto_ functions for the function overridden won't generated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah indeed. versioned client response -> internal response and internal request -> versioned client request are never used.

@ddebroy
Copy link
Contributor

ddebroy commented Jun 18, 2021

Thanks @mauriciopoppe

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 18, 2021
@k8s-ci-robot k8s-ci-robot merged commit d2c1b54 into kubernetes-csi:master Jun 18, 2021
return w.client.Mkdir(context, request, opts...)
}

func (w *Client) PathExists(context context.Context, request *v1.PathExistsRequest, opts ...grpc.CallOption) (*v1.PathExistsResponse, error) {
Copy link
Member

@andyzhangx andyzhangx Jul 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mauriciopoppe do you know what's the correct PathExistsRequest value if I want to invoke v1 PathExists?
I think there is a breaking change migrate from v1beat3 to v1 for this function. original code is here:

	isExistsResponse, err := mounter.FsClient.PathExists(context.Background(),
		&fs.PathExistsRequest{
			Path: normalizeWindowsPath(path),
		})

https://github.com/kubernetes-csi/csi-driver-smb/blob/8ec0d721cf63e93a324689c17868fd433d193afd/pkg/mounter/safe_mounter_windows.go#L221-L224

obviously it's now panic:

I hit following error:

[pod/csi-smb-node-win-r4rxn/smb] panic: protobuf tag not enough fields in PathExistsResponse.state: 
[pod/csi-smb-node-win-r4rxn/smb] 
[pod/csi-smb-node-win-r4rxn/smb] goroutine 53 [running]:
[pod/csi-smb-node-win-r4rxn/smb] github.com/golang/protobuf/proto.(*unmarshalInfo).computeUnmarshalInfo(0xc0003b0460)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/github.com/golang/protobuf/proto/table_unmarshal.go:332 +0x1777
[pod/csi-smb-node-win-r4rxn/smb] github.com/golang/protobuf/proto.(*unmarshalInfo).unmarshal(0xc0003b0460, 0xc00003f860, 0xc0001b0e58, 0x2, 0x2, 0xc8e8ff, 0x20)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/github.com/golang/protobuf/proto/table_unmarshal.go:136 +0xf65
[pod/csi-smb-node-win-r4rxn/smb] github.com/golang/protobuf/proto.(*InternalMessageInfo).Unmarshal(0xc00005cea0, 0x1acf9e56dd0, 0xc00003f860, 0xc0001b0e58, 0x2, 0x2, 0xc00003f801, 0xc00035e780)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/github.com/golang/protobuf/proto/table_unmarshal.go:63 +0x6d
[pod/csi-smb-node-win-r4rxn/smb] github.com/golang/protobuf/proto.(*Buffer).Unmarshal(0xc00035e788, 0x1acf9e56dd0, 0xc00003f860, 0x0, 0x0)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/github.com/golang/protobuf/proto/decode.go:424 +0x1f5
[pod/csi-smb-node-win-r4rxn/smb] google.golang.org/grpc/encoding/proto.codec.Unmarshal(0xc0001b0e58, 0x2, 0x2, 0x1d9edc0, 0xc00003f860, 0x2, 0x2)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/google.golang.org/grpc/encoding/proto/proto.go:93 +0x13d
[pod/csi-smb-node-win-r4rxn/smb] google.golang.org/grpc.recv(0xc0000041b0, 0x1acf9d4a758, 0x2a4ed80, 0xc000388400, 0x0, 0x0, 0x1d9edc0, 0xc00003f860, 0x400000, 0x0, ...)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/google.golang.org/grpc/rpc_util.go:711 +0x11c
[pod/csi-smb-node-win-r4rxn/smb] google.golang.org/grpc.(*csAttempt).recvMsg(0xc0002ff000, 0x1d9edc0, 0xc00003f860, 0x0, 0x0, 0x0)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/google.golang.org/grpc/stream.go:885 +0xf4
[pod/csi-smb-node-win-r4rxn/smb] google.golang.org/grpc.(*clientStream).RecvMsg.func1(0xc0002ff000, 0xc0001201c0, 0x66)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/google.golang.org/grpc/stream.go:736 +0x4d
[pod/csi-smb-node-win-r4rxn/smb] google.golang.org/grpc.(*clientStream).withRetry(0xc0003b4000, 0xc000497138, 0xc000497108, 0xc0001b0da0, 0xc00003f890)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/google.golang.org/grpc/stream.go:594 +0xa6
[pod/csi-smb-node-win-r4rxn/smb] google.golang.org/grpc.(*clientStream).RecvMsg(0xc0003b4000, 0x1d9edc0, 0xc00003f860, 0x0, 0x0)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/google.golang.org/grpc/stream.go:735 +0x10d
[pod/csi-smb-node-win-r4rxn/smb] google.golang.org/grpc.invoke(0x20c2508, 0xc00009a010, 0x1ef035e, 0x19, 0x1d9ed00, 0xc0003e34c0, 0x1d9edc0, 0xc00003f860, 0xc000386700, 0x0, ...)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/google.golang.org/grpc/call.go:73 +0x14f
[pod/csi-smb-node-win-r4rxn/smb] google.golang.org/grpc.(*ClientConn).Invoke(0xc000386700, 0x20c2508, 0xc00009a010, 0x1ef035e, 0x19, 0x1d9ed00, 0xc0003e34c0, 0x1d9edc0, 0xc00003f860, 0x0, ...)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/google.golang.org/grpc/call.go:37 +0x1c5
[pod/csi-smb-node-win-r4rxn/smb] github.com/kubernetes-csi/csi-proxy/client/api/filesystem/v1.(*filesystemClient).PathExists(0xc0000427b0, 0x20c2508, 0xc00009a010, 0xc0003e34c0, 0x0, 0x0, 0x0, 0xf, 0xc00007b4c0, 0x1)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/github.com/kubernetes-csi/csi-proxy/client/api/filesystem/v1/api.pb.go:840 +0xdb
[pod/csi-smb-node-win-r4rxn/smb] github.com/kubernetes-csi/csi-proxy/client/groups/filesystem/v1.(*Client).PathExists(...)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/vendor/github.com/kubernetes-csi/csi-proxy/client/groups/filesystem/v1/client_generated.go:81
[pod/csi-smb-node-win-r4rxn/smb] github.com/kubernetes-csi/csi-driver-smb/pkg/mounter.(*CSIProxyMounter).ExistsPath(0xc0000428b0, 0xc000120070, 0x62, 0x0, 0x0, 0x0)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/pkg/mounter/safe_mounter_windows.go:221 +0x1c2
[pod/csi-smb-node-win-r4rxn/smb] github.com/kubernetes-csi/csi-driver-smb/pkg/mounter.(*CSIProxyMounter).IsLikelyNotMountPoint(0xc0000428b0, 0xc000120070, 0x62, 0x1f7, 0x1c5, 0x240)
[pod/csi-smb-node-win-r4rxn/smb] 	/home/prow/go/src/sigs.k8s.io/csi-driver-smb/pkg/mounter/safe_mounter_windows.go:164 +0x131

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one change in the proto response was to remove error https://github.com/kubernetes-csi/csi-proxy/pull/143/files

from:

message PathExistsResponse {
    // Error message if any. Empty string indicates success
    string error = 1;

    // Indicates whether the path in PathExistsRequest exists in the host's filesystem
    bool exists = 2;
}

to:

message PathExistsResponse {
    // Indicates whether the path in PathExistsRequest exists in the host's filesystem
    bool exists = 1;
}

Copy link
Member Author

@mauriciopoppe mauriciopoppe Jul 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what version of the csi-proxy server are you running? if the csi-proxy server is the same (i.e. if you didn't do any changes to the server component and only made changes to the client module) then it's still incompatible with the v1 client i.e. the v1 client should only connect to the v1 csi-proxy server.

could you list the named pipes that are opened in the vm and confirm that smb-driver is connecting to the v1 named pipes?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested that this call works in both v1 and v1beta2 with GCE PD CSI Driver, you can read the description of this PR and look for PathExists in the changes https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/738/files

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's using v1.0.0-rc.1 version, unit test also failed with same panic: https://github.com/kubernetes-csi/csi-driver-smb/pull/319/checks?check_run_id=2983427560

\\.\\pipe\\csi-proxy-filesystem-v1alpha1
\\.\\pipe\\csi-proxy-filesystem-v1beta1
\\.\\pipe\\csi-proxy-filesystem-v1beta2
\\.\\pipe\\csi-proxy-filesystem-v1
\\.\\pipe\\csi-proxy-disk-v1alpha1
\\.\\pipe\\csi-proxy-disk-v1beta1
\\.\\pipe\\csi-proxy-disk-v1beta2
\\.\\pipe\\csi-proxy-disk-v1beta3
\\.\\pipe\\csi-proxy-disk-v1

original PR is here: kubernetes-csi/csi-driver-smb#319

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for checking, I'm going to check the integration tests in csi-proxy, I skimmed through kubernetes-csi/csi-driver-smb#319 and it looks good, do you have any chance to deploy csi-proxy in a VM that you can connect to so that we can see the server logs too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reproed on a vm, check issue here: #159

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made these changes in my copy https://github.com/kubernetes-csi/csi-proxy/compare/master...mauriciopoppe:smb-test?expand=1 and tried run this test on a VM, I saw no errors in the server logs:

I0705 01:38:24.932931    3036 server.go:105] Request: PathExists with path="C:\\var\\lib\\kubelet\\testdir\\test-pod-id\\volumes\\kubernetes.io~csi\\pvc-test47\\rootvol"

And also no errors in the test results:

PS C:\Users\mauriciopoppe\go\src\github.com\kubernetes-csi\csi-proxy> go test -v .\integrationtests\. -run TestFilesystemAPIGroup/v1FilesystemTests
=== RUN   TestFilesystemAPIGroup
=== RUN   TestFilesystemAPIGroup/v1FilesystemTests
=== RUN   TestFilesystemAPIGroup/v1FilesystemTests/PathExists_positive
=== RUN   TestFilesystemAPIGroup/v1FilesystemTests/IsMount
--- PASS: TestFilesystemAPIGroup (0.21s)
    --- PASS: TestFilesystemAPIGroup/v1FilesystemTests (0.21s)
        --- PASS: TestFilesystemAPIGroup/v1FilesystemTests/PathExists_positive (0.15s)
        --- PASS: TestFilesystemAPIGroup/v1FilesystemTests/IsMount (0.06s)
PASS
ok      github.com/kubernetes-csi/csi-proxy/integrationtests    0.605s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants