Comment 5 for bug 1455212

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hello Till,

Sorry for the delay. While testing the applied patch in fresh Ubuntu 15.04 machine, the issue seems to be half fixed and can be still reproduced. After comparing the setup with old Ubuntu system, I found that, while debugging I added RUN{builtin}+="uaccess" entry in 56-hpmud.rules file, which I forgot to remove while testing shebang changes and hence I could see permissions getting reflected immediately and ipp queue getting created immediately and therefore I thought that issue is fixed. I am really sorry about that. Basically there were two problems related to system-configure-printer.

ISSUE1: udev-add-printer script cannot be launched from udev-configure-printer process (as python process throws an error "unknown option -") and hence automatic print queues are not added. Provided patch is correct and fixes this issue. Anyway I am providing the test code (in the attached file) using which this issue could be reproduced.

ISSUE2: Not yet fixed. Need to write proper udev rules for the programs that create daemons. I have explained the issue properly in the attached file.
systemd-udevd worker process hangs for about 3 minutes and hence
    1) Setting permissions to device node in /dev directory is delayed by 3 minutes.
    2) udev-add-printer process remains in Zombie state for about 3 minutes as parent process does not read its exit value
    3) ippusbxd daemon (which is forked from ippusbxd main process before returning ipp port) is terminated after 3 minutes, and hence ipp uri becomes unusable as there is no daemon listening to ipp requests.

I could not spend more time to test the proposed fix (i.e using TAG+= "systemd", ENV{SYSTEMD-WANTED}="configure-printer@.service" and then writing proper service file etc etc.) due to lack of time. Please check if you can reproduce the issue non IPP usb printer and also please let me know if you need any other information regarding this issue.

Thanks,
Sanjay