Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

return better error message on port config failure

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

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

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

評価

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

調査の方向性

Start by tracing the dpd port_settings operation and the SDE error path described in the issue, comparing the detailed dpd log with the error returned to wicket. Done means the original client receives the detailed validation reason, or dpd performs a speed/FEC sanity check and reports a useful error before calling the SDE.

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

説明

When attempting to create a 40g link with RS-fec from wicket, it failed and returned an error message of:

✘ Configuring switch (105.791986ms)
    failed to create port Qsfp(Qsfp("qsfp0"))
    Caused by:
        Error Response: status: 400 Bad Request; headers: {"content-type": "application/json", "x-request-id": "60b4d195-4373-4990-99b0-03120fefb8f0", "content-length": "161", "date": "Sun, 28 Dec 1986 00:15:11 GMT"}; value: Error { error_code: Some("invalid data: invalid port configuration"), message: "invalid port configuration", request_id: "60b4d195-4373-4990-99b0-03120fefb8f0" }

Looking at the dpd log we can see both the source of that message, as well as the much more useful error logged by the SDE:

1986-12-28 00:17:05.908733 BF_PM ERROR - pm_port_valid_speed_and_channel_internal:979 Port validation failed for Dev-family: Tofino2 dev : 0 d_p : 320 : 33/0 speed : 40g num-lanes: 4 error-msg: RS FEC not valid for this speed
00:17:05.910Z ERRO dpd: port_settings op failed: Switch(InvalidArg("invalid port configuration"))

We should find a way to convey the detailed message from the SDE to dpd, and thus to the original client. If it's not practical to fix the error mechanism from SDE (which I suspect is just a single 32-bit error code), we can certainly sanity check the speed/fec combinations in dpd before calling into the SDE, and generate a more useful error ourselves.

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

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

oxidecomputer/dendrite のほかの issue

oxidecomputer/dendrite の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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