Project

General

Profile

Actions

Bug #23098

closed

ceph-mds: prevent MDS names starting with a digit

Added by Jos Collin about 6 years ago. Updated about 6 years ago.

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

0%

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

Description

ceph-mds shows `starting * at -` for invalid MDS id.

$ ./bin/ceph-mds -i 42
2018-02-22 20:23:25.624 7f11d628b080 -1 deprecation warning: MDS id 'mds.42' is invalid and will be forbidden in a future version.  MDS names may not start with a numeric digit.
starting mds.42 at -

Obsolete this.


Subtasks 1 (1 open0 closed)

Bug #23213: mds: exits after 'starting mds.* at -'Need More Info03/05/2018

Actions
Actions #1

Updated by Jos Collin about 6 years ago

  • Subject changed from ceph-mds: always shows 'starting mds.a at' to ceph-mds: always shows 'starting mds.* at'
Actions #2

Updated by Patrick Donnelly about 6 years ago

  • Component(FS) MDS added

Jos Collin wrote:

ceph-mds shows `starting * at -` for invalid MDS id.

$ ./bin/ceph-mds -i 42
2018-02-22 20:23:25.624 7f11d628b080 -1 deprecation warning: MDS id 'mds.42' is invalid and will be forbidden in a future version. MDS names may not start with a numeric digit.
starting mds.42 at -

This is not a bug? What's "invalid" is that the MDS may not have any caps to use so it can't connect to anything? What eventually happens to the mds process?

  1. MDS id other than the default a,b,c
    $ ./bin/ceph-mds -i otherid
    starting mds.otherid at -

What's wrong with this?

$ ./bin/ceph-mds -i a
starting mds.a at -
2018-02-23 11:00:48.606 7f568eb08080 -1 open: failed to lock pidfile /home/jcollin/workspace/ceph/build/out/mds.a.pid because another process locked it.

Were you already running mds.a?

Actions #3

Updated by Jos Collin about 6 years ago

Patrick Donnelly wrote:

Jos Collin wrote:

ceph-mds shows `starting * at -` for invalid MDS id.

$ ./bin/ceph-mds -i 42
2018-02-22 20:23:25.624 7f11d628b080 -1 deprecation warning: MDS id 'mds.42' is invalid and will be forbidden in a future version. MDS names may not start with a numeric digit.
starting mds.42 at -

This is not a bug? What's "invalid" is that the MDS may not have any caps to use so it can't connect to anything? What eventually happens to the mds process?

  1. MDS id other than the default a,b,c
    $ ./bin/ceph-mds -i otherid
    starting mds.otherid at -

What's wrong with this?

With the above two commands, actually the mds process shuts down (goto shutdown). But no appropriate message is printed. It looks like the process is still running. That's how I started debugging it.

$ ./bin/ceph-mds -i a
starting mds.a at -
2018-02-23 11:00:48.606 7f568eb08080 -1 open: failed to lock pidfile /home/jcollin/workspace/ceph/build/out/mds.a.pid because another process locked it.

Were you already running mds.a?

Yes. I think this error message is fine. No problem with this.

Actions #5

Updated by Patrick Donnelly about 6 years ago

  • Subject changed from ceph-mds: always shows 'starting mds.* at' to ceph-mds: prevent MDS names starting with a digit
  • Description updated (diff)
  • Status changed from New to Fix Under Review
  • Target version set to v13.0.0
  • Source set to Development

Jos, I'm trimming this issue down to the first problem. Please fork a new issue for the other problem.

Actions #6

Updated by Patrick Donnelly about 6 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF