Project

General

Profile

Actions

Bug #44079

closed

cephadm: ModuleNotFoundError: No module named 'distutils.spawn'

Added by Sebastian Wagner about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
cephadm (binary)
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

As cephadm is supposed to not require any Python dependencies, we might need to document this:

sebastian@host $ vagrant init generic/ubuntu1804
sebastian@host $ vagrant up --provider=libvirt
Bringing machine 'default' up with 'libvirt' provider...
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default:  -- Name:              vagrant-ubuntu_default
==> default:  -- Domain type:       kvm
==> default:  -- Cpus:              2
==> default: 
==> default:  -- Feature:           acpi
==> default:  -- Feature:           apic
==> default:  -- Feature:           pae
==> default:  -- Memory:            2048M
==> default:  -- Management MAC:    
==> default:  -- Loader:            
==> default:  -- Base box:          generic/ubuntu1804
==> default:  -- Storage pool:      default
==> default:  -- Image:             /var/lib/libvirt/images/vagrant-ubuntu_default.img (32G)
==> default:  -- Volume Cache:      default
==> default:  -- Kernel:            
==> default:  -- Initrd:            
==> default:  -- Graphics Type:     vnc
==> default:  -- Graphics Port:     -1
==> default:  -- Graphics IP:       127.0.0.1
==> default:  -- Graphics Password: Not defined
==> default:  -- Video Type:        cirrus
==> default:  -- Video VRAM:        256
==> default:  -- Sound Type:
==> default:  -- Keymap:            en-us
==> default:  -- TPM Path:          
==> default:  -- INPUT:             type=mouse, bus=ps2
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Waiting for SSH to become available...
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Configuring and enabling network interfaces...
sebastian@host $ vagrant ssh
vagrant@ubuntu1804:~$ sudo su -
root@ubuntu1804:~# curl --silent --remote-name --location https://github.com/ceph/ceph/raw/master/src/cephadm/cephadm
root@ubuntu1804:~# chmod +x cephadm
root@ubuntu1804:~# ./cephadm --image ceph/daemon-base:latest-master-devel --image pcuzner/ceph-grafana-el8:latest deploy --name grafana.a --fsid 00000000-0000-0000-0000-0000deadbeef --config-json -
Traceback (most recent call last):
  File "./cephadm", line 59, in <module>
    from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils.spawn'
Actions #1

Updated by Sebastian Wagner about 4 years ago

  • Status changed from New to Resolved
  • Pull request ID set to 33374
Actions

Also available in: Atom PDF