port_settings_apply clobbers link-local addresses added via link_ipv6_create
メンテナーはふだん 5 日以内に返信
@cfzimmerman がすでに取り組んでいます。
2026年8月25日 から。
評価
この issue はまだ評価されていません。
説明
When port_settings_apply is run, it grabs a copy of dpd's internal state for each port/link, diffs it against the state requested by the API client, and then reconciles the difference.
The problem we have here is that omicron is the main (practically only) consumer of port_settings_apply, and it doesn't include any link-local IPv6 addresses in its request... since these are handled by tfportd and illumos.
tfportd learns about IPv6 link-local addresses in illumos from its reconciler, and synchronizes them into dpd via link_ipv6_create.
Both port_settings_apply and link_ipv6_create modify the same internal state: Link.ipv6
#[derive(Debug)]
pub struct Link {
pub port_id: PortId,
pub link_id: LinkId,
pub port_hdl: PortHdl,
pub asic_port_id: AsicId,
pub updated: i64,
pub presence: bool,
pub ipv6_enabled: bool,
pub tx_eq: Option<TxEq>,
pub fsm_state: asic::PortFsmState,
pub link_state: LinkState,
pub media: PortMedia,
/// A list of IPv4 addresses assigned to this link.
pub ipv4: BTreeSet<Ipv4Entry>,
/// A list of IPv6 addresses assigned to this link.
pub ipv6: BTreeSet<Ipv6Entry>, <<<<<<<<<<<
pub linkup_tracker: LinkUpTracker,
pub autoneg_tracker: AutonegTracker,
/// Configuration requested by the user/sled-agent.
pub config: LinkConfig,
/// State that actually exists in the ASIC layer.
pub(crate) plumbed: LinkPlumbed,
}
When port_settings_apply is run, the internal dpd state includes all items in Link.ipv6 (including the link-locals added by tfportd) and thus the diff always indicates that the link-local is old state that should be removed.
This results in the omicron reconciler (via port_settings_apply) and the tfport reconciler (via link_ipv6_create) battling each other and the IPv6 link-local addresses being removed from the ASIC anytime omicron's reconciler runs after the tfport reconciler... which means that periodically, the ASIC will stop punting traffic destined for that link-local address. This would affect NDP, BGP unnumbered, etc. and could potentially cause service disruptions if the blackholing were to last long enough.
- 主要言語
- Rust
- スター
- 20
- フォーク
- 3
- 平均マージ
- 8時間 29分
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
oxidecomputer/dendrite のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
oxidecomputer/dendrite#380 ·
メンテナーはふだん 5 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
oxidecomputer/dendrite#375 ·
メンテナーはふだん 5 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
oxidecomputer/dendrite#369 ·
メンテナーはふだん 5 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
oxidecomputer/dendrite#368 ·
メンテナーはふだん 5 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
oxidecomputer/dendrite#359 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
oxidecomputer/dendrite の issue をすべて見る
似ている issue
-
area:casework bug criticality:p3 triage:needs-implementation
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
registrystack/registry-stack#1623 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
leptos-rs/leptos#4885 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
longbridge/gpui-kit#3276 ·
メンテナーはふだん 1 日以内に返信
-
A-Migration Guides D-Straightforward S-Ready-For-Implementation X-Uncontroversial
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
bevyengine/bevy-website#2607 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信