Skip to content
Snippets Groups Projects
Commit 46b546a0 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Moved form "master" to "host" for Slurm+SSH access method conf.

parent 826650c7
No related branches found
No related tags found
No related merge requests found
......@@ -373,11 +373,6 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI):
# Get computing host
computing_host = computing.conf.get('host')
# Trick for handling Slurm.. TODO: fix me!
if not computing_host:
computing_host = computing.conf.get('master')
computing_user = computing.conf.get('user')
if not computing_host:
......@@ -405,11 +400,6 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI):
# Get computing host
computing_host = computing.conf.get('host')
# Trick for handling Slurm.. TODO: fix me!
if not computing_host:
computing_host = computing.conf.get('master')
computing_user = computing.conf.get('user')
if not computing_host:
......
......@@ -323,7 +323,7 @@ class SlurmSSHClusterComputingManager(ClusterComputingManager, SSHComputingManag
logger.debug('Starting a remote task "{}"'.format(self.computing))
# Get computing host
host = self.computing.conf.get('master')
host = self.computing.conf.get('host')
user = self.computing.conf.get('user')
# Get user keys
......@@ -448,7 +448,7 @@ class SlurmSSHClusterComputingManager(ClusterComputingManager, SSHComputingManag
raise NotImplementedError('Remote tasks not requiring keys are not yet supported')
# Get computing host
host = self.computing.conf.get('master')
host = self.computing.conf.get('host')
user = self.computing.conf.get('user')
# Stop the task remotely
......@@ -471,7 +471,7 @@ class SlurmSSHClusterComputingManager(ClusterComputingManager, SSHComputingManag
raise NotImplementedError('Remote tasks not requiring keys are not yet supported')
# Get computing host
host = self.computing.conf.get('master')
host = self.computing.conf.get('host')
user = self.computing.conf.get('user')
# View log remotely
......
......@@ -259,7 +259,7 @@ class Command(BaseCommand):
# Create demo slurm sys computing conf
ComputingSysConf.objects.create(computing = demo_slurm_computing,
data = {'master': 'slurmclustermaster-main', 'default_partition': 'partition1',
data = {'host': 'slurmclustermaster-main', 'default_partition': 'partition1',
'binds': '/shared/data/users:/shared/data/users,/shared/scratch:/shared/scratch'})
# Create demo slurm user computing conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment