Project

General

Profile

Actions

Bug #22049

open

crushtool fails to compile its own output, failing with error: parse error at ''

Added by Vladimir Pouzanov over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Administration/Usability
Target version:
-
% Done:

0%

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

Description

A crushmap that was previously working with kraken is now failing in luminous. I've re-created the test cluster from scratch.

Setup: 1 node, 2 OSDs

$ ceph osd getcrushmap -o 1
$ crushtool -d 1 -o 2
$ crushtool -c 2 -o 3
2:43 error: parse error at ''
# cat 2
# begin crush map
tunable choose_local_tries 0
tunable choose_local_fallback_tries 0
tunable choose_total_tries 50
tunable chooseleaf_descend_once 1
tunable chooseleaf_vary_r 1
tunable chooseleaf_stable 1
tunable straw_calc_version 1
tunable allowed_bucket_algs 54

# devices
device 0 osd.0
device 1 osd.1

# types
type 0 osd
type 1 host
type 2 chassis
type 3 rack
type 4 row
type 5 pdu
type 6 pod
type 7 room
type 8 datacenter
type 9 region
type 10 root

# buckets
host sb1 {
    id -3        # do not change unnecessarily
    # weight 0.098
    alg straw2
    hash 0    # rjenkins1
    item osd.0 weight 0.049
    item osd.1 weight 0.049
}
root default {
    id -1        # do not change unnecessarily
    # weight 0.098
    alg straw2
    hash 0    # rjenkins1
    item sb1 weight 0.098
}
host sb1~hdd {
    id -4        # do not change unnecessarily
    # weight 0.098
    alg straw2
    hash 0    # rjenkins1
    item osd.0 weight 0.049
    item osd.1 weight 0.049
}
root default~hdd {
    id -2        # do not change unnecessarily
    # weight 0.098
    alg straw2
    hash 0    # rjenkins1
    item sb1~hdd weight 0.098
}

# rules
rule replicated_rule {
    ruleset 0
    type replicated
    min_size 1
    max_size 10
    step take default
    step chooseleaf firstn 0 type host
    step emit
}

# end crush map
Actions #1

Updated by Vladimir Pouzanov over 6 years ago

It looks that it's related to "default~hdd" entry, and is similar to http://tracker.ceph.com/issues/4779

The question is, why ceph generates default items with ids that crushmap doesn't support?

Actions #2

Updated by Greg Farnum over 6 years ago

  • Project changed from Ceph to RADOS
  • Category set to Administration/Usability
  • Component(RADOS) CRUSH added
Actions

Also available in: Atom PDF