@@ -39,8 +39,7 @@ def run(self):
39
39
except KeyboardInterrupt :
40
40
print ('Stop requested by user, stopping framework....' )
41
41
42
- def __init__ (self , script_path , setup_path , headnode , ssl_thumbprint , client_cert , framework_uri , listen_port ,
43
- node_group = "" ):
42
+ def __init__ (self , script_path , setup_path , headnode , ssl_thumbprint , client_cert , node_group = "" ):
44
43
logging .basicConfig ()
45
44
self .logger = logging_aux .init_logger_aux ("hpcframework" , "hpcframework.log" )
46
45
# signal.signal(signal.SIGINT, signal.SIG_IGN)
@@ -50,8 +49,6 @@ def __init__(self, script_path, setup_path, headnode, ssl_thumbprint, client_cer
50
49
self .setup_path = setup_path
51
50
self .headnode = headnode
52
51
self .ssl_thumbprint = ssl_thumbprint
53
- self .framework_uri = framework_uri
54
- self .listen_port = listen_port
55
52
self .node_group = node_group
56
53
self .hpc_client = HpcRestClient (client_cert )
57
54
self .heartbeat_table = hpc_cluster_manager .HpcClusterManager (self .hpc_client , node_group = self .node_group )
@@ -93,7 +90,6 @@ def shutdown(self):
93
90
self .driver .tearDown ()
94
91
self .mesos_client .stop = True
95
92
self .stop = True
96
- self .heartbeat_server .stop ()
97
93
98
94
def subscribed (self , driver ):
99
95
self .logger .warn ('SUBSCRIBED' )
@@ -187,7 +183,6 @@ def accept_offer(self, offer):
187
183
'command' : {'value' :
188
184
'powershell -File ' + self .script_path + " -setupPath " + self .setup_path +
189
185
" -headnode " + self .headnode + " -sslthumbprint " + self .ssl_thumbprint +
190
- " -frameworkUri " + self .framework_uri + " -port " + str (self .listen_port ) +
191
186
" > setupscript.log" }
192
187
}
193
188
self .logger .debug ("Sending command:\n {}" .format (task ['command' ]['value' ]))
@@ -213,16 +208,13 @@ def _kill_task_by_hostname(self, hostname):
213
208
parser = argparse .ArgumentParser (description = "HPC Pack Mesos framework" )
214
209
parser .add_argument ("-g" , "--node_group" , default = "" ,
215
210
help = "The node group in which we need to perform grow-shrink." )
216
- parser .add_argument ("-p" , "--listen_port" , default = 8088 , type = int ,
217
- help = "The port to which Mesos slave heart beat will send back" )
218
211
parser .add_argument ("script_path" , help = "Path of HPC Pack Mesos slave setup script (e.g. setupscript.ps1)" )
219
212
parser .add_argument ("setup_path" , help = "Path of HPC Pack setup executable (e.g. setup.exe)" )
220
213
parser .add_argument ("headnode" , help = "Hostname of HPC Pack cluster head node" )
221
214
parser .add_argument ("ssl_thumbprint" ,
222
215
help = "Thumbprint of certificate which will be used in installation and communication with HPC "
223
216
"Pack cluster" )
224
217
parser .add_argument ("client_cert" , help = ".pem file of client cert used for HPC Management REST API authentication" )
225
- parser .add_argument ("heartbeat_uri" , help = "Base URI of heart beat server of HPC Pack Mesos framework" )
226
218
args = parser .parse_args ()
227
219
228
220
print "Input arguments:"
@@ -231,11 +223,9 @@ def _kill_task_by_hostname(self, hostname):
231
223
print "headnode: " + args .headnode
232
224
print "ssl_thumbprint: " + args .ssl_thumbprint
233
225
print "client_cert: " + args .client_cert
234
- print "heartbeat_uri: " + args .heartbeat_uri
235
- print "listen_port: " + str (args .listen_port )
236
226
if args .node_group != "" :
237
227
print "node_group: " + args .node_group
238
228
239
229
hpcpack_framework = HpcpackFramwork (args .script_path , args .setup_path , args .headnode , args .ssl_thumbprint ,
240
- args .client_cert , args .heartbeat_uri , args . listen_port , args . node_group )
230
+ args .client_cert , args .node_group )
241
231
hpcpack_framework .start ()
0 commit comments