Add IPv6/dual-stack support: Operator-rendered and metrics server commands both hardcode 0.0.0.0
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 領域
- devops, networking
調査の方向性
Start with start_metrics_server() in sdk/python/feast/metrics.py and getContainerCommand() in infra/feast-operator/internal/controller/services/services.go, then trace ServerConfigs and the affected service commands. Done means metrics serves over 127.0.0.1 and ::1 on dual-stack hosts, still starts on IPv4-only hosts, and a FeatureStore bind-address setting appears in each affected rendered command.
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
Yes, in two places, both hardcoding an IPv4-only bind:
-
start_metrics_server()
binds viawsgiref.simple_server.make_server("", port, ...), which defaults
socketserver.TCPServer.address_familytosocket.AF_INET. On our IPv6-primary cluster,
Istio's sidecar scrapes the pod's IPv6 address and gets connection refused — confirmed via
Envoy access logs (503 delayed_connect_error:_Connection_refusedon every scrape), while
curl localhost:8000/metricsfrom inside the same container succeeds every time. -
The Feast Operator's
getContainerCommand()
hardcodes-h 0.0.0.0in the startup command of every service container it renders (online,
ui,offline,lineage), with no CRD field to change it. On the same IPv6-only cluster, none
of these servers bind an address anything can reach.
We work around (2.) today with a Kyverno ClusterPolicy that rewrites each container's command
at admission time — functional, but fragile: it doesn't self-heal already-running Deployments
(skipBackgroundRequests: true), and an earlier version of this exact policy replaced the entire
command with a hardcoded string instead of mapping over the operator's own argv, silently
dropping --workers, --metrics, and other flags for months before we caught it.
Describe the solution you'd like
feast.metrics.start_metrics_server() — bind dual-stack instead of IPv4-only:
import socket
from wsgiref.simple_server import WSGIServer, make_server
class DualStackWSGIServer(WSGIServer):
address_family = socket.AF_INET6
def server_bind(self):
self.socket.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 0)
super().server_bind()
httpd = make_server("::", port, app, server_class=DualStackWSGIServer)
Still works on IPv4-only hosts — Linux dual-stack sockets fall back cleanly with
net.ipv6.bindv6only=0, the default.
Feast Operator — add a BindAddress/DualStack field to ServerConfigs (parallel to other
per-service settings) that getContainerCommand() uses instead of the hardcoded 0.0.0.0
literal, accounting for the uvicorn-based ui/lineage servers rejecting a bracketed host (::)
unlike the gunicorn/Flight servers ([::]).
Describe alternatives you've considered
For the Operator half: the Kyverno ClusterPolicy above. It works, but every environment that
needs IPv6 needs Kyverno installed and a policy kept in lockstep with the Operator's own
command-building logic, and a bug in the policy (we've had one) doesn't self-heal already-running
Deployments.
Additional context
Test plan
-
start_metrics_server()binds successfully and serves/metricsover both127.0.0.1and
::1on a dual-stack host. - Same binary still starts on an IPv4-only host (no IPv6 stack).
- A
FeatureStoreCR setting the new bind-address field renders the configured address in
each affected container's command.
- 主要言語
- Python
- スター
- 7.4k
- フォーク
- 1.5k
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 107
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
feast-dev/feast のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
BigQuery data quality monitoring fails: PRIMARY KEY placed outside the column list in monitoring table DDL対応中かも @liron-velocity が 50 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
get_online_features silently drops a join key value when it shares a name with an OnDemandFeatureView's RequestSource field対応中かも @OHMFOHS が 99 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
kind/bug priority/p2
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
feast-dev/feast#6778 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
feast-dev/feast の issue をすべて見る
似ている issue
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
future-agi/future-agi#6392 ·
メンテナーはふだん 1 日以内に返信
-
memmapped_arange ignores the start value and drops the last point above the memmap threshold対応中かも @prathameshfuke が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
StingraySoftware/HENDRICS#213 ·
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信