return better error message on port config failure
Maintainer thường phản hồi trong vòng 5 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- rust
- Lĩnh vực
- networking
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 20
- Fork
- 3
- Merge trung bình
- 8 giờ 29 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của oxidecomputer/dendrite
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
oxidecomputer/dendrite#380 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
oxidecomputer/dendrite#375 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
oxidecomputer/dendrite#369 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
oxidecomputer/dendrite#368 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
oxidecomputer/dendrite#359 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của oxidecomputer/dendrite
Issue tương tự
-
area:casework bug criticality:p3 triage:needs-implementation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
registrystack/registry-stack#1623 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
leptos-rs/leptos#4885 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
longbridge/gpui-kit#3276 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A-Migration Guides D-Straightforward S-Ready-For-Implementation X-Uncontroversial
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
bevyengine/bevy-website#2607 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày