Bug #44948
closedModule 'diskprediction_local' has failed: No module named 'sklearn' - ceph docker v15
0%
Description
Installed v15 Octopus via cephadm - v15.2.0
after activating mgr module "diskprediction_local" I get following Health Error:
[ERR] MGR_MODULE_ERROR: Module 'diskprediction_local' has failed: No module named 'sklearn'
JD Updated by Josh Durgin over 6 years ago
Looks like ceph-mgr-diskprediction-local needs a dependency on that package. It may have been missed since it's not used directly, but is referenced from the model's pkl files.
KJ Updated by K Jarrett over 6 years ago
Of note, I also experienced this on a containerised install of Nautilus and originally raised an issue about it on the ceph-container repository [0], but neglected to file a bug report as I mentioned - apologies.
As a requirements.txt file for diskprediction_local had made it into the v15.2.2 tag [1], I had hoped that this would ensure the dependencies were installed when I upgraded to Octopus. However, it appears they haven't been and I am still encountering the issue Tobias has submitted here.
[0]: https://github.com/ceph/ceph-container/issues/1523
[1]: https://github.com/ceph/ceph/blob/v15.2.2/src/pybind/mgr/diskprediction_local/requirements.txt
JD Updated by Josh Durgin over 6 years ago
- Related to Cleanup #38088: Add dependencies for missing Python packages added
JD Updated by Josh Durgin over 6 years ago
- Assignee set to Deepika Upadhyay
DU Updated by Deepika Upadhyay over 6 years ago
- Related to deleted (Cleanup #38088: Add dependencies for missing Python packages)
DU Updated by Deepika Upadhyay over 6 years ago
- Related to Cleanup #38088: Add dependencies for missing Python packages added
DU Updated by Deepika Upadhyay over 6 years ago
- Status changed from New to In Progress
- Pull request ID set to 35648
KC Updated by Kefu Chai over 6 years ago
- Status changed from In Progress to Resolved
KC Updated by Kefu Chai over 6 years ago
- Status changed from Resolved to Pending Backport
- Backport set to octopus, nautilus
KC Updated by Kefu Chai over 6 years ago
- Status changed from Pending Backport to In Progress
NO Updated by Neha Ojha over 6 years ago
- Status changed from In Progress to Pending Backport
NC Updated by Nathan Cutler over 6 years ago
- Copied to Backport #47097: octopus: Module 'diskprediction_local' has failed: No module named 'sklearn' - ceph docker v15 added
NC Updated by Nathan Cutler about 6 years ago
- Backport changed from octopus, nautilus to octopus
The "Affected Versions" field does not include any Nautilus versions, so I removed the nautilus backport.
Introducing a new runtime dependency - a potentially destabilizing event - does not seem like a good idea at this (late) stage in the Nautilus life cycle.
YH Updated by Yaarit Hatuka almost 6 years ago
I emailed scikit-learn maintainer (Sergio Pasra), asking if he can maintain EPEL (7 and 8) versions.
Once the packages are available in that repository, we can add them to the build in master and backport as needed.
TV Updated by Tom Verhaeg almost 6 years ago
Yaarit Hatuka wrote:
I emailed scikit-learn maintainer (Sergio Pasra), asking if he can maintain EPEL (7 and 8) versions.
Once the packages are available in that repository, we can add them to the build in master and backport as needed.
We are also facing this issue (CentOS Linux release 8.3.2011 - kernel 4.18.0-240.10.1.el8_3.x86_64)
CK Updated by Chris K almost 6 years ago
Apologies if this isn't helpful... but in case it is, my mgr container is also encountering this problem.
I'm running- version: 15.2.9
- image: docker.io/ceph/ceph:v15
- OS: Ubuntu 20.04.2 LTS
- kernel: 5.4.0-65-generic
traceback
2021-02-28T00:02:40.662+0000 7f6671a38700 -1 Remote method threw exception: Traceback (most recent call last):
File "/usr/share/ceph/mgr/diskprediction_local/module.py", line 279, in predict_all_devices
result = self._predict_life_expentancy(devInfo['devid'])
File "/usr/share/ceph/mgr/diskprediction_local/module.py", line 222, in _predict_life_expentancy
predicted_result = obj_predictor.predict(predict_datas)
File "/usr/share/ceph/mgr/diskprediction_local/predictor.py", line 450, in predict
clf = pickle.load(f_model)
ModuleNotFoundError: No module named 'sklearn'
Package info
Package: python3-sklearn
Version: 0.22.2.post1+dfsg-5
Priority: optional
Section: universe/python
Source: scikit-learn
Origin: Ubuntu
KS Updated by Konstantin Shalygin over 3 years ago
- Status changed from Pending Backport to Resolved
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to db4d3ca3aa328ccd96b1a1637dcbbfc51239826c
- Fixed In set to v16.0.0-2885-gdb4d3ca3aa
- Released In set to v16.2.0~2176
- Upkeep Timestamp set to 2025-07-15T01:15:34+00:00