]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/balancer: don't use 'foo' tags on commands 19555/head
authorJohn Spray <john.spray@redhat.com>
Wed, 13 Dec 2017 13:08:46 +0000 (13:08 +0000)
committerShinobu Kinjo <shinobu@redhat.com>
Fri, 15 Dec 2017 20:26:02 +0000 (05:26 +0900)
This looks weird in logs when code elsewhere logs
that it didn't handle a command with tag 'foo'

Fixes: http://tracker.ceph.com/issues/22361
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 432d07a0fe3e9992c21539898ce5be6c6b12a745)

src/pybind/mgr/balancer/module.py

index b8cc087b9e8b8edaf446e999e82902e934165370..69b3bff9f20bb2351a932da08811b706cea333cc 100644 (file)
@@ -873,13 +873,13 @@ class Module(MgrModule):
         for osd, weight in plan.compat_ws.iteritems():
             self.log.info('ceph osd crush weight-set reweight-compat osd.%d %f',
                           osd, weight)
-            result = CommandResult('foo')
+            result = CommandResult('')
             self.send_command(result, 'mon', '', json.dumps({
                 'prefix': 'osd crush weight-set reweight-compat',
                 'format': 'json',
                 'item': 'osd.%d' % osd,
                 'weight': [weight],
-            }), 'foo')
+            }), '')
             commands.append(result)
 
         # new_weight
@@ -888,12 +888,12 @@ class Module(MgrModule):
             reweightn[str(osd)] = str(int(weight * float(0x10000)))
         if len(reweightn):
             self.log.info('ceph osd reweightn %s', reweightn)
-            result = CommandResult('foo')
+            result = CommandResult('')
             self.send_command(result, 'mon', '', json.dumps({
                 'prefix': 'osd reweightn',
                 'format': 'json',
                 'weights': json.dumps(reweightn),
-            }), 'foo')
+            }), '')
             commands.append(result)
 
         # upmap