Repository navigation
Closed
Description
There seems to be a problem with SLURM CI test, I've seen this in several PRs : https://travis-ci.org/dask/dask-jobqueue/jobs/387815778
A job seems to be fail at submission.
============================= test session starts ==============================
platform linux -- Python 3.6.5, pytest-3.6.0, py-1.5.3, pluggy-0.6.0 -- /opt/anaconda/bin/python
cachedir: .pytest_cache
rootdir: /dask-jobqueue, inifile:
collected 11 items
dask_jobqueue/tests/test_jobqueue_core.py::test_jq_core_placeholder PASSED [ 9%]
dask_jobqueue/tests/test_jobqueue_core.py::test_errors PASSED [ 18%]
dask_jobqueue/tests/test_pbs.py::test_header PASSED [ 27%]
dask_jobqueue/tests/test_pbs.py::test_job_script PASSED [ 36%]
dask_jobqueue/tests/test_pbs.py::test_basic SKIPPED [ 45%]
dask_jobqueue/tests/test_pbs.py::test_adaptive SKIPPED [ 54%]
dask_jobqueue/tests/test_sge.py::test_basic SKIPPED [ 63%]
dask_jobqueue/tests/test_slurm.py::test_header PASSED [ 72%]
dask_jobqueue/tests/test_slurm.py::test_job_script PASSED [ 81%]
dask_jobqueue/tests/test_slurm.py::test_basic FAILED [ 90%]
dask_jobqueue/tests/test_slurm.py::test_adaptive PASSED [100%]
=================================== FAILURES ===================================
__________________________________ test_basic __________________________________
loop = <tornado.platform.asyncio.AsyncIOLoop object at 0x7f934bd42390>
@pytest.mark.env("slurm") # noqa: F811
def test_basic(loop):
with SLURMCluster(walltime='00:02:00', threads=2, processes=1, memory='4GB',
job_extra=['-D /'], loop=loop) as cluster:
with Client(cluster) as client:
workers = cluster.start_workers(2)
future = client.submit(lambda x: x + 1, 10)
assert future.result(60) == 11
assert cluster.jobs
info = client.scheduler_info()
w = list(info['workers'].values())[0]
assert w['memory_limit'] == 4e9
assert w['ncores'] == 2
cluster.stop_workers(workers)
start = time()
while len(client.scheduler_info()['workers']) > 0:
sleep(0.100)
> assert time() < start + 10
E assert 1528123387.6426318 < (1528123377.581219 + 10)
E + where 1528123387.6426318 = time()
dask_jobqueue/tests/test_slurm.py:104: AssertionError
------------------------------ Captured log call -------------------------------
core.py 210 ERROR sbatch: error: Batch job submission failed: Unable to contact slurm controller (connect failure)
core.py 210 ERROR scancel: error: Invalid job id
================ 1 failed, 7 passed, 3 skipped in 36.07 seconds ================
Metadata
Metadata
Assignees
Labels
No labels
Activity
lesteve commentedon Jun 25, 2018
I can reproduce the error locally. No expert at all in slurm but it seems to me like
ci/slurm/register_cluster.shscript is not working correctly andci/slurm/start-slurm.shis not stringent enough to detect that the . Why it seemed to work before and not anymore, no idea ...Here is the code I run:
Here is the output I get at the end of the run (the docker part seems to be fine AFAICT):
So despite the error in
register-cluster.shstart-slurm.shstill thinks slurm is properly configured.With my limited docker knowledge, it seems to me that the root problem is in the mysql container, if I only try to start the mysql container:
Haven't had time to dig further into this ...
guillaumeeb commentedon Jun 25, 2018
@lesteve do you have the same error as reported above? e.g. with the
part?
When I look at this, it seems to me that one of the two job-queue jobs that "basic" test is launching, does not fire up correctly. But it looks like the second one has worked, so the SLURM cluster seems to be up at some point.
The output you show from
start-slurm.shdoesn't look too bad to me. Theregister-cluster.shis called until no more error are return in output.lesteve commentedon Jun 26, 2018
FYI I added a Travis daily cron job. I feel this is a good way to run the tests daily (especially since there are not that many ongoing PRs in dask-jobqueue) and have some history when something appears to be failing out of nowhere.