How to preserve printer UUID/ID across restarts in cups-browsed to avoid job loss in Kubernetes with PVC
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- c
调研方向
该 issue 指出了 /etc/cups/printers.conf 和 /var/spool/cups;首先跟踪 cups-browsed 发现的队列生命周期,以及 CUPS 如何在 pod 重启期间将排队的作业与打印机 ID 关联起来。完成这项工作需要就持久化或队列复用行为达成一致,并验证保留的作业会在重启后继续执行,但这里没有指定测试或入口点。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- C
- 星标
- 51
- 派生
- 21
- 平均合并
- 22 小时 49 分钟
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenPrinting/cups-browsed 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 67/100
OpenPrinting/cups-browsed#82 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
OpenPrinting/cups-browsed#77 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 42/100
OpenPrinting/cups-browsed#76 ·
-
难度 4/5 3-5 天 新手友好度 50/100
OpenPrinting/cups-browsed#75 ·
-
难度 4/5 3-5 天 新手友好度 38/100
OpenPrinting/cups-browsed#71 ·
查看 OpenPrinting/cups-browsed 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
ChupathingyCE/chupathingyce#1550 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
slice
难度 2/5 1-3 小时 新手友好度 73/100
Life-Framework/Life-Framework#3878 ·
维护者通常 1 天内回复
-
`sha256()` returns a wrong hash when libsql-ffi is built with gcc 11 or later可能已有人在做 @colinhacks 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
tursodatabase/libsql#2333 ·
维护者通常 11 天内回复