-
Notifications
You must be signed in to change notification settings - Fork 547
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: fix bug with missing supported_features #3033
Conversation
873c646
to
cd66e6e
Compare
cd66e6e
to
8e27b13
Compare
8e27b13
to
58cf2b8
Compare
ccfc0d9
to
9ce561b
Compare
4c5e190
to
5a4d2cf
Compare
5a4d2cf
to
54c350d
Compare
@Mergifyio rebase |
✅ Branch has been successfully rebased |
54c350d
to
fdc15a3
Compare
@Mergifyio rebase |
✅ Branch has been successfully rebased |
fdc15a3
to
b5883f9
Compare
1a13ebf
to
45d0227
Compare
internal/rbd/nodeserver.go
Outdated
if errors.Is(err, os.ErrNotExist) { | ||
// do not fallback if /sys/bus/rbd/supported_features is absent and we are | ||
// not in a position to prepare krbd feature attributes | ||
isFeatureExist = true |
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.
Still waiting for a reply on this, thanks!
45d0227
to
4e515cc
Compare
4e515cc
to
dbaa00c
Compare
@pkalever linter is faililng.. |
librbd.FeatureNameDeepFlatten: { | ||
needRbdNbd: false, | ||
}, | ||
var ( |
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.
@pkalever can we also document the justifying link as source code comment for below version mapping as referecnce ?
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 is nothing as such, I had to go to linux tree and find it myself :-(
Upstream /sys/bus/rbd/supported_features is part of Linux kernel v4.11.0 Prepare the attributes and use them in case if /sys/bus/rbd/supported_features is missing. Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
dbaa00c
to
ede07ba
Compare
krbdFeatures is set to zero when kernel version < 3.8, i.e. in case where /sys/bus/rbd/supported_features is absent and we are unable to prepare the krbd attributes based on kernel version. When krbdFeatures is set to zero fallback to NBD only when autofallback is turned ON. Fixes: ceph#2678 Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
continue running rbd driver when /sys/bus/rbd/supported_features file is missing, do not bailout. Fixes: ceph#2678 Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
ede07ba
to
87c11b5
Compare
/restest ci/centos/mini-e2e-helm/k8s-1.21
|
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
/retest ci/centos/mini-e2e-helm/k8s-1.23 |
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
/retest ci/centos/mini-e2e-helm/k8s-1.23 |
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
2 similar comments
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
Describe what this PR does
missing, do not bail out.
Related issues
Fixes: #2678
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