-
Notifications
You must be signed in to change notification settings - Fork 62
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
Return serial number in ListDiskIDs #116
Conversation
Welcome @wongma7! |
Hi @wongma7. Thanks for your PR. I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lgtm |
@ayberk: changing LGTM is restricted to collaborators In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jingxu97, wongma7 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 |
/test pull-kubernetes-csi-csi-proxy |
Path string `json:"Path"` | ||
type Disk struct { | ||
Path string `json:"Path"` | ||
SerialNumber string `json:"SerialNumber"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an internal type not exported through the client APIs. So no API version bump needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifically, keeping the types of disk identifiers generic at https://github.com/kubernetes-csi/csi-proxy/blob/master/client/api/disk/v1beta2/api.proto#L71 helped.
/lgtm |
/ok-to-test |
1d60e77 Merge pull request kubernetes-csi#131 from pohly/kubernetes-1.20-tag 9f10459 prow.sh: support building Kubernetes for a specific version fe1f284 Merge pull request kubernetes-csi#121 from kvaps/namespace-check 8fdf0f7 Merge pull request kubernetes-csi#128 from fengzixu/master 1c94220 fix: fix a bug of csi-sanity a4c41e6 Merge pull request kubernetes-csi#127 from pohly/fix-boilerplate ece0f50 check namespace for snapshot-controller dbd8967 verify-boilerplate.sh: fix path to script 9289fd1 Merge pull request kubernetes-csi#125 from sachinkumarsingh092/optional-spelling-boilerplate-checks ad29307 Make the spelling and boilerplate checks optional 5f06d02 Merge pull request kubernetes-csi#124 from sachinkumarsingh092/fix-spellcheck-boilerplate-tests 48186eb Fix spelling and boilerplate errors 71690af Merge pull request kubernetes-csi#122 from sachinkumarsingh092/include-spellcheck-boilerplate-tests 981be3f Adding spelling and boilerplate checks. 2bb7525 Merge pull request kubernetes-csi#117 from fengzixu/master 3b6d17b Merge pull request kubernetes-csi#118 from pohly/cloud-build-timeout 9318c6c cloud build: double the timeout, now 1 hour 4ab8b15 use the tag to replace commit of csi-test 5d74e45 change the csi-test import path to v4 7dcd0a9 upgrade csi-test to v4.0.2 86ff580 Merge pull request kubernetes-csi#116 from andyzhangx/export-image-name c3a9662 allow export image name and registry name c6a88c6 Merge pull request kubernetes-csi#113 from xing-yang/install_snapshot_controller 45ec4c6 Fix the install of snapshot CRDs and controller 5d874cc Merge pull request kubernetes-csi#112 from xing-yang/cleanup 79bbca7 Cleanup d437673 Merge pull request kubernetes-csi#111 from xing-yang/update_snapshot_v1_rc 57718f8 Update snapshot CRD version git-subtree-dir: release-tools git-subtree-split: 1d60e7792624a9938c0bd1b045211fbb89e513d6
What type of PR is this?
/kind feature
What this PR does / why we need it: For aws ebs csi driver, this will help me to map disk number (e.g. 5) to volume ID (e.g. vol0cea9d623bc50cdbd).
Reference script that uses SerialNumber from Get-Disk to print out a table with disk number and volume ID columns https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-volumes.html#list-nvme-powershell
Sample response. Note how disks without serial number are just blank.
E0226 00:05:46.369668 4596 node_windows.go:46] response: diskIDs:<key:"0" value:<identifiers:<key:"page83" value:"01000000766f6c30a002dc3231f9d001" > identifiers:<key:"serialNumber" value:"vol02190fee5da4d75e3_00000001." > > > diskIDs:<key:"1" value:<identifiers:<key:"page83" value:"4d53465420202020fab3b2c87668fa4cb45895b4d7179184" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"2" value:<identifiers:<key:"page83" value:"4d53465420202020cee945791f1f404380765f3a5d180adb" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"3" value:<identifiers:<key:"page83" value:"4d5346542020202037fc320d6ebce047b085967210a2c14c" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"4" value:<identifiers:<key:"page83" value:"4d5346542020202037fc320d6ebce047b085967210a2c14c" > identifiers:<key:"serialNumber" value:"" > > > diskIDs:<key:"5" value:<identifiers:<key:"page83" value:"01000000766f6c30a002dc6365f1d001" > identifiers:<key:"serialNumber" value:"vol0cea9d623bc50cdbd_00000001." > > >
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: