[Bug 464364] New: yast2-printer has no autoyast support
https://bugzilla.novell.com/show_bug.cgi?id=464364 Summary: yast2-printer has no autoyast support Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: AutoYaST AssignedTo: mzugec@novell.com ReportedBy: ug@novell.com QAContact: qa@suse.de Found By: --- is it wanted that yast2-printer has no autoyast support? /usr/share/applications/YaST2/printer.desktop has X-SuSE-YaST-AutoInst= instead of X-SuSE-YaST-AutoInst=all after that change, I can see and start it in the autoyast UI but I'm not sure if it's really working. you might think about setting X-SuSE-YaST-AutoInstClonable=true too -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c3 --- Comment #3 from Johannes Meixner <jsmeix@novell.com> 2009-01-08 06:43:21 MST --- Regarding the question in comment #0: It is not wanted that yast2-printer has no AutoYaST support. The new printer module is a complete re-write from scratch based upon my experimental code. For background information see http://en.opensuse.org/YaST/Development/Printer_Enhancement#Under_constructi... There was just no time to implement AutoYaST support. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c4 --- Comment #4 from Johannes Meixner <jsmeix@novell.com> 2009-01-09 07:14:11 MST --- Michal, some thoughts what I think how it should be implemented: According to http://www.suse.com/~ug/autoyast_doc/Profile.html "The control file ... consists of sets of resources ... including support for ... large embedded ..." I think the easiest and most reliable way to clone a CUPS config which was made by YaST is to simply have the files /etc/cups/cupsd.conf /etc/cups/printers.conf /etc/cups/client.conf /etc/cups/ppd/*.ppd embedded in the AutoYaST control file and a binary value whether or not the cupsd should be started during system boot. The current YaST writes only to those files. Perhaps it is better to be future-proof and save that it also works when non-YaST tools were used (in particular after manual changes) to simply tar all files in /etc/cups/ I would perefer this if the AutoYaST control file can hold such big amounts of data. I think the biggest amount of data is /etc/cups/ppd/*.ppd when there are many queues set up. To save space in the AutoYaST control file one could somehow compress the files (but the compressed data must be valid to be included in a XML file). Then on the target system all what is to do is to make backups of the existing files on the target system and then replace them with the files from the AutoYaST control file and finally restart the cupsd or stop and disable it depending on the binary value whether or not the cupsd should be started during system boot. Currently I don't know what is better: Overwrite only the content (and keep owner, group and permissions of the original files of the target system) or store also owner, group and permissions in the AutoYaST control file and set those? Currently I know about the following special case: It must be done for usb and hp DeviceURIs for USB printers like usb://HP/DESKJET%20950C?serial=ES03T1C1NVJM and hp:/usb/DeskJet_950C?serial=ES03T1C1NVJM Even when the same model is connected to the target system, each particular device will have a different serial number so that this DeviceURIs cannot work on the target system. I tested if it also works without the serial number, i.e.: usb://HP/DESKJET%20950C and hp:/usb/DeskJet_950C Regarding usb:/ DeviceURIs: Unfortunately usb://HP/DESKJET%20950C does no longer work. The usb backend simply waits forever. Regarding hp:/usb/ DeviceURIs: Unfortunately hp:/usb/DeskJet_950C does also no longer work. I get in /var/log/messages ----------------------------------------------------------- Jan 9 14:49:21 nelson DeskJet_950C: io/hpmud/musb.c 1058: unable to open hp:/usb/DeskJet_950C ----------------------------------------------------------- Therefore queues with usb:/ or hp:/usb/ DeviceURIs cannot be supported by AutoYaST. This means that no queues for USB printers can be supported by AutoYaST. All what belongs to such queues might therefore be either excluded from the AutoYaST control file (which is a bit complicated to be implemented). Or we have all stuff in the AutoYaST control file and show a notification message to the user which DeviceURIs cannot work on the target system and that he must adapt them on the target system to the actual value there via [Edit] in the YaST printer module. I prefer the latter because [Edit] is easy to do and all the rest (in particular the selected driver and perhaps whatever driver specific settings in the PPD file in /etc/cups/ppd/*.ppd are not lost for the user. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c5 --- Comment #5 from Michal Zugec <mzugec@novell.com> 2009-01-13 02:44:27 MST --- Since printer is configured in 2nd stage, we can add it later as maintenance update -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 Stanislav Visnovsky <visnov@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High CC| |visnov@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 Stanislav Visnovsky <visnov@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Major -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c7 Michal Zugec <mzugec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #7 from Michal Zugec <mzugec@novell.com> 2009-01-23 02:51:12 MST --- AY profile example: <?xml version="1.0"?> <!DOCTYPE profile> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <printer> <cups_installation config:type="symbol">server</cups_installation> <default>no system default destination</default> <printcap config:type="list"> <printcap_entry> <accepting config:type="boolean">true</accepting> <allowusers config:type="list"/> <bannerend>none</bannerend> <bannerstart>none</bannerstart> <denyusers config:type="list"/> <info>oki</info> <location>Zuzana</location> <manufacturer>HP</manufacturer> <model> LaserJet 3P w/ PCL5</model> <name>oki</name> <nick>HP LaserJet 3P w/ PCL5 Foomatic/ljet4 (recommended)</nick> <options config:type="list"> <option> <key>job-sheets</key> <value>none,none</value> </option> <option> <key>printer-info</key> <value>oki</value> </option> <option> <key>printer-is-accepting-jobs</key> <value>1</value> </option> <option> <key>printer-is-shared</key> <value>1</value> </option> <option> <key>printer-make-and-model</key> <value>HP LaserJet 3P w/ PCL5 Foomatic/ljet4 (recommended)</value> </option> <option> <key>printer-state</key> <value>3</value> </option> <option> <key>printer-state-change-time</key> <value>1212263275</value> </option> <option> <key>printer-state-reasons</key> <value>none</value> </option> <option> <key>printer-type</key> <value>12292</value> </option> </options> <ppd_options config:type="list"> <ppd_option> <key>HalftoningAlgorithm</key> <value>Standard</value> </ppd_option> <ppd_option> <key>InputSlot</key> <value>Default</value> </ppd_option> <ppd_option> <key>PageSize</key> <value>Letter</value> </ppd_option> <ppd_option> <key>Resolution</key> <value>150x150dpi</value> </ppd_option> </ppd_options> <raw config:type="boolean">false</raw> <state>idle</state> <uri>ipp://zuzana/printers/oki</uri> </printcap_entry> </printcap> <server_hostname></server_hostname> <spooler>cups</spooler> </printer> </profile> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c15 --- Comment #15 from Michal Zugec <mzugec@novell.com> 2009-02-04 02:02:44 MST --- Created an attachment (id=269899) --> (https://bugzilla.novell.com/attachment.cgi?id=269899) printer profile example This is example profile from my machine, default configuration, but print via remote cups server -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #269899|application/xml |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c16 --- Comment #16 from Johannes Meixner <jsmeix@novell.com> 2009-02-04 03:05:56 MST --- Many Thanks! It seems my brain is not a good XML parser... Could you also attach your cupsd.conf and client.conf files as MIME type text/plain so that I could better understand this "XML obfuscation" ;-) Preferably a client.conf file with an active ServerName entry. And don't forget an entry in the AutoYaST XML file whether or not the cupsd should be started. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c17 --- Comment #17 from Michal Zugec <mzugec@novell.com> 2009-02-04 03:07:54 MST --- Created an attachment (id=269916) --> (https://bugzilla.novell.com/attachment.cgi?id=269916) client.conf client.conf -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c18 --- Comment #18 from Michal Zugec <mzugec@novell.com> 2009-02-04 03:09:13 MST --- Created an attachment (id=269919) --> (https://bugzilla.novell.com/attachment.cgi?id=269919) cupsd.conf cupsd.conf -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c19 Michal Zugec <mzugec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |ug@novell.com --- Comment #19 from Michal Zugec <mzugec@novell.com> 2009-02-04 03:10:38 MST --- cups service status is defined in Runlevel (or Service) module Uwe, could you provide more details about it? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c22 --- Comment #22 from Johannes Meixner <jsmeix@novell.com> 2009-02-04 04:49:03 MST --- Created an attachment (id=269970) --> (https://bugzilla.novell.com/attachment.cgi?id=269970) CreateProfile.Hardware.html Better documentation with an XML example which matches to the text in the documentation. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c24 --- Comment #24 from Michal Zugec <mzugec@novell.com> 2009-02-04 05:07:51 MST --- Created an attachment (id=269980) --> (https://bugzilla.novell.com/attachment.cgi?id=269980) fixed profile fixed profile -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User ug@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c25 Uwe Gansert <ug@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|ug@novell.com | --- Comment #25 from Uwe Gansert <ug@novell.com> 2009-02-05 07:57:05 MST --- @#19 yes, service can be configured in the runlevel module. That's not part of the printer documentation. Just assign the bug to me when the documentation is done. I'll add it to the online docu then. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c27 --- Comment #27 from Michal Zugec <mzugec@novell.com> 2009-02-06 07:55:32 MST --- AY support (export only) implemented in yast2-printer-2.18.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=464364 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=464364#c28 Michal Zugec <mzugec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #28 from Michal Zugec <mzugec@novell.com> 2009-02-09 10:02:21 MST --- AY import implemented in yast2-printer-2.18.2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com