Project

General

Profile

Actions

Bug #14864

closed

ceph-detect-init requires python-setuptools at runtime

Added by Tim Serong about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

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

Description

Testing a reasonably recent ceph-10.0.2 on openSUSE Leap 42.1, my OSDs weren't mounting. I tracked this back to /usr/lib/systemd/system/ceph-disk@.service which invokes `flock /var/lock/ceph-disk /usr/sbin/ceph-disk --verbose --log-stdout trigger --sync %f`. This in turn results in:

ceph-disk: main_trigger: Namespace(dev='/dev/sdb1', func=<function main_trigger at 0x7fa6ebf6b050>, log_stdout=True, prepend_to_path='/usr/bin', prog='ceph-disk', statedir='/var/lib/ceph', sync=True, sysconfdir='/etc/ceph', verbose=True)
ceph-disk: Running command: /sbin/init --version
/sbin/init: unrecognized option '--version'
ceph-disk: get_dm_uuid /dev/sdb1 uuid path is /sys/dev/block/8:17/dm/uuid
ceph-disk: Running command: /usr/sbin/sgdisk -i 1 /dev/sdb
ceph-disk: get_dm_uuid /dev/sdb1 uuid path is /sys/dev/block/8:17/dm/uuid
ceph-disk: Running command: /usr/sbin/sgdisk -i 1 /dev/sdb
ceph-disk: trigger /dev/sdb1 parttype 4fbd7e29-9d25-41b8-afd0-062c0ceff05d uuid 93b72ed5-7d84-4b0b-a227-330fcd22513e
ceph-disk: Running command: /usr/sbin/ceph-disk activate /dev/sdb1
Traceback (most recent call last):
  File "/usr/bin/ceph-detect-init", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
ERROR:ceph-disk:Failed to activate
Traceback (most recent call last):
  File "/usr/sbin/ceph-disk", line 4036, in <module>
    main(sys.argv[1:])
  File "/usr/sbin/ceph-disk", line 3992, in main
    main_catch(args.func, args)
  File "/usr/sbin/ceph-disk", line 4014, in main_catch
    func(args)
  File "/usr/sbin/ceph-disk", line 2530, in main_activate
    reactivate=args.reactivate,
  File "/usr/sbin/ceph-disk", line 2296, in mount_activate
    (osd_id, cluster) = activate(path, activate_key_template, init)
  File "/usr/sbin/ceph-disk", line 2477, in activate
    init = init_get()
  File "/usr/sbin/ceph-disk", line 799, in init_get
    '--default', 'sysvinit',
  File "/usr/sbin/ceph-disk", line 902, in _check_output
    raise error
subprocess.CalledProcessError: Command '/usr/bin/ceph-detect-init' returned non-zero exit status 1

The important part is:

Traceback (most recent call last):
  File "/usr/bin/ceph-detect-init", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

This is fixable by installing python-setuptools, suggesting that package needs to be added to the RPM Requires and, I assume, the Debian Depends.

Actions #1

Updated by Nathan Cutler about 8 years ago

  • Status changed from New to In Progress
  • Assignee set to Nathan Cutler
  • Source changed from other to Community (dev)
Actions #2

Updated by Nathan Cutler about 8 years ago

  • Target version set to v10.0.4
Actions #3

Updated by Nathan Cutler about 8 years ago

  • Status changed from In Progress to Fix Under Review
Actions #4

Updated by Nathan Cutler about 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF