Project

General

Profile

Bug #14864

ceph-detect-init requires python-setuptools at runtime

Added by Tim Serong over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
02/25/2016
Due date:
% Done:

0%

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

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.

Associated revisions

Revision cba211df (diff)
Added by Nathan Cutler over 3 years ago

packaging: pkg_resources.py runtime dependency

ceph-detect-init uses pkg_resources.py

http://tracker.ceph.com/issues/14864 Fixes: #14864

Signed-off-by: Nathan Cutler <>

History

#1 Updated by Nathan Cutler over 3 years ago

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

#2 Updated by Nathan Cutler over 3 years ago

  • Target version set to v10.0.4

#3 Updated by Nathan Cutler over 3 years ago

  • Status changed from In Progress to Need Review

#4 Updated by Nathan Cutler over 3 years ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF