Project

General

Profile

Actions

Bug #12167

closed

/etc/init.d/ceph start fails on Fedora 22 for a OSD.

Added by Ira Cooper almost 9 years ago. Updated over 8 years ago.

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

0%

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

Description

I reboot a new OSD VM after creating and activating the OSD using ceph-deploy. I get the following backtrace after noticing that the OSD did not start.

Command used:sudo /etc/init.d/ceph start

Traceback (most recent call last):
  File "/usr/bin/ceph-detect-init", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3074, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3060, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3087, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 645, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 946, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 833, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'argparse' distribution was not found and is required by ceph-detect-init
ERROR:ceph-disk:Failed to activate
ceph-disk: Command '/usr/bin/ceph-detect-init' returned non-zero exit status 1
ceph-disk: Error: One or more partitions failed to activate
Actions #1

Updated by Kefu Chai almost 9 years ago

  • Description updated (diff)
Actions #2

Updated by Kefu Chai almost 9 years ago

argparse is included in py2.7, and fedora22 is using py2.7 by default. one can verify it using:

import pkg_resources
pkg_resources.get_distribution('argparse')
Actions #3

Updated by Kefu Chai almost 9 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Kefu Chai
Actions #4

Updated by Kefu Chai over 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF