bluestore, and how to handle buggy kernels
Under load BlueStore triggers this bug
http://www.gossamer-threads.com/lists/linux/kernel/1993181
in 3.13.0-100-generic, the original trusty 14.04 kernel. We currently do most of the Ceph testing on trusty, xenial, and centos 7.x, and we use the default/original distro kernels (vs the latest ones) exactly so that we notice when kernel bugs like this rear their heads.
(We had an embarassing problem with firefly where a bug in the old precise 12.04 kernel affected users but we were testing with the latest ubuntu kernel.)
Anyway, that's good and all, but the question is how to deal with it now that we know this kernel is problematic.
1) Reproduce the aio bug reproducer in the OSD, and refuse to start if the host kernel is buggy.
2) Same as 1, but only if bluestore is enabled. (This shouldn't affect the aio we use for the FileStore journal bc we never have 128 IOs in flight.)
Assuming we do one of those, we'll also need to stop using this kernel in the QA environment because it will fail. That makes me lean towards (1).
Zack, this means we'll need to do something different with the kernel task so that we avoid using this particular kernel for the 'distro' kernel. Which, in turn, means we may want to rethink how that currently works, since there are a whole range of kernels that users might have installed on an LTS ubuntu release (or a centos 7.x release). I wonder if we should have a list of possible kernels that will be used and pick one at random or something so that we get some coverage? E.g., for centos, we might want to do either the latest or any of the initial kernels bundled with each of the 7.x releases (which are probably the most likely ones to be installed).
Thoughts?
sage
Quoted 4 lines · Sage Weil
Under load BlueStore triggers this bug
http://www.gossamer-threads.com/lists/linux/kernel/1993181
Quoted 8 lines
in 3.13.0-100-generic, the original trusty 14.04 kernel. We currently do most of the Ceph testing on trusty, xenial, and centos 7.x, and we use the default/original distro kernels (vs the latest ones) exactly so that we notice when kernel bugs like this rear their heads.
(We had an embarassing problem with firefly where a bug in the old precise 12.04 kernel affected users but we were testing with the latest ubuntu kernel.)
In this case with Precise, was the problem that we were testing Ubuntu's HWE kernels [1], so we missed that the bug existed in their GA kernel (kernel 3.2)?
Excluding Ubuntu's HWE situation, I think we'd always want to test against "the newest", right? Users should be running whatever is the newest, for security's sake.
- Ken
[1] https://wiki.ubuntu.com/Kernel/LTSEnablementStack#Kernel.2FSupport.A12.04.x_Ubuntu_Kernel_Support
Quoted 10 lines · Ken Dreyer
Quoted 9 lines · Sage Weil
Under load BlueStore triggers this bug
http://www.gossamer-threads.com/lists/linux/kernel/1993181in 3.13.0-100-generic, the original trusty 14.04 kernel. We currently do most of the Ceph testing on trusty, xenial, and centos 7.x, and we use the default/original distro kernels (vs the latest ones) exactly so that we notice when kernel bugs like this rear their heads.
Quoted 7 lines
Quoted 3 lines
(We had an embarassing problem with firefly where a bug in the old precise 12.04 kernel affected users but we were testing with the latest ubuntu kernel.)
In this case with Precise, was the problem that we were testing Ubuntu's HWE kernels [1], so we missed that the bug existed in their GA kernel (kernel 3.2)?
Yep.
Quoted 3 lines
Excluding Ubuntu's HWE situation, I think we'd always want to test against "the newest", right? Users should be running whatever is the newest, for security's sake.
Yeah, Zack and I went through this an hour or so ago. On ubuntu, we're testing the linux-image-generic package, which is the 'stable' kernel for the LTE release (in Trusty's case, 3.13). In this case it was last updated a week or two ago. We aren't explicitly testing other HWE kernels *except* by virtue of also having xenial machines in the lab and thus testing that stable kernel as well. I think that's fine.
For centos, we install the latest 'kernel' package, which is also the stable kernel that is updated regularly. My understanding is that this is always the latest regardless of whether the host is 7.0, 7.1, etc.
In any case, I had assumed that the kernel was "out of date," but this was actually the latest stable Ubuntu kernel for trusty. I sent kernel-team a bug report and requested a backport of the upstream fix.
sage