[Bug 242918] New: insserv: There is a loop between service cupsd and smbfs
https://bugzilla.novell.com/show_bug.cgi?id=242918 Summary: insserv: There is a loop between service cupsd and smbfs Product: openSUSE 10.3 Version: Alpha 0plus Platform: All OS/Version: All Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: andreas.hanke@gmx-topmail.de QAContact: qa@suse.de Every invocation of insserv on a current factory installation prints to stderr: insserv: There is a loop between service cupsd and smbfs cupsd is provided by /etc/init.d/cups from cups-1.2.7-15, smbfs is provided by /etc/init.d/smbfs from samba-client-3.0.23d-20. A similar message is also printed during system startup: # grep loop /var/log/boot.msg <6>loop: loaded (max 8 devices) Setting up loopback interface lo loop exists smbfs in smb! loop exists smbfs in smb! loop exists smbfs in smb! -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |samba-maintainers@SuSE.de |screening@forge.provo.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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 andreas.hanke@gmx-topmail.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmolles@vodafone.es ------- Comment #1 from andreas.hanke@gmx-topmail.de 2007-02-08 02:24 MST ------- *** Bug 243491 has been marked as a duplicate of this bug. *** -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 ------- Comment #2 from casualprogrammer@yahoo.com 2007-03-05 05:54 MST ------- as of today there is an additional message issued when switching from runlevel 5 to runlevel 3 and vice versa: loop exists smb in smbfs! Reproduce with CTL+ALT+F1, log in as root, issue init 3, then init 5 -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 ------- Comment #3 from andreas.hanke@gmx-topmail.de 2007-03-05 05:58 MST ------- This is not an additional issue, but exactly what this bug is about. See comment 0: # grep loop /var/log/boot.msg <6>loop: loaded (max 8 devices) Setting up loopback interface lo loop exists smbfs in smb! loop exists smbfs in smb! loop exists smbfs in smb! -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aj@novell.com ------- Comment #4 from mhorvath@novell.com 2007-03-29 06:15 MST ------- *** Bug 258262 has been marked as a duplicate of this bug. *** -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 dmair@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |andreas.hanke@gmx-topmail.de ------- Comment #5 from dmair@novell.com 2007-04-11 13:10 MST ------- Is this as simple as the INIT INFO header in the init script for each of these cases having circular Required-Start dependencies? For example, smbfs has smb as a required start and smb has smbfs as a required start? Please attach the cupsd, smb and smbfs init scripts from the problem host. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 ------- Comment #6 from casualprogrammer@yahoo.com 2007-04-12 01:23 MST ------- Created an attachment (id=130639) --> (https://bugzilla.novell.com/attachment.cgi?id=130639&action=view) /etc/init.d/cups -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 ------- Comment #7 from casualprogrammer@yahoo.com 2007-04-12 01:24 MST ------- Created an attachment (id=130640) --> (https://bugzilla.novell.com/attachment.cgi?id=130640&action=view) /etc/init.d/smb -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 casualprogrammer@yahoo.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|andreas.hanke@gmx-topmail.de| ------- Comment #8 from casualprogrammer@yahoo.com 2007-04-12 01:25 MST ------- Created an attachment (id=130641) --> (https://bugzilla.novell.com/attachment.cgi?id=130641&action=view) /etc/init.d/smbfs -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 casualprogrammer@yahoo.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #130639|application/octet-stream |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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 casualprogrammer@yahoo.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #130640|application/octet-stream |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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 casualprogrammer@yahoo.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #130641|application/octet-stream |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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 johnelliottmartin@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |johnelliottmartin@gmail.com ------- Comment #9 from johnelliottmartin@gmail.com 2007-04-16 15:00 MST ------- I have been having this same problem and I have noticed a loop in the file /etc/init.d/.depend.start This file appears to be auto-generated, but the loop does not appear in either the smb, smbfs or cups init scripts. I will attach a copy of this file to this bug. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 ------- Comment #10 from johnelliottmartin@gmail.com 2007-04-16 15:03 MST ------- Created an attachment (id=131524) --> (https://bugzilla.novell.com/attachment.cgi?id=131524&action=view) depend.start with loop between cups and smb -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 ------- Comment #11 from johnelliottmartin@gmail.com 2007-04-16 15:10 MST ------- Correction, the script /etc/init.d/smb does contain: # X-UnitedLinux-Should-Start: cupsd winbind nmb -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 aj@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Major |Critical Priority|P5 - None |P1 - Urgent ------- Comment #12 from aj@novell.com 2007-04-29 11:09 MST ------- This is still broken in the current packages and should be fixed for our next alpha! -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 ------- Comment #13 from dmair@novell.com 2007-04-30 09:22 MST ------- The loop chain appears to be (from cups at the top): cups smbfs smb cups I think its reasonable for smbfs to depend on smb. It's less easy to argue but I think that its OK for smb to depend on cups since it is the default print environment for an install, the default print environment for smb and, IIRC, Samba tries to connect to it when smbd starts. But, should cups depend on smbfs at all? If not, this is a bug for whoever maintains cups and/or the init script environment. Klaus is the most recent "author" in the init header in the cups script but it is dated 2002. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 ------- Comment #14 from casualprogrammer@yahoo.com 2007-04-30 22:56 MST ------- "It's less easy to argue but I think that its OK for smb to depend on cups since it is the default print environment for an install, the default print environment for smb and, IIRC, Samba tries to connect to it when smbd starts." Why do you think so ? There are lots of situations where SAMBA is active as file server, while printing is not active. This sounds a bit like making the ignition of a car depend on the windscreen wiper. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 ------- Comment #15 from jengelh@gmx.de 2007-05-01 02:27 MST ------- When cups is started after smbd, it takes some time for smbd to pick up the printers. See for yourself with: # rcsmb start # smbclient -L //localhost -N Password: (just hit enter) (output here) # rccups start # smbclient -L //localhost -N Password: (output here - without printers) It takes about 60 seconds for smbd to let them show up. It is no hard dependency though, and the likelihood that users connect their smb drive and want to print right after a server boot is rather less likely than regular. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 ------- Comment #16 from dmair@novell.com 2007-05-01 09:42 MST -------
Why do you think so?
I said why in comment #13. CUPS is laid down as the default print environment and its the default printing configuration in smb.conf. We just closed a bug invalid because it was requesting the default print environment in smb.conf be changed and we are not going to make that change. Jan offers an explanation that is actually the same reason and he supports the arguable nature of smbd depending on cups. Like I said, it's _less_ easy to argue that smb is dependent on cupsd, that doesn't imply it's an unimpeachable fact. Currently, there's no question in my mind that cupsd doesn't need to depend on smbfs and fixing that would make this bug go away. So, let's assign it to whoever owns the cups init script and just get it fixed. Administrators using non-default configurations are responsibly for handling all things dependent on their re-configuration. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 ------- Comment #17 from jengelh@gmx.de 2007-05-01 09:48 MST ------- So remove the "smbd depends on cups" and "cups depends on smbfs". cups should only depend on /usr, and honestly, you're not realistically going to smbmount /usr (if you did, which is unlikely in itself given that suse does not really support it anymore, then you would nfsmount it). On the reason why I think the "smbd depends on cups" dependency should also be removed: because it's just 60 seconds. And the less dependencies we have, the easier for scripts to be free to reorder, in fact, to be started in parallel. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 ------- Comment #18 from dmair@novell.com 2007-05-01 10:27 MST ------- 60 seconds is way too long in a cluster node where the service may be activated after boot time on a resource failover. FWIW, I recently worked with a real customer that suffered that very problem for a different reason on a cluster. I'm not convinced that the smb script should be changed. The need to change it only exists if you plan to not use cups and you need to be changing smb.conf in that case anyway. Removing the init dependency in cups adds the potential for the 60 second delay to a default configuration. Not changing it adds the potential for the 60 second delay to a non-default configuration that you should already be modifying configuration for anyway. I think that we should favour the default configuration and avoid adding a potential 60 second delay to it. If YaST suports re-configuring smb.conf if you enable/disable CUPS then let it also change the smb init script dependency. Otherwise, document the advantage to removing the smb init dependency on cups when you disable cups (actually chkconfig, for example, won't let you disable cups anyway when smb is enabled and will tell you why). -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 kssingvo@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro@novell.com ------- Comment #19 from kssingvo@novell.com 2007-05-02 03:18 MST ------- The cups packages do NOT contain any requirement regarding smbfs. The cups init script is clean (double checked: the rpm sources, and the installed script). So I don't know where this requirement/loop is generate from. At least it's not the cause of the cups packages. Included Ruediger Oertel as maintainer of "filesystem" and "aaa_base" packages. Maybe he can enlighten us, how this loop is generated. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 ------- Comment #20 from ro@novell.com 2007-05-02 03:43 MST ------- cups has $remote_fs as Required-Start /etc/insserv.conf defines smbfs as part of $remote_fs (if smbfs is installed) does this answer the question ? (after all, just another time that we reach the limits of a static init sequence, the places where /usr comes from a network-fs and other needs do often enough conflict) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 kssingvo@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |samba-maintainers@SuSE.de ------- Comment #21 from kssingvo@novell.com 2007-05-02 04:07 MST ------- I wonder why the "smbfs" requires a running smb daemon? If not required, can we remove this requirement please? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242918 lmuelle@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|samba-maintainers@SuSE.de | Resolution| |FIXED ------- Comment #22 from lmuelle@novell.com 2007-05-02 11:48 MST ------- Klaus analysis in comment #21 is right. Mounting a CIFS share from the locally running smbd sounds a bit crazy. I'm not sure when this dependency has been added. At least from the subversion I don't get the information. According to the rpm change log this had already been removed: Wed Aug 28 15:43:52 CEST 2002 - lmuelle@suse.de - remove Should-Start smb in smbfs init script Hit by a regression. :( Fixed with Novell Samba revision 1266. Submitted to stable. -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com