Multirack: Commission path ignores network.rack_subnet and rack1 gets a random /48

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

メンテナーはふだん 3 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
networking

調査の方向性

Start at voxel/src/commission.rs:197, where rack_subnet_address is set to None, and trace how network.rack_subnet is parsed for multirack join. The report links a proposed fix branch and shows the expected configured subnet and successful join; check whether that change addresses the mismatch, then verify rack1's subnet and cross-rack join behavior.

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

説明

voxel/src/commission.rs:197 hardcodes: rack_subnet_address: None

wicketd then picks a random ULA prefix for rack1, multirack join for rack2 uses the configured subnet, and racks end up in different /48s. I believe that goes against RFD 63's "an AZ is a /48" and how it's interpreted in RFD 680.

On my voxel 2x3 launch (omicron fd9dabe46):

  • rack1: fd0d:85c:1553:100::/56 (random)
  • rack2: fd00:17:1:e00::/56 (configured)
  • voxel network show reports fd00:17:1:d00::/56 for rack1 (clearly and egregiously wrong)

Since control plane zones only route their own /48 (illumos-utils/src/running_zone.rs:396), rack1 zones therefore cannot reach rack2:

root@oxz_nexus:~# curl -m 10 http://[fd00:17:1:e01::1]:12345/multirack-join-service-status
curl: (7) Failed to connect to fd00:17:1:e01::1 port 12345 after 0 ms

Proposed fix: https://github.com/oxidecomputer/voxel/tree/skaram/commission-rack-subnet

rack_subnet_address: Some(
    n.rack_subnet
        .parse::<oxnet::Ipv6Net>()
        .context("rack_subnet")?
        .addr(),
),

With the fix, a rack1 Nexus zone reaches rack2's sled-agent and PUT /multirack-join-complete returns 204:

rack1 gets the configured subnet (yay):

$ voxel host exec -c "ipadm show-addr | grep sled6" g0
underlay0/sled6 static ok fd00:17:1:d01::1/64


The rack1 Nexus zone's AZ route covers rack2!

root@oxz_nexus_bbd12dea:~# netstat -rn -f inet6 | grep /48
fd00:17:1::/48 fd00:17:1:d01::1 UG 77 27095 oxControlService22


The zone reaches rack2's sled-agent (in Nexus!) and completes the join (oh gosh how nice):

root@oxz_nexus_bbd12dea:~# curl -sS -i -m 10 -X PUT -H 'api-version: 63.0.0'
http://[fd00:17:1:e01::1]:12345/multirack-join-complete
HTTP/1.1 204 No Content

$ voxel tp exec -c "curl -s -H 'api-version: 6.0.0' http://[::1]:12234/rack-setup" rack2/switch0
{"rack_state":"initialized","operation":{"kind":"multirack-join","id":"8f1ab089-7573-4721-9cf6-fe49238ce8bc","state":{"state":"completed"}}}

主要言語
Rust
スター
25
フォーク
3
平均マージ
5日 8時間
マージ済み PR(30日)
20

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

oxidecomputer/voxel のほかの issue

oxidecomputer/voxel の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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