Bug 39112 - 64_udm-printers.50_create_printer_for_every_printer_URI failed
64_udm-printers.50_create_printer_for_every_printer_URI failed
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: Printserver
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Felix Botner
:
: 38320 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-07 17:40 CEST by Stefan Gohmann
Modified: 2023-03-25 06:49 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2015-08-07 17:40:14 CEST
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
Comment 1 Stefan Gohmann univentionstaff 2015-08-07 17:45:28 CEST
r62806:
* 64_udm-printers/50_create_printer_for_every_printer_URI: added more
  debug (Bug #39112)
Comment 2 Stefan Gohmann univentionstaff 2015-08-08 19:42:50 CEST
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 ###
Comment 3 Stefan Gohmann univentionstaff 2015-08-08 19:45:00 CEST
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)
Comment 4 Stefan Gohmann univentionstaff 2015-08-10 07:28:51 CEST
*** Bug 38320 has been marked as a duplicate of this bug. ***
Comment 5 Stefan Gohmann univentionstaff 2015-08-10 13:26:20 CEST
(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.
Comment 6 Felix Botner univentionstaff 2016-02-05 12:22:19 CET
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
Comment 7 Stefan Gohmann univentionstaff 2016-10-12 07:48:27 CEST
For this bug is no separate QA needed.