return better error message on port config failure
メンテナーはふだん 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- 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
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
trailofbits/dylint#2107 ·
メンテナーはふだん 1 日以内に返信
-
area:cli bug good first issue priority:medium
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
arrays_zip with two same-named inputs fails with "ArrowArray struct has 2 children (expected 1)"オープンbug requires-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/datafusion-comet#6251 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug false-positive harper-core linting
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Automattic/harper#4471 ·
メンテナーはふだん 1 日以内に返信