-
Notifications
You must be signed in to change notification settings - Fork 161
Update RAID logic and post-RAID validation to integrate Datacache support for GKE nodes #1950
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
Update RAID logic and post-RAID validation to integrate Datacache support for GKE nodes #1950
Conversation
Hi @hungnguyen243. Thanks for your PR. I'm waiting for a kubernetes-sigs 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-sigs/prow repository. |
/ok-to-test |
7e5a1e7
to
68e324e
Compare
6638333
to
e795a3b
Compare
/retest |
e795a3b
to
3eecb86
Compare
3eecb86
to
de8246e
Compare
de8246e
to
02999a7
Compare
/retest |
/retest-required |
02999a7
to
964b59f
Compare
Please update release note in the PR description to:
The script we use to create a change log for the release is reading these release notes to automatically generate the change list. |
477d1cc
to
f2bb4b3
Compare
infoSlice := strings.Split(infoString, " ") | ||
|
||
// We want to get the second element in the array, which is the path to the RAIDed device | ||
return infoSlice[1], nil |
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.
@sunnylovestiramisu do you think we can add any regex for any other check here to ensure we always pick up the path.
Command output:
$ sudo mdadm --detail --scan
ARRAY /dev/md/kubelet_ephemeral_storage metadata=1.2 name=kubelet_ephemeral_storage UUID=xxxx
ARRAY /dev/md126 metadata=1.2 name=csi-driver-data-cache UUID=xxxx
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.
Since we are greping the "raidedLocalSsdName" will always get 1 array(hopefully):
ARRAY /dev/md126 metadata=1.2 name=csi-driver-data-cache UUID=xxxx
The path itself should be in some format /dev/md* ?
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.
I think if the grep 'csi-driver-data-cache' is able to fetch the line, the path should be correct since how else is a RAID array created with the same name but at some random path? A possible error is when the RAID fails and so the grep will not return anything, which is caught before we process the infoString.
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.
It might as well be /dev/csi-driver-data-cache
for our E2E tests and in certain scenarios :( like if ephemeral storage is not used. @hungnguyen243 to confirm
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.
For our E2E tests, it will be /dev/md/csi-driver-datacache (I double checked on this), so adding a regex check should be fine, but as I mentioned above, it shouldn't be necessary?
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.
I am not a fan of regex check without test coverage anyway, and for this one it seems not necessary to add really.
f2bb4b3
to
1fc2c01
Compare
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.
Review for data cache
infoSlice := strings.Split(infoString, " ") | ||
|
||
// We want to get the second element in the array, which is the path to the RAIDed device | ||
return infoSlice[1], nil |
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.
Since we are greping the "raidedLocalSsdName" will always get 1 array(hopefully):
ARRAY /dev/md126 metadata=1.2 name=csi-driver-data-cache UUID=xxxx
The path itself should be in some format /dev/md* ?
1fc2c01
to
e33bb0d
Compare
/lgtm We need @mattcary to force merge because the windows test is not fixed yet. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hungnguyen243, sunnylovestiramisu 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 |
@hungnguyen243: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
/retest-required |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Update RAIDing logic to fetch requested local SSD count for Datacache from GKE node label, set up RAIDing for Datacache with the corresponding local SSD number, and validate RAID-ing config afterwards.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: