X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a5ce43cd7493e17fe1bb5f67451957b283881228..68463d51530a921dd965075e1721744c75322703:/services/crunch-dispatch-slurm/crunch-dispatch-slurm.go diff --git a/services/crunch-dispatch-slurm/crunch-dispatch-slurm.go b/services/crunch-dispatch-slurm/crunch-dispatch-slurm.go index b65ed22c50..0c1ce49592 100644 --- a/services/crunch-dispatch-slurm/crunch-dispatch-slurm.go +++ b/services/crunch-dispatch-slurm/crunch-dispatch-slurm.go @@ -79,11 +79,11 @@ func doMain() error { // propagated to crunch-run via SLURM. os.Setenv("ARVADOS_API_HOST", theConfig.Client.APIHost) os.Setenv("ARVADOS_API_TOKEN", theConfig.Client.AuthToken) - os.Setenv("ARVADOS_API_INSECURE", "") + os.Setenv("ARVADOS_API_HOST_INSECURE", "") if theConfig.Client.Insecure { - os.Setenv("ARVADOS_API_INSECURE", "1") + os.Setenv("ARVADOS_API_HOST_INSECURE", "1") } - os.Setenv("ARVADOS_KEEP_SERVICES", "") + os.Setenv("ARVADOS_KEEP_SERVICES", strings.Join(theConfig.Client.KeepServiceURIs, " ")) os.Setenv("ARVADOS_EXTERNAL_CLIENT", "") } else { log.Printf("warning: Client credentials missing from config, so falling back on environment variables (deprecated).") @@ -183,9 +183,10 @@ func submit(dispatcher *dispatch.Dispatcher, squeueUpdater.SlurmLock.Lock() defer squeueUpdater.SlurmLock.Unlock() + log.Printf("sbatch starting: %+q", cmd.Args) err := cmd.Start() if err != nil { - submitErr = fmt.Errorf("Error starting %v: %v", cmd.Args, err) + submitErr = fmt.Errorf("Error starting sbatch: %v", err) return }