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

オープン
#591 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, kubernetes, python
領域
cli, devops

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Python
スター
1.9k
フォーク
205
平均マージ
2時間 2分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

faust-streaming/faust のほかの issue

faust-streaming/faust の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。