Using debugging mode inside a container is impossible because the console host is not parametrized

Abierto
#591 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
docker, kubernetes, python
Área
cli, devops

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 --debug parameter enabled.
  • In the console output, you will see a Starting console at 127.0.0.1:50101 message instead of localhost.
  • Accessing the debugging console from outside the container is impossible.

Expected behavior

Actual behavior

  • aiomonitor console 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

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 faust-streaming/faust

Todos los issues de faust-streaming/faust

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.