Module 'diskprediction_local' has failed: No module named 'sklearn' - ceph docker v15
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'
#2 Updated by K Jarrett over 1 year 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 , 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 , 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.
#15 Updated by Nathan Cutler 12 months 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.
#17 Updated by Tom Verhaeg 8 months 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)
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
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'