Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

return better error message on port config failure

Đang mở
#72 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của oxidecomputer/dendrite

Tất cả issue của oxidecomputer/dendrite

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.