question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Error ENOENT: module ''dashboard'' reports that it cannot run on the active manager daemon: No module named ''distutils.util'''

See original GitHub issue

Hello,

What happened:

I made some test with the first 5.0 release of ceph-ansible playbook to deploy an Octopus Cluster, but it failed on “TASK [add modules to ceph-mgr]”, is there anything wrong in my playbook setting ?

TASK [add modules to ceph-mgr] ***********************************************************************************************************************************************************************************************************************************************************
Monday 22 June 2020  09:11:37 +0200 (0:00:00.083)       0:03:52.591 *********** 
failed: [iccluster024.iccluster.epfl.ch -> iccluster002.iccluster.epfl.ch] (item=dashboard) => changed=true 
  ansible_loop_var: item
  cmd:
  - ceph
  - --cluster
  - lagertha
  - mgr
  - module
  - enable
  - dashboard
  delta: '0:00:00.340429'
  end: '2020-06-22 09:11:38.602366'
  item: dashboard
  msg: non-zero return code
  rc: 2
  start: '2020-06-22 09:11:38.261937'
  stderr: 'Error ENOENT: module ''dashboard'' reports that it cannot run on the active manager daemon: No module named ''distutils.util'' (pass --force to force enablement)'
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

How to reproduce it (minimal and precise): each time I try to run the playbook with the config bellow

Share your group_vars files, inventory and full ceph-ansibe log cluster-lagertha.zip

Environment:

  • OS (e.g. from /etc/os-release):
VERSION="18.04.4 LTS (Bionic Beaver)"
  • Kernel (e.g. uname -a):
Linux icitsrv5 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • Ansible version (e.g. ansible-playbook --version):
ansible-playbook 2.9.10.post0
  config file = /home/lagertha/ceph-ansible/ansible.cfg
  configured module search path = ['/home/lagertha/ceph-ansible/library']
  ansible python module location = /home/lagertha/ansible2.9/lib/ansible
  executable location = /home/lagertha/ansible2.9/bin/ansible-playbook
  python version = 3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]
  • ceph-ansible version (e.g. git head or tag or stable branch):
stable-5.0
  • Ceph version (e.g. ceph -v):
ceph version 15.2.3 (d289bbdec69ed7c1f516e0a093594580a76b78d0) octopus (stable)

Thanks for your help.

Best regards,

Yoann

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dsavineaucommented, Oct 22, 2020

@maltris that’s not a ceph-ansible issue.

But this has been fixed in the upstream octopus branch [1]

So I guess this will be included in the next 15.2.6 release

[1] https://github.com/ceph/ceph/commit/03cd9e3bb335efc5450cf4a9a3d1db98d54d578b

0reactions
maltriscommented, Oct 22, 2020

As of 15.2.5 python3-distutils in bionic is not a direct dependency:

Depends: ceph-mgr (= 15.2.5-1bionic), python3-cherrypy3, python3-jwt, python3-bcrypt, python3-werkzeug, python3-routes

I had to manually install it afterwards to solve the error. The ceph-mgr-dashboard package should be adjusted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - ModuleNotFoundError: No module named 'distutils.util'
The module not found likely means the packages aren't installed. sudo apt-get install python3-distutils sudo apt-get install python3-apt.
Read more >
[SRU] ceph-mgr-dashboard package missing dependencies
Error ENOENT : module 'dashboard' reports that it cannot run on the active manager daemon: No module named 'distutils.util' (pass --force to ...
Read more >
[Bug 1858304] Re: [SRU] ceph-mgr-dashboard package missing ...
... following error is returned: Error ENOENT: module 'dashboard' reports that it cannot run on the active manager daemon: No module named 'distutils.util' ......
Read more >
Nautilus - Ceph Documentation
This release fixes issues loading the dashboard and volumes manager modules in some environments. Changelog . nautilus: .github: add workflow for adding...
Read more >
Chaquopy: ModuleNotFoundError: No module named 'distutils ...
I am trying to make an app with android studio, i imported chaquopy and python runs it..
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found