How to preserve printer UUID/ID across restarts in cups-browsed to avoid job loss in Kubernetes with PVC

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

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

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 OpenPrinting/cups-browsed

Tất cả issue của OpenPrinting/cups-browsed

Issue tương tự

Thêm issue về C

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.