Using debugging mode inside a container is impossible because the console host is not parametrized
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start in faust/cli/base.py, where the existing --console-port option is defined, and follow how the value reaches the Worker in faust/worker.py. The Worker's console_host attribute lives in the external mode library (mode/worker.py), so check whether that change must land upstream first. Done means a --console-host option binds the aiomonitor console to the given address, which you can confirm by running a worker with --debug inside a container and connecting from the host.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Version: v0.10.21
Using debugging mode inside a container is impossible because the console host is not parametrized. Faust CLI allows specifying aiomonitor console port using the --console-port parameter. Unfortunately, since "console-host" is not available, it's using the default host address specified in aiomonitor, which is 127.0.0.1.
This problem affects both configurations that are using docker containers and Kubernetes setup. Changing it manually in aiomonitor source code to 0.0.0.0 solved the issue both in Docker and Kubernetes.
Steps to reproduce
- Run a Faust worker from within a docker container with the
--debugparameter enabled. - In the console output, you will see a
Starting console at 127.0.0.1:50101message instead oflocalhost. - Accessing the debugging console from outside the container is impossible.
Expected behavior
- Add parameter
--console-hostwhich will override the default host address
As I understand this means: - Adding the
console_hostvariable to theWorkerclass in themodelibrary (https://github.com/faust-streaming/mode/blob/master/mode/worker.py#L351). - Updating Worker class in
faustaccordingly (https://github.com/faust-streaming/faust/blob/master/faust/worker.py#L228) - And updating CLI (https://github.com/faust-streaming/faust/blob/master/faust/cli/base.py#L158)
Actual behavior
aiomonitorconsole is running on the default host address:127.0.0.1.
- Lenguaje dominante
- Python
- Estrellas
- 1.9k
- Forks
- 205
- Merge medio
- 2 h 2 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de faust-streaming/faust
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
faust-streaming/faust#804 ·
-
scripts/install script forces use of ./venv virtualenv, impossible to use with virtualenvwrapperAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
faust-streaming/faust#28 · 1 comentario ·
-
[BUG] SASL PLAINTEXT producer initialization fails : missing sasl_plain_username/passwordPosiblemente ocupada @wbarnha la tomó hace 56 días. Abierto
faust-streaming/faust#794 · 2 comentarios · 1 reacción · 2 asignados ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
faust-streaming/faust#670 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
faust-streaming/faust#666 ·
Todos los issues de faust-streaming/faust
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
[Maintainer] task area:visualizer
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
RailtownAI/railtracks#1824 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
apache/datafusion#27688 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
heasarc/heasarc-tutorials#317 ·
-
bug good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
mloda-ai/mloda-registry#1664 ·
Los mantenedores suelen responder en 1 día