xde: mac_unicast_add failed for vnic on etherstub

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
rust
領域
networking

調査の方向性

示されている dladm コマンドを使って etherstub と vnic でセットアップを再現し、mac_unicast_add が net1 に対して EINVAL で失敗する SetXdeUnderlay パスを追跡する。OPTE のアップグレード後に、そのエラーなしで vnic-on-etherstub underlay が動作すれば完了とする。

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

説明

My test sleds only have one physical 10G link to the fake scrimlet, but xde requires setting two devices as the underlay devices. My work around for this is to use the 10G link as the first underlay devices, and a vnic on an otherwise unconnected etherstub as the second underlay device:

pfexec dladm create-etherstub -t unattachedstub0
pfexec dladm create-vnic -t -l unattachedstub0 net1

This way, there's no ddm advertisement confusion.

This method didn't work after upgrading to OPTE 0.23.170. I saw EINVAL:

16:07:47.228Z WARN SledAgent (sprockets (BootstrapAgent)): Sled agent request failed
    err = Error managing sled agent: Could not start sled agent server: Error managing guest networking: Failure interacting with the OPTE ioctl(2) interface: command SetXdeUnderlay failed: System { errno: 14, msg: "mac_unicast_add failed for net1: 22" }

If I instead use a simnet link that's not connected to anything, or the machine's 1G link (that does also not participate in any ddm related activity), I do not see EINVAL.

主要言語
Rust
スター
82
フォーク
16
平均マージ
3日 6時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

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

oxidecomputer/opte のほかの issue

oxidecomputer/opte の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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