@@ -125,8 +125,9 @@ def configure_rally(dry_run):
125
125
126
126
127
127
class BaseCommand :
128
- def __init__ (self , effective_start_date , root_dir ):
128
+ def __init__ (self , effective_start_date , target_host , root_dir ):
129
129
self .effective_start_date = effective_start_date
130
+ self .target_host = target_host
130
131
self .root_dir = root_dir
131
132
self .ts = date_for_cmd_param (effective_start_date )
132
133
self .report_root_dir = config ["report.base.dir" ]
@@ -145,9 +146,8 @@ def command_line(self, track, challenge, car):
145
146
146
147
class NightlyCommand (BaseCommand ):
147
148
def __init__ (self , effective_start_date , target_host , root_dir , override_src_dir = None ):
148
- super ().__init__ (effective_start_date , root_dir )
149
+ super ().__init__ (effective_start_date , target_host , root_dir )
149
150
self .revision_ts = to_iso8601 (effective_start_date )
150
- self .target_host = target_host
151
151
self .pipeline = "from-sources-complete"
152
152
if override_src_dir is not None :
153
153
self .override = " --override-src-dir=%s" % override_src_dir
@@ -166,8 +166,7 @@ def command_line(self, track, challenge, car):
166
166
167
167
class ReleaseCommand (BaseCommand ):
168
168
def __init__ (self , effective_start_date , target_host , root_dir , distribution_version ):
169
- super ().__init__ (effective_start_date , root_dir )
170
- self .target_host = target_host
169
+ super ().__init__ (effective_start_date , target_host , root_dir )
171
170
self .pipeline = "from-distribution"
172
171
self .distribution_version = distribution_version
173
172
@@ -180,19 +179,20 @@ def command_line(self, track, challenge, car):
180
179
181
180
182
181
class DockerCommand (BaseCommand ):
183
- def __init__ (self , effective_start_date , root_dir , distribution_version ):
184
- super ().__init__ (effective_start_date , root_dir )
182
+ def __init__ (self , effective_start_date , target_host , root_dir , distribution_version ):
183
+ super ().__init__ (effective_start_date , target_host , root_dir )
185
184
self .pipeline = "docker"
186
185
self .distribution_version = distribution_version .replace ("Docker " , "" )
187
186
188
187
def runnable (self , track , challenge , car ):
189
188
return car not in ["two_nodes" , "verbose_iw" ]
190
189
191
190
def command_line (self , track , challenge , car ):
192
- cmd = "rally --pipeline={6} --quiet --distribution-version={0} --effective-start-date \" {1}\" " \
191
+ cmd = "rally --target-host={7} -- pipeline={6} --quiet --distribution-version={0} --effective-start-date \" {1}\" " \
193
192
"--track={2} --challenge={3} --car={4} --report-format=csv --report-file={5} --cluster-health=yellow " \
194
193
"--client-options=\" basic_auth_user:'elastic',basic_auth_password:'changeme',timeout:60000,request_timeout:60000\" " . \
195
- format (self .distribution_version , self .ts , track , challenge , car , self .report_path (track , challenge , car ), self .pipeline )
194
+ format (self .distribution_version , self .ts , track , challenge , car , self .report_path (track , challenge , car ), self .pipeline ,
195
+ self .target_host )
196
196
return cmd
197
197
198
198
@@ -533,7 +533,7 @@ def main():
533
533
root_dir = config ["root.dir" ] if not args .override_root_dir else args .override_root_dir
534
534
if compare_mode :
535
535
if args .release .startswith ("Docker" ):
536
- command = DockerCommand (args .effective_start_date , root_dir , args .release )
536
+ command = DockerCommand (args .effective_start_date , args . target_host , root_dir , args .release )
537
537
else :
538
538
command = ReleaseCommand (args .effective_start_date , args .target_host , root_dir , args .release )
539
539
else :
0 commit comments