Project

General

Profile

Actions

Bug #22361

closed

balancer crush-compat sends "foo" command

Added by Dan van der Ster over 6 years ago. Updated over 6 years ago.

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

0%

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

Description

Hi,
I'm playing with the crush-compat balancer in 12.2.2, and it sends "foo" commands to the rest api:

2017-12-11 10:37:41.551009 7f224fc20700  1 mgr[balancer] Handling command: '{'prefix': 'balancer reset', 'target': ['mgr', '']}'
2017-12-11 10:37:41.551058 7f224fc20700  1 mgr.server reply handle_command (0) Success
2017-12-11 10:37:43.013382 7f226f370700  1 mgr send_beacon active
2017-12-11 10:37:45.018345 7f226f370700  1 mgr send_beacon active
2017-12-11 10:37:46.077190 7f224fc20700  1 mgr[restful] Unknown request ''
2017-12-11 10:37:46.079389 7f224fc20700  1 mgr[restful] Unknown request ''
2017-12-11 10:37:47.022583 7f226f370700  1 mgr send_beacon active
2017-12-11 10:37:47.132307 7f224fc20700  1 mgr[restful] Unknown request 'foo'
2017-12-11 10:37:47.132486 7f224fc20700  1 mgr[restful] Unknown request 'foo'
2017-12-11 10:37:47.132841 7f224fc20700  1 mgr[restful] Unknown request 'foo'
2017-12-11 10:37:47.132941 7f224fc20700  1 mgr[restful] Unknown request 'foo'
2017-12-11 10:37:47.133106 7f224fc20700  1 mgr[restful] Unknown request 'foo'
...

Those seem to come from balancer/module.py, e.g.

result = CommandResult('foo')
            self.send_command(result, 'mon', '', json.dumps({
                'prefix': 'osd crush weight-set reweight-compat',
                'format': 'json',
                'item': 'osd.%d' % osd,
                'weight': [weight],
            }), 'foo')

Cheers, Dan


Related issues 1 (0 open1 closed)

Copied to mgr - Backport #22455: luminous: balancer crush-compat sends "foo" commandResolvedShinobu KinjoActions
Actions

Also available in: Atom PDF