Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Missing Python Packages in Manager Container #1523

Closed

Description

@KingJ

Is this a bug report or feature request?

  • Bug Report

Bug Report

What happened:
When activating the diskprediction_local manager module, the health of the cluster transitions to Critical and the following error is logged;

Health check failed: Module 'diskprediction_local' has failed: No module named sklearn.svm.classes (MGR_MODULE_ERROR)

This prevents the usage of diskprediction_local module for device life expectancy predictions from device health monitoring, which is now possible following the merger of #1396 which added the smartctl and nvme binaries to OSD containers.

What you expected to happen:
The manager module to load and process collected OSD device health information.

How to reproduce it (minimal and precise):

  1. Deploy a containerised manager using ceph/daemon:latest-nautilus.
  2. Enable the diskprediction_local manager module
  3. Observe cluster health transition to Critical and log messages regarding Python import failures.

Environment:

  • OS (e.g. from /etc/os-release): Ubuntu 18.04.3 LTS
  • Kernel (e.g. uname -a): 5.0.0-36-generic docker-registry #39~18.04.1-Ubuntu SMP
  • Docker version (e.g. docker version): 18.09.7
  • Ceph version (e.g. ceph -v): ceph version 14.2.4 (75f4de193b3ea58512f204623e6c5a16e6c1e1ba) nautilus (stable)

Activity

  1. dsavineau commented on Nov 23, 2019

    @dsavineau
    Contributor

    I think this is more a ceph mgr dependency issue (from ceph/ceph project) than a ceph-container issue because I'm pretty sure that it's also present on non containerized deployment.

  2. KingJ commented on Nov 23, 2019

    @KingJ
    Author

    Ah, my apologies. Thanks to your pointer I can see how each of the mgr module dependencies are now defined. Interestingly, for diskprediction_local, there's a requirements.txt file in the master branch, but not in the v14.2.4 tag. Presumably this is the root of the issue i'm facing.

    Thanks for the pointer, i'll close this out now and follow up on the main Ceph bug tracker.

  3. KingJ commented on Mar 20, 2021

    @KingJ
    Author

    Following the merger of #1821 I can confirm that on a freshly-pulled ceph/daemon:latest-octopus container running as a Manager, the diskprediction_local module can now be enabled and successfully returns failure predictions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions