How to preserve printer UUID/ID across restarts in cups-browsed to avoid job loss in Kubernetes with PVC
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- c
- Lĩnh vực
- backend, operating-systems
Hướng nghiên cứu
Issue xác định /etc/cups/printers.conf và /var/spool/cups; hãy bắt đầu bằng cách lần theo vòng đời của các queue được cups-browsed phát hiện và cách CUPS liên kết các job đang xếp hàng với ID máy in qua các lần khởi động lại pod. Để hoàn tất, cần thống nhất hành vi lưu bền hoặc tái sử dụng queue, đồng thời xác thực rằng các job được giữ lại sẽ tiếp tục sau khi khởi động lại, nhưng ở đây không nêu test hay entry point nào.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
We are running a CUPS setup inside Kubernetes, where printers are dynamically discovered using cups-browsed and we persist important CUPS directories across pod restarts using PVCs (/etc/cups/printers.conf and /var/spool/cups).
Our issue arises when the client pod is deleted and recreated:
The printer UUID/ID changes in printers.conf, even though the printer name remains the same.
The print jobs retained in /var/spool/cups no longer get processed because they are no longer linked to the new printer instance.
This leads to jobs stuck in the spool with “[“No suitable Destination Host found by cups-browsed]” issues or silent failures.
From the CUPS maintainer's response, we understand that:
https://github.com/OpenPrinting/cups/discussions/1245
Print jobs on the client side can be affected by changes in printer UUID/ID.
cups-browsed can delete and recreate queues, which in turn breaks job associations.
Is there a recommended way in cups-browsed to persist or reuse the same printer UUID or ID across restarts in Kubernetes?
Alternatively, is there a way to avoid deleting/replacing queues if the discovered printer matches a previously seen printer (e.g., by hostname/IP/DeviceURI), so that queued jobs remain valid?
Our goal is to ensure that jobs in the spool directory can continue printing after a pod restart, especially in high-availability or clustered environments.
- Ngôn ngữ chính
- C
- Star
- 51
- Fork
- 21
- Merge trung bình
- 22 giờ 49 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 OpenPrinting/cups-browsed
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
OpenPrinting/cups-browsed#82 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
OpenPrinting/cups-browsed#77 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
OpenPrinting/cups-browsed#76 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
OpenPrinting/cups-browsed#75 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
OpenPrinting/cups-browsed#71 ·
Tất cả issue của OpenPrinting/cups-browsed
Issue tương tự
-
`sha256()` returns a wrong hash when libsql-ffi is built with gcc 11 or laterCó thể đã có người làm @colinhacks đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tursodatabase/libsql#2333 ·
Maintainer thường phản hồi trong vòng 11 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
OpenPrinting/cups#1826 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Backport to 3.0 advertises a suffix that does not existCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
389ds/389-ds-base#8152 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
RetroAchievements/rcheevos#580 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày