Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1388397

Summary: cannot create class with two IPP printers
Product: Red Hat Enterprise Linux 6 Reporter: Petr Sklenar <psklenar>
Component: cupsAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.8   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1388508 1390351 (view as bug list) Environment:
Last Closed: 2017-10-03 08:09:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1388508, 1390351    

Description Petr Sklenar 2016-10-25 08:55:20 UTC
Description of problem:
try to create class with two IPP printers

Version-Release number of selected component (if applicable):
rhel69 nightly/

cups-1.4.2-76.el6.x86_64
system-config-printer-1.1.16-26.el6.x86_64


How reproducible:
always, its not a regression it happens also in rhel68

Steps to Reproduce:
1.have a 2 printers, created via s-c-printer > find > browse local printer server


# lpstat -v printer1
device for printer1: ipp://s01.brq.redhat.com:631/printers/brno1-5th-cafe-en
# lpstat -v printer-root
device for printer-root: ipp://s01.brq.redhat.com:631/printers/brno2-1st-rec


2. create class with 1 printer: (via s-c-printer):

[root@localhost ~]# lpstat -c class
members of class class:
	printer1



3.  try to add second printer into class:
[root@localhost ~]# lpadmin -p printer-root -c class
lpadmin: The printer or class was not found.
[root@localhost ~]# echo $?
1

# error, s-c-printer has similar error


4. try again, and see what happens:

[root@localhost ~]# lpadmin -p printer-root -c class
[root@localhost ~]# lpstat -c class
members of class class:
	printer-root



Actual results:
it somehow switches one printer for another

Expected results:
class should be with two printers


Additional info:
Its only for this ipp printer searched via s-c-p. If you try to add printer created via socket it works.

Comment 1 Petr Sklenar 2016-10-25 08:56:32 UTC
STEP 3:

D [25/Oct/2016:04:24:31 -0400] cupsdAcceptClient: skipping getpeercon()
D [25/Oct/2016:04:24:31 -0400] cupsdAcceptClient: 13 from localhost (Domain)
D [25/Oct/2016:04:24:31 -0400] Report: clients=1
D [25/Oct/2016:04:24:31 -0400] Report: jobs=1
D [25/Oct/2016:04:24:31 -0400] Report: jobs-active=0
D [25/Oct/2016:04:24:31 -0400] Report: printers=5
D [25/Oct/2016:04:24:31 -0400] Report: printers-implicit=0
D [25/Oct/2016:04:24:31 -0400] Report: stringpool-string-count=487
D [25/Oct/2016:04:24:31 -0400] Report: stringpool-alloc-bytes=6216
D [25/Oct/2016:04:24:31 -0400] Report: stringpool-total-bytes=10712
D [25/Oct/2016:04:24:31 -0400] cupsdReadClient: 13 POST / HTTP/1.1
D [25/Oct/2016:04:24:31 -0400] cupsdSetBusyState: Active clients
D [25/Oct/2016:04:24:31 -0400] cupsdAuthorize: No authentication data provided.
D [25/Oct/2016:04:24:31 -0400] cupsdReadClient: 13 1.1 Get-Printer-Attributes 1
D [25/Oct/2016:04:24:31 -0400] Get-Printer-Attributes ipp://localhost/classes/class
D [25/Oct/2016:04:24:31 -0400] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/classes/class) from localhost
D [25/Oct/2016:04:24:31 -0400] cupsdSetBusyState: Not busy
D [25/Oct/2016:04:24:31 -0400] cupsdReadClient: 13 POST /admin/ HTTP/1.1
D [25/Oct/2016:04:24:31 -0400] cupsdSetBusyState: Active clients
D [25/Oct/2016:04:24:31 -0400] cupsdAuthorize: No authentication data provided.
D [25/Oct/2016:04:24:31 -0400] cupsdReadClient: 13 1.1 CUPS-Add-Modify-Class 1
D [25/Oct/2016:04:24:31 -0400] CUPS-Add-Modify-Class ipp://localhost/classes/class
D [25/Oct/2016:04:24:31 -0400] cupsdIsAuthorized: username=""
D [25/Oct/2016:04:24:31 -0400] Returning HTTP Unauthorized for CUPS-Add-Modify-Class (ipp://localhost/classes/class) from localhost
D [25/Oct/2016:04:24:31 -0400] cupsdSendHeader: 13 WWW-Authenticate: Basic realm="CUPS", trc="y"
D [25/Oct/2016:04:24:31 -0400] cupsdReadClient: 13 WAITING Closing on EOF
D [25/Oct/2016:04:24:31 -0400] cupsdCloseClient: 13
D [25/Oct/2016:04:24:31 -0400] cupsdSetBusyState: Not busy
D [25/Oct/2016:04:24:31 -0400] cupsdAcceptClient: skipping getpeercon()
D [25/Oct/2016:04:24:31 -0400] cupsdAcceptClient: 13 from localhost (Domain)
D [25/Oct/2016:04:24:31 -0400] cupsdReadClient: 13 WAITING Closing on EOF
D [25/Oct/2016:04:24:31 -0400] cupsdCloseClient: 13
D [25/Oct/2016:04:24:31 -0400] cupsdAcceptClient: skipping getpeercon()
D [25/Oct/2016:04:24:31 -0400] cupsdAcceptClient: 13 from localhost (Domain)
D [25/Oct/2016:04:24:31 -0400] cupsdReadClient: 13 POST /admin/ HTTP/1.1
D [25/Oct/2016:04:24:31 -0400] cupsdSetBusyState: Active clients
D [25/Oct/2016:04:24:31 -0400] cupsdAuthorize: Authorized as root using PeerCred
D [25/Oct/2016:04:24:31 -0400] cupsdReadClient: 13 1.1 CUPS-Add-Modify-Class 1
D [25/Oct/2016:04:24:31 -0400] CUPS-Add-Modify-Class ipp://localhost/classes/class
D [25/Oct/2016:04:24:31 -0400] cupsdIsAuthorized: username="root"
D [25/Oct/2016:04:24:31 -0400] CUPS-Add-Modify-Class client-error-not-found: The printer or class was not found.
D [25/Oct/2016:04:24:31 -0400] Returning IPP client-error-not-found for CUPS-Add-Modify-Class (ipp://localhost/classes/class) from localhost
D [25/Oct/2016:04:24:31 -0400] cupsdSetBusyState: Not busy
D [25/Oct/2016:04:24:31 -0400] cupsdReadClient: 13 WAITING Closing on EOF
D [25/Oct/2016:04:24:31 -0400] cupsdCloseClient: 13


STEP 4:

D [25/Oct/2016:04:24:36 -0400] cupsdAcceptClient: skipping getpeercon()
D [25/Oct/2016:04:24:36 -0400] cupsdAcceptClient: 13 from localhost (Domain)
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 POST / HTTP/1.1
D [25/Oct/2016:04:24:36 -0400] cupsdSetBusyState: Active clients
D [25/Oct/2016:04:24:36 -0400] cupsdAuthorize: No authentication data provided.
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 1.1 Get-Printer-Attributes 1
D [25/Oct/2016:04:24:36 -0400] Get-Printer-Attributes ipp://localhost/classes/class
D [25/Oct/2016:04:24:36 -0400] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/classes/class) from localhost
D [25/Oct/2016:04:24:36 -0400] cupsdSetBusyState: Not busy
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 POST /admin/ HTTP/1.1
D [25/Oct/2016:04:24:36 -0400] cupsdSetBusyState: Active clients
D [25/Oct/2016:04:24:36 -0400] cupsdAuthorize: No authentication data provided.
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 1.1 CUPS-Add-Modify-Class 1
D [25/Oct/2016:04:24:36 -0400] CUPS-Add-Modify-Class ipp://localhost/classes/class
D [25/Oct/2016:04:24:36 -0400] cupsdIsAuthorized: username=""
D [25/Oct/2016:04:24:36 -0400] Returning HTTP Unauthorized for CUPS-Add-Modify-Class (ipp://localhost/classes/class) from localhost
D [25/Oct/2016:04:24:36 -0400] cupsdSendHeader: 13 WWW-Authenticate: Basic realm="CUPS", trc="y"
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 WAITING Closing on EOF
D [25/Oct/2016:04:24:36 -0400] cupsdCloseClient: 13
D [25/Oct/2016:04:24:36 -0400] cupsdSetBusyState: Not busy
D [25/Oct/2016:04:24:36 -0400] cupsdAcceptClient: skipping getpeercon()
D [25/Oct/2016:04:24:36 -0400] cupsdAcceptClient: 13 from localhost (Domain)
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 WAITING Closing on EOF
D [25/Oct/2016:04:24:36 -0400] cupsdCloseClient: 13
D [25/Oct/2016:04:24:36 -0400] cupsdAcceptClient: skipping getpeercon()
D [25/Oct/2016:04:24:36 -0400] cupsdAcceptClient: 13 from localhost (Domain)
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 POST /admin/ HTTP/1.1
D [25/Oct/2016:04:24:36 -0400] cupsdSetBusyState: Active clients
D [25/Oct/2016:04:24:36 -0400] cupsdAuthorize: Authorized as root using PeerCred
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 1.1 CUPS-Add-Modify-Class 1
D [25/Oct/2016:04:24:36 -0400] CUPS-Add-Modify-Class ipp://localhost/classes/class
D [25/Oct/2016:04:24:36 -0400] cupsdIsAuthorized: username="root"
D [25/Oct/2016:04:24:36 -0400] cupsdRegisterPrinter(p=0x7feb71c0ec70(class))
D [25/Oct/2016:04:24:36 -0400] cupsdMarkDirty(-C----)
D [25/Oct/2016:04:24:36 -0400] cupsdSetBusyState: Active clients and dirty files
D [25/Oct/2016:04:24:36 -0400] cupsdMarkDirty(---p--)
D [25/Oct/2016:04:24:36 -0400] Discarding unused printer-modified event...
I [25/Oct/2016:04:24:36 -0400] Class "class" modified by "root".
D [25/Oct/2016:04:24:36 -0400] Returning IPP successful-ok for CUPS-Add-Modify-Class (ipp://localhost/classes/class) from localhost
D [25/Oct/2016:04:24:36 -0400] cupsdSetBusyState: Dirty files
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 WAITING Closing on EOF
D [25/Oct/2016:04:24:36 -0400] cupsdCloseClient: 13
D [25/Oct/2016:04:24:36 -0400] cupsdAcceptClient: skipping getpeercon()
D [25/Oct/2016:04:24:36 -0400] cupsdAcceptClient: 13 from localhost (Domain)
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 POST / HTTP/1.1
D [25/Oct/2016:04:24:36 -0400] cupsdSetBusyState: Active clients and dirty files
D [25/Oct/2016:04:24:36 -0400] cupsdAuthorize: No authentication data provided.
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 1.1 Get-Jobs 1
D [25/Oct/2016:04:24:36 -0400] Get-Jobs ipp://localhost/printers/
D [25/Oct/2016:04:24:36 -0400] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost
D [25/Oct/2016:04:24:36 -0400] cupsdSetBusyState: Dirty files
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 WAITING Closing on EOF
D [25/Oct/2016:04:24:36 -0400] cupsdCloseClient: 13
D [25/Oct/2016:04:24:36 -0400] cupsdAcceptClient: skipping getpeercon()
D [25/Oct/2016:04:24:36 -0400] cupsdAcceptClient: 13 from localhost (Domain)
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 POST / HTTP/1.1
D [25/Oct/2016:04:24:36 -0400] cupsdSetBusyState: Active clients and dirty files
D [25/Oct/2016:04:24:36 -0400] cupsdAuthorize: No authentication data provided.
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 1.1 Get-Notifications 1
D [25/Oct/2016:04:24:36 -0400] Get-Notifications /
D [25/Oct/2016:04:24:36 -0400] cupsdIsAuthorized: requesting-user-name="petr"
D [25/Oct/2016:04:24:36 -0400] Returning IPP successful-ok for Get-Notifications (/) from localhost
D [25/Oct/2016:04:24:36 -0400] cupsdSetBusyState: Dirty files
D [25/Oct/2016:04:24:36 -0400] cupsdReadClient: 13 WAITING Closing on EOF
D [25/Oct/2016:04:24:36 -0400] cupsdCloseClient: 13
I [25/Oct/2016:04:25:08 -0400] Saving classes.conf...
I [25/Oct/2016:04:25:08 -0400] Generating printcap /etc/printcap...
D [25/Oct/2016:04:25:08 -0400] cupsdSetBusyState: Not busy

Comment 7 Zdenek Dohnal 2017-10-03 08:09:07 UTC
Red Hat Enterprise Linux 6 transitioned to the Production 3 Phase on May 10, 2017.  During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:
http://redhat.com/rhel/lifecycle

This issue does not appear to meet the inclusion criteria for the Production Phase 3 and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification.  Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com