Univention Bugzilla – Bug 39112
64_udm-printers.50_create_printer_for_every_printer_URI failed
Last modified: 2023-03-25 06:49:02 CET
http://jenkins.knut.univention.de:8080/job/UCS-4.0/job/UCS-4.0-3/job/App%20Autotest%20SingleEnv/lastCompletedBuild/testReport/64_udm-printers/50_create_printer_for_every_printer_URI/test/ [2015-08-07 09:22:58.067565]Creating shares/printer object with {'position': 'cn=printers,dc=autotest101,dc=local', 'set': {'spoolHost': 'master101.autotest101.local', 'model': 'None', 'uri': 'lpd:// /tmp/s31oct60js'}, 'bindpwd': 'univention', 'name': 's31oct60js', 'binddn': 'uid=Administrator,cn=users,dc=autotest101,dc=local'} [2015-08-07 09:22:58.347730]Waiting for replication: [2015-08-07 09:22:58.562490]CRITICAL: no change of listener transaction id for last 0 checks (nid=2896 lid=2895) [2015-08-07 09:22:59.634781]OK: replication complete (nid=2896 lid=2896) [2015-08-07 09:22:59.636760]Done: replication complete. [2015-08-07 09:22:59.682851]### FAIL ### [2015-08-07 09:22:59.682880]Printer (s31oct60js) is created but not enabled [2015-08-07 09:22:59.682891]### ### [2015-08-07 09:22:59.689140]Cleanup after exception: <type 'exceptions.SystemExit'> 1 [2015-08-07 09:22:59.689195]Performing UCSTestUDM cleanup... [2015-08-07 09:22:59.882854]UCSTestUDM cleanup done
r62806: * 64_udm-printers/50_create_printer_for_every_printer_URI: added more debug (Bug #39112)
The output: [2015-08-08 11:46:33.391000]Creating shares/printer object with {'position': 'cn=printers,dc=autotest125,dc=local', 'set': {'spoolHost': 'slave125.autotest125.local', 'model': 'None', 'uri': 'lpd:// /tmp/aja3p67jng'}, 'bindpwd': 'univention', 'name': 'aja3p67jng', 'binddn': 'uid=Administrator,cn=users,dc=autotest125,dc=local'} [2015-08-08 11:46:33.624362]Waiting for replication: [2015-08-08 11:46:33.761402]CRITICAL: no change of listener transaction id for last 0 checks (nid=2593 lid=2592) [2015-08-08 11:46:34.829157]OK: replication complete (nid=2593 lid=2593) [2015-08-08 11:46:34.830620]Done: replication complete. [2015-08-08 11:46:34.876150]stdout from lpstat -p: [2015-08-08 11:46:34.876171]stderr from lpstat -p: lpstat: Verbindungsaufbau abgelehnt [2015-08-08 11:46:34.876179]### FAIL ###
r62835: * 64_udm-printers/50_create_printer_for_every_printer_URI: in case of an error, wait for 30 seconds and try again (Bug #39112)
*** Bug 38320 has been marked as a duplicate of this bug. ***
(In reply to Stefan Gohmann from comment #3) > r62835: > * 64_udm-printers/50_create_printer_for_every_printer_URI: in case of > an error, wait for 30 seconds and try again (Bug #39112) The same, so I guess it is not a timing issue and cups is not running after the setup has been finished. I've changed the test case, the test case does not fail any more if the printer is not enabled. Please have a look.
univention-printserver is installed before the initial setup. During installation we set cups/systemgroup=Printer-Admins,lp, but "Printer-Admin" does not exist at this point. The cups restart in the univention-printserver.postinst fails, syslog: cupsd: Unknown SystemGroup "Printer-Admins lp" on line 25 of /etc/cups/cups-files.conf. cupsd: Unable to read "/etc/cups/cups-files.conf" due to errors. and we never restart cups again (not even in the join script). So this is not a problem with the test and it also happens on non-master systems if univention-printserver is installed before the join. We should restart cups in the join script (at this point both system group exists and cups should start fine). Create Bug #40591 for cups restart and re enabled test, should fail until Bug #40591 is fixed
For this bug is no separate QA needed.