-
Notifications
You must be signed in to change notification settings - Fork 559
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
rbd: add mkfsOptions
to the StorageClass and pass them to mkfs
#3692
Conversation
f780d74
to
bc9e3d9
Compare
/test ci/centos/mini-e2e-helm/k8s-1.26 |
f3f2ae0
to
f8b52fe
Compare
/test ci/centos/upgrade-tests-rbd |
f8b52fe
to
42a2d72
Compare
/test ci/centos/mini-e2e-helm/k8s-1.26 |
42a2d72
to
6536f21
Compare
/test ci/centos/mini-e2e-helm/k8s-1.26 |
6536f21
to
b4b781e
Compare
/test ci/centos/mini-e2e-helm/k8s-1.26 |
b4b781e
to
77aa3fb
Compare
/test ci/centos/mini-e2e-helm/k8s-1.26 |
77aa3fb
to
477e208
Compare
/test ci/centos/mini-e2e-helm/k8s-1.26 |
1 similar comment
/test ci/centos/mini-e2e-helm/k8s-1.26 |
477e208
to
edc2fcb
Compare
/test ci/centos/mini-e2e-helm/k8s-1.26 |
2 similar comments
/test ci/centos/mini-e2e-helm/k8s-1.26 |
/test ci/centos/mini-e2e-helm/k8s-1.26 |
565a6c7
to
d0c7849
Compare
/test ci/centos/mini-e2e-helm/k8s-1.26 |
d0c7849
to
90d0491
Compare
/test ci/centos/mini-e2e-helm/k8s-1.26 |
case "xfs": | ||
args = []string{"-K", devicePath} |
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.
"-K" also needs to move to newly added mkfsDefultArgs ?
mkfsDefaultArgs = map[string][]string{
"ext4": {"-m0", "-Enodiscard,lazy_itable_init=1,lazy_journal_init=1"},
"xfs": {"-K"},
}
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.
yes, good catch!
90d0491
to
fc5a88a
Compare
@@ -101,6 +101,15 @@ var ( | |||
// xfsHasReflink is set by xfsSupportsReflink(), use the function when | |||
// checking the support for reflink. | |||
xfsHasReflink = xfsReflinkUnset | |||
|
|||
mkfsDefaultArgs = map[string][]string{ | |||
"ext4": {"-m0", "-Enodiscard,lazy_itable_init=1,lazy_journal_init=1"}, |
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.
having some references to these options and why we enable them as default options could help
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.
sure, but I don't know where they come from. This PR just moves them around...
@Mergifyio rebase |
Storing the default `mkfs` arguments in a map with key per filesystem type makes this a little more modular. It prepares th code for fetching the `mkfs` arguments from the VolumeContext. Signed-off-by: Niels de Vos <[email protected]>
Add `mkfsOptions` to the StorageClass and pass them to the `mkfs` command while creating the filesystem on the RBD device. Fixes: ceph#374 Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
Create a 1G volume, with ext4 and only 1024 inodes. Use `df` to check if the number of inodes is correct. Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
✅ Branch has been successfully rebased |
fc5a88a
to
4f19b9f
Compare
/test ci/centos/k8s-e2e-external-storage/1.23 |
/test ci/centos/k8s-e2e-external-storage/1.24 |
/test ci/centos/k8s-e2e-external-storage/1.25 |
/test ci/centos/k8s-e2e-external-storage/1.26 |
/test ci/centos/mini-e2e-helm/k8s-1.23 |
/test ci/centos/mini-e2e-helm/k8s-1.24 |
/test ci/centos/mini-e2e-helm/k8s-1.25 |
/test ci/centos/mini-e2e-helm/k8s-1.26 |
/test ci/centos/mini-e2e/k8s-1.23 |
/test ci/centos/mini-e2e/k8s-1.24 |
/test ci/centos/mini-e2e/k8s-1.25 |
/test ci/centos/mini-e2e/k8s-1.26 |
/test ci/centos/upgrade-tests-cephfs |
/test ci/centos/upgrade-tests-rbd |
Add
mkfsOptions
to the StorageClass and pass them to themkfs
command while creating the filesystem on the RBD device.
Show available bot commands
These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:
/retest ci/centos/<job-name>
: retest the<job-name>
after unrelatedfailure (please report the failure too!)
/retest all
: run this in case the CentOS CI failed to start/report any testprogress or results