Starting a new session immediately after ending a session with Flux gives "Internal error while spawning spindle daemons"

Abierto
#239 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
bash, c, cpp

Línea de trabajo

Reproduce under flux alloc -N4 with the issue's repro.sh: start, end, then start again. Read fluxmgr_add_to_kvs in fluxmgr.c around lines 84-141, especially the existing-namespace branch and the failing KVS commit; follow how spindlefemgr.c setup and launch_flux.cc spawnDaemon use that namespace. Done means the second --start-session succeeds after --end-session, with no "Internal error while spawning spindle daemons".

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Using the Flux resource manager, if running spindle --start-session immediately after spindle --end-session results in an "Internal error while spawning spindle daemons" and the session fails to start:

fluxuser@node-1:~$ flux alloc -N4

ƒ(s=4,d=1) fluxuser@node-1:~$ cat repro.sh
#!/bin/bash
spindle --start-session
echo "first --start-session exit $?"
spindle --end-session
echo "--end-session exit $?"
spindle --start-session
echo "second --start-session exit $?"

ƒ(s=4,d=1) fluxuser@node-1:~$ ./repro.sh
first --start-session exit 0
--end-session exit 0
Internal error while spawning spindle daemons
second --start-session exit 0

For the first, successful, session, the logs show:

[FE.4762@launch_flux.cc:107] spawnDaemon - Creating kvs spindle namespace in flux with daemon_args and bootstrap_args
[[email protected]:37] setup_args_on_fe - Getting daemon and bootstrap arguments
[[email protected]:50] setup_args_on_fe - Adding daemon and bootstrap args to flux KVS
[[email protected]:84] fluxmgr_add_to_kvs - Creating kvs spindle namespace
[[email protected]:113] fluxmgr_add_to_kvs - Setting flux kvs daemon_args = 21940 250 15213138193716679317 0
[[email protected]:120] fluxmgr_add_to_kvs - Set flux kvs boostrap_args = /home/fluxuser/Spindle-inst/libexec/spindle/spindle_bootstrap /bad_commpath/spindle.$NUMBER:/tmp/commpaths/spindle.$NUMBER /bad_cachepath/spindle.$NUMBER:/tmp/commpath/cachepath/spindle.$NUMBER 4312615407758736504 34364198826 0
[[email protected]:128] fluxmgr_add_to_kvs - Set flux kvs session = e.OG6aeZ
[[email protected]:132] fluxmgr_add_to_kvs - Commiting daemon_args and bootstrap_args to kvs

For the second, failed, session, the logs show:

[FE.4768@launch_flux.cc:107] spawnDaemon - Creating kvs spindle namespace in flux with daemon_args and bootstrap_args
[[email protected]:37] setup_args_on_fe - Getting daemon and bootstrap arguments
[[email protected]:50] setup_args_on_fe - Adding daemon and bootstrap args to flux KVS
[[email protected]:84] fluxmgr_add_to_kvs - Creating kvs spindle namespace
[FE.4766@spindle_session.cc:476] init_session - Session daemon startup was successful.  Exiting
[FE.4766@spindle_session.cc:668] waitfor_init_done - Waiting for session start to finish before exiting launcher exec
[[email protected]:92] fluxmgr_add_to_kvs - Flux kvs namespace for spindle already exists. Not recreating
[[email protected]:113] fluxmgr_add_to_kvs - Setting flux kvs daemon_args = 21940 250 3977181203926684318 0
[[email protected]:120] fluxmgr_add_to_kvs - Set flux kvs boostrap_args = /home/fluxuser/Spindle-inst/libexec/spindle/spindle_bootstrap /bad_commpath/spindle.$NUMBER:/tmp/commpaths/spindle.$NUMBER /bad_cachepath/spindle.$NUMBER:/tmp/commpath/cachepath/spindle.$NUMBER 8862407469866240024 34364198826 0
[[email protected]:128] fluxmgr_add_to_kvs - Set flux kvs session = FrNdN,Ae
[[email protected]:132] fluxmgr_add_to_kvs - Commiting daemon_args and bootstrap_args to kvs
[[email protected]:141] fluxmgr_add_to_kvs - ERROR: Committing new keys: Operation not supported
[[email protected]:53] setup_args_on_fe - ERROR: Could not add args to flux kvs
[FE.4768@launch_flux.cc:110] - ERROR: Failure setting up kvs parameters

Full log:
spindle_output.node-1.4759.txt

Lenguaje dominante
C
Estrellas
110
Forks
35
Merge medio
1 d 3 h
PR fusionados (30 d)
10

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de llnl/Spindle

Todos los issues de llnl/Spindle

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.