Project

General

Profile

Actions

Bug #6230

closed

ceph osd crush move appears to be broken

Added by David Zafman over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Urgent
Category:
-
Target version:
-
% Done:

0%

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

Description

Per documentation at: http://ceph.com/docs/master/rados/operations/crush-map/

ceph osd crush move {bucket-name} {bucket-type}={bucket-name}, [...]

bucket-name

Description: The name of the bucket to move/reposition.
Type: String
Required: Yes
Example: foo-bar-1

$ ./ceph osd crush move h1 root=default rack=localrack host=h1-repo
Invalid command: osd id h1 not integer

h1 is a bucket name: { "id": -4,
"name": "h1",
"type_id": 1,
"type_name": "host",
"weight": 0,
"alg": "straw",
"hash": "rjenkins1",
"items": []},

$ ./ceph osd crush move 123 root=default rack=localrack host=h1-repo
Error ENOENT: item osd.123 does not exist

It is treating that argument as an osd ID not a bucket-name.

Actions #1

Updated by Sage Weil over 10 years ago

  • Source changed from other to Development

iirc move is only for leaf items.. there is link and unlink for buckets?

Actions #2

Updated by Sage Weil over 10 years ago

  • Priority changed from Normal to Urgent

nope, looks like this is supposed to work (and did in 0.61). from ML:

Date: Mon, 9 Sep 2013 20:12:40 +1200
From: Vladislav Gorbunov <vadikgo@gmail.com>
To: "ceph-users@lists.ceph.com" <ceph-users@lists.ceph.com>
Subject: [ceph-users] ceph 0.67 ceph osd crush move changed

Is ceph osd crush move syntax changed on 0.67?
I have crushmap
# id     weight     type name     up/down     reweight
-1     10.11     root default
-4     3.82          datacenter dc1
-2     3.82               host cstore3
0     0.55                    osd.0     up     1
1     0.55                    osd.1     up     1
2     0.55                    osd.2     up     1
-5     3.82          datacenter dc2
-3     3.82               host cstore2
10     0.55                    osd.10     up     1
11     0.55                    osd.11     up     1
12     0.55                    osd.12     up     1
-7     1.92          host cstore1
20     0.55               osd.20     up     1
21     0.55               osd.21     up     1
22     0.55               osd.22     up     1
23     0.27               osd.23     up     1

and try to move new added host cstore1 to datacenter with command:
ceph osd crush move cstore1 root=default datacenter=dc1
Invalid command:  osd id cstore1 not integer
Error EINVAL: invalid command

It's worked on ceph 0.61. How can I move new host to datacenter? in 0.67?

Actions #3

Updated by Ian Colle over 10 years ago

  • Assignee changed from Dan Mick to Joao Eduardo Luis

Joao - please take a look.

Actions #4

Updated by Sage Weil over 10 years ago

  • Status changed from New to Pending Backport
Actions #5

Updated by Sage Weil over 10 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF