rgw: test-multi: craft admin command line options differently

The problem was specifically with the "--rgw-cache-enabled false" param. This
doesn't work like that anymore, need to either pass --rgw-cache-enabled=false,
or --no-rgw-cache-enabled.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
Yehuda Sadeh 2019-12-02 14:55:25 -08:00
parent f8c4d1fb73
commit ca4b319bcf

View File

@ -61,10 +61,10 @@ class Cluster(multisite.Cluster):
cmd = [test_path + 'test-rgw-call.sh', 'call_rgw_admin', self.cluster_id]
if args:
cmd += args
cmd += ['--debug-rgw', str(kwargs.pop('debug_rgw', 0))]
cmd += ['--debug-ms', str(kwargs.pop('debug_ms', 0))]
cmd += ['--debug-rgw=' + str(kwargs.pop('debug_rgw', 0))]
cmd += ['--debug-ms=' + str(kwargs.pop('debug_ms', 0))]
if kwargs.pop('read_only', False):
cmd += ['--rgw-cache-enabled', 'false']
cmd += ['--rgw-cache-enabled=false']
return bash(cmd, **kwargs)
def start(self):