Project

General

Profile

Actions

Bug #13174

closed

ceph-disk: trigger /dev/dm-1 gets /dev/dm/1 instead

Added by Loïc Dachary over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Urgent
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

/usr/sbin/ceph-disk --log-stdout -v trigger /dev/dm-1
DEBUG: main_trigger: Namespace(dev='/dev/dm-1', func=<function main_trigger at 0x12b6668>, log_stdout=True, prepend_to_path='/usr/bin', prog='ceph-disk', statedir='/var/lib/ceph', sync=None, sysconfdir='/etc/cep\
h', verbose=True)
INFO: systemd detected, triggering ceph-disk@/dev/dm-1.service
DEBUG: does /usr/bin/systemctl exists ?
DEBUG: yes, /usr/bin/systemctl exists
INFO: Running command: /usr/bin/systemctl --no-block restart ceph-disk@/dev/dm-1.service

And /var/log/messages has

Sep 19 09:22:42 target230089 systemd: Starting Ceph disk activation: /dev/dm/1...
Sep 19 09:22:42 target230089 flock: DEBUG: main_trigger: Namespace(dev='/dev/dm/1', func=<function main_trigger at 0x1ca16e0>, log_stdout=True, prepend_to_path='/usr/bin', prog='ceph-disk', statedir='/var/lib/ceph', sync=True, sysconfdir='/etc/ceph', verbose=True)
...
Sep 19 09:22:42 target230089 flock: OSError: [Errno 2] No such file or directory: '/dev/dm/1'
Sep 19 09:22:42 target230089 systemd: ceph-disk@-dev-dm-1.service: main process exited, code=exited, status=1/FAILURE
Sep 19 09:22:42 target230089 systemd: Failed to start Ceph disk activation: /dev/dm/1.


Related issues 1 (1 open0 closed)

Related to Ceph - Cleanup #13179: ceph-disk: use systemd-escape instead of hardcoded translationNew09/20/2015

Actions
Actions #1

Updated by Loïc Dachary over 8 years ago

  • Project changed from 18 to Ceph
Actions #2

Updated by Loïc Dachary over 8 years ago

  • Priority changed from Normal to Urgent
Actions #3

Updated by Loïc Dachary over 8 years ago

http://www.freedesktop.org/software/systemd/man/systemd-escape.html is necessary to avoid that kind of problem (/ are transformed into - and transformed back to /). Only it does not seem to be available on CentOS 7. Maybe base64 is enough and is generally available.

Actions #4

Updated by Loïc Dachary over 8 years ago

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

Updated by Loïc Dachary over 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF