Re: Can't get ceph mgr balancer to work (Luminous 12.2.4)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I turned debug_mgr to 4/5 and found this while executing the plan. Apparently the command has error but the reply is "Success!" while nothing is done. Not sure what the 'foo' part is doing there.

2018-05-28 14:24:02.570822 7fc3f5ff7700  0 log_channel(audit) log [DBG] : from='client.282784 $IPADDRESS:0/2504876563' entity='client.admin' cmd=[{"prefix": "balancer execute", "plan": "mynewplan2", "target": ["mgr", ""]}]: dispatch
2018-05-28 14:24:02.570858 7fc3f5ff7700  1 mgr.server handle_command pyc_prefix: 'balancer status'
2018-05-28 14:24:02.570862 7fc3f5ff7700  1 mgr.server handle_command pyc_prefix: 'balancer mode'
2018-05-28 14:24:02.570864 7fc3f5ff7700  1 mgr.server handle_command pyc_prefix: 'balancer on'
2018-05-28 14:24:02.570866 7fc3f5ff7700  1 mgr.server handle_command pyc_prefix: 'balancer off'
2018-05-28 14:24:02.570869 7fc3f5ff7700  1 mgr.server handle_command pyc_prefix: 'balancer eval'
2018-05-28 14:24:02.570872 7fc3f5ff7700  1 mgr.server handle_command pyc_prefix: 'balancer eval-verbose'
2018-05-28 14:24:02.570874 7fc3f5ff7700  1 mgr.server handle_command pyc_prefix: 'balancer optimize'
2018-05-28 14:24:02.570876 7fc3f5ff7700  1 mgr.server handle_command pyc_prefix: 'balancer show'
2018-05-28 14:24:02.570878 7fc3f5ff7700  1 mgr.server handle_command pyc_prefix: 'balancer rm'
2018-05-28 14:24:02.570880 7fc3f5ff7700  1 mgr.server handle_command pyc_prefix: 'balancer reset'
2018-05-28 14:24:02.570882 7fc3f5ff7700  1 mgr.server handle_command pyc_prefix: 'balancer dump'
2018-05-28 14:24:02.570885 7fc3f5ff7700  1 mgr.server handle_command pyc_prefix: 'balancer execute'
2018-05-28 14:24:02.570886 7fc3f5ff7700  4 mgr.server handle_command passing through 3
2018-05-28 14:24:02.571183 7fc3f67f8700  1 mgr[balancer] Handling command: '{'prefix': 'balancer execute', 'plan': 'mynewplan2', 'target': ['mgr', '']}'
2018-05-28 14:24:02.571252 7fc3f67f8700  4 mgr[balancer] Executing plan mynewplan2
2018-05-28 14:24:02.571855 7fc3f67f8700  4 mgr[balancer] ceph osd pg-upmap-items 10.3 mappings [{'to': 5L, 'from': 15L}, {'to': 45L, 'from': 33L}, {'to': 58L, 'from': 62L}]
2018-05-28 14:24:02.572073 7fc3f67f8700  4 mgr[balancer] ceph osd pg-upmap-items 10.8 mappings [{'to': 45L, 'from': 41L}, {'to': 5L, 'from': 13L}]
2018-05-28 14:24:02.572217 7fc3f67f8700  4 mgr[balancer] ceph osd pg-upmap-items 10.b mappings [{'to': 18L, 'from': 17L}, {'to': 45L, 'from': 41L}, {'to': 5L, 'from': 13L}]
2018-05-28 14:24:02.572367 7fc3f67f8700  4 mgr[balancer] ceph osd pg-upmap-items 10.10 mappings [{'to': 28L, 'from': 27L}]
2018-05-28 14:24:02.572491 7fc3f67f8700  4 mgr[balancer] ceph osd pg-upmap-items 10.11 mappings [{'to': 58L, 'from': 51L}]
2018-05-28 14:24:02.572602 7fc3f67f8700  4 mgr[balancer] ceph osd pg-upmap-items 10.2a mappings [{'to': 45L, 'from': 32L}, {'to': 21L, 'from': 27L}]
2018-05-28 14:24:02.572712 7fc3f67f8700  4 mgr[balancer] ceph osd pg-upmap-items 10.32 mappings [{'to': 45L, 'from': 40L}, {'to': 5L, 'from': 7L}, {'to': 58L, 'from': 51L}]
2018-05-28 14:24:02.572848 7fc3f67f8700  4 mgr[balancer] ceph osd pg-upmap-items 10.47 mappings [{'to': 45L, 'from': 43L}, {'to': 58L, 'from': 51L}]
2018-05-28 14:24:02.572940 7fc3f67f8700  4 mgr[balancer] ceph osd pg-upmap-items 10.4c mappings [{'to': 5L, 'from': 4L}, {'to': 54L, 'from': 51L}]
2018-05-28 14:24:02.573028 7fc3f67f8700  4 mgr[balancer] ceph osd pg-upmap-items 10.61 mappings [{'to': 54L, 'from': 51L}]
2018-05-28 14:24:02.573341 7fc3f67f8700  0 mgr[balancer] Error on command
2018-05-28 14:24:02.573407 7fc3f67f8700  1 mgr.server reply handle_command (0) Success 
2018-05-28 14:24:02.573560 7fc3f67f8700  1 mgr[restful] Unknown request 'foo'
2018-05-28 14:24:02.573617 7fc3f67f8700  1 mgr[restful] Unknown request 'foo'
2018-05-28 14:24:02.573660 7fc3f67f8700  1 mgr[restful] Unknown request 'foo'
2018-05-28 14:24:02.573699 7fc3f67f8700  1 mgr[restful] Unknown request 'foo'
2018-05-28 14:24:02.573873 7fc3f67f8700  1 mgr[restful] Unknown request 'foo'
2018-05-28 14:24:02.573915 7fc3f67f8700  1 mgr[restful] Unknown request 'foo'
2018-05-28 14:24:02.573961 7fc3f67f8700  1 mgr[restful] Unknown request 'foo'
2018-05-28 14:24:02.574008 7fc3f67f8700  1 mgr[restful] Unknown request 'foo'
2018-05-28 14:24:02.574047 7fc3f67f8700  1 mgr[restful] Unknown request 'foo'
2018-05-28 14:24:02.574142 7fc3f67f8700  1 mgr[restful] Unknown request 'foo'



From: ceph-users <ceph-users-bounces@xxxxxxxxxxxxxx> on behalf of Linh Vu <vul@xxxxxxxxxxxxxx>
Sent: Monday, 28 May 2018 12:47:41 PM
To: ceph-users
Subject: Can't get ceph mgr balancer to work (Luminous 12.2.4)
 

Hi all,


I'm testing out ceph mgr balancer as per http://docs.ceph.com/docs/master/mgr/balancer/ on our test cluster on Luminous 12.2.4, but can't seem to get it to work. Everything looks good in the prep, the new plan shows that it will take some actions, but it doesn't execute at all. Am I missing something? Details below:

ceph mgr module enable balancer

# ceph balancer eval
current cluster score 0.011116 (lower is better)

# ceph balancer mode upmap

ceph balancer optimize mynewplan2

# ceph balancer status
{
    "active": true, 
    "plans": [
        "mynewplan2"
    ], 
    "mode": "upmap"
}

# ceph balancer show mynewplan2
# starting osdmap epoch 10629
# starting crush version 71
# mode upmap
ceph osd pg-upmap-items 10.3 15 5 33 45 62 58
ceph osd pg-upmap-items 10.8 41 45 13 5
ceph osd pg-upmap-items 10.b 17 18 41 45 13 5
ceph osd pg-upmap-items 10.10 27 28
ceph osd pg-upmap-items 10.11 51 58
ceph osd pg-upmap-items 10.2a 32 45 27 21
ceph osd pg-upmap-items 10.32 40 45 7 5 51 58
ceph osd pg-upmap-items 10.47 43 45 51 58
ceph osd pg-upmap-items 10.4c 4 5 51 54
ceph osd pg-upmap-items 10.61 51 54

# ceph balancer eval mynewplan2
plan mynewplan2 final score 0.010474 (lower is better)

# ceph balancer execute mynewplan2  
(nothing happens)

# ceph balancer on
(still nothing happens)

Regards,
Linh
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux