-
Notifications
You must be signed in to change notification settings - Fork 554
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
Added forcecephkernelclient as startup parameter to force enabling ceph #664
Conversation
@shaas are you saying SUSE kernel did a backport of quota support for kernels < 4.17 ? |
We have some concerns on enabling kernel client without quota support as mentioned in #617. If SUSE kernel support it, I would rather go for suse specific kernel check and enablement than a general one. |
any kernel could support needed cephfs client if it would be back ported there. It is probably falls down from CSI driver level to know such things. |
#617 is a good instance of a user wanting this feature. I see a lot of good arguments here for why a hard limit on 4.17 is a poor choice, like here: #623 (comment) |
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.
can you also update the doc for this new variable here https://github.com/ceph/ceph-csi/blob/master/docs/deploy-cephfs.md#configuration
Done |
|
Done |
cmd/cephcsi.go
Outdated
@@ -63,6 +63,7 @@ func init() { | |||
|
|||
// cephfs related flags | |||
flag.StringVar(&conf.MountCacheDir, "mountcachedir", "", "mount info cache save dir") | |||
flag.BoolVar(&conf.ForceKernelClient, "forcecephkernelclient", false, "enable Ceph Kernel clients on kernel < 4.17 which support quotas") |
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.
which does not support quotas?
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.
No, the flag is to enable the kernel client on kernels with version <4.17 that do support quotas (via backported patches). All kernels >=4.17 support quotas and don't need the flag
pkg/util/util.go
Outdated
// rbd related flag | ||
Containerized bool // whether run as containerized | ||
|
||
// cephfs related flags | ||
ForceKernelClient bool // force to use the ceph kernel client even if the kernel is < 4.17 |
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.
Isnt it better to put the fied as "forcekcephfs" ?
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.
Changed it
@humblec anything else is pending on this one? |
Fixes: #664 |
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.
LGTM
@Madhu-1 there were some unanswerd review comments |
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.
please update the target branch to master, instead of release-v1.2.0
All, this was possible in |
README.md
Outdated
@@ -77,6 +77,9 @@ NOTE: | |||
compatible changes in the future, and is thus not recommended | |||
for production use. | |||
|
|||
`NOTE` : The parameter `-forcecephkernelclient` enables the Kernel CephFS mounter on kernels < 4.17. |
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 believe this Note should go to https://github.com/ceph/ceph-csi/blob/master/docs/deploy-cephfs.md which talks about cephfs deployment
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.
Good point!
Moved this line
@shaas static check is failing
|
Signed-off-by: Stefan Haas <shaas@suse.com>
Done |
@humblec PTAL |
Is there anything still needed/missing from my side? |
@shaas we have to rebase this PR . |
This reverts commit 2453156.
Support ceph#664 in the helm chart. Signed-off-by: Jonas Rutishauser <jonas.rutishauser@alumni.ethz.ch>
Support ceph#664 in the helm chart. Signed-off-by: Jonas Rutishauser <jonas.rutishauser@alumni.ethz.ch>
Support ceph#664 in the helm chart. Signed-off-by: Jonas Rutishauser <jonas.rutishauser@alumni.ethz.ch>
Support #664 in the helm chart. Signed-off-by: Jonas Rutishauser <jonas.rutishauser@alumni.ethz.ch>
Added "forcecephkernelclient" as parameter to force the use of the ceph kernel client for kernels < 4.17
This is need as SUSE Enterprise Storage 6 does not support fuse but ceph quotas got back-ported to kernels < 4.17
Signed-off-by: Stefan Haas shaas@suse.com